Latex: Add a "More at ..." link at the bottom.

master
Jag Talon 2013-12-17 10:04:12 -05:00
parent 6b5de9893c
commit 5dbca8431c
1 changed files with 6 additions and 2 deletions

View File

@ -68,10 +68,14 @@ my %texCommands = (
"line" => ['horizontal line', '\hrulefill', '\hrulefill'],
);
sub build_html{
sub more_at {
return '<br><a href="http://www.ctan.org/pkg/latexcheat">More at CTAN</a>';
}
sub build_html {
# builds a string to display using the given $command
# and $usage
return "<i>Command:</i> <pre style='display: inline; padding: 1px;'>$_[0]</pre> <br> <i>Example Usage:</i> <pre style='display: inline; padding: 1px'>$_[1]</pre>";
return "<i>Command:</i> <pre style='display: inline; padding: 1px;'>$_[0]</pre> <br> <i>Example Usage:</i> <pre style='display: inline; padding: 1px'>$_[1]</pre>" . more_at;
}
handle remainder => sub {