Extension talk:Wiki2LaTeX/Documentation
Add topicAppearance
Latest comment: 13 years ago by Comfortably Paranoid
81.201.214.132 09:28, 24 October 2011 (UTC)
I see that these is no underline support claiming it is not in a default package, is that still the case?
\underline{}
- I grep'd for "uline" and "underline" in the current php distribution, and found nothing, so that seems correct. I actually have written my own extension. Place this file uline.php in the w2l directory:
<?php //These are the Latex render calls if ( !function_exists('w2lUnderline') ) { $w2lTags['u'] = 'w2lUnderline'; //requires ulem package function w2lUnderline($input, $argv, $parser, $frame = false, $mode = 'latex') { return '\uline{' . $input . "}"; } }
- Then add this line to w2lConfig.php :
include('uline.php');
- Finally, make sure you have something like \usepackage[normalem]{ulem} in your Latex document preamble. Then you can use <u> .. </u> in your wiki to get underline.
- Warning I trimmed a lot of unrelated stuff from my source code, I cannot guarantee this works. Comfortably Paranoid 12:26, 25 October 2011 (UTC)