From the WikiPublisher
NB, I realise this is a special case of Issues.00070; I can’t see why underscore is treated as a “special” character for the bookmark though (what are the PDF rules?).
In my case I want to document a SQL function so I need a solution or workaround that shows the function name including the underscore.
Markup("`_", 'inline', '/`_/',
(($format=='pdf') ? '<tbook:discy kind="_"/>' : '_'));
Then put `_ in the heading text. This will trick the Wikibook server into using the correct character in the bookmark.
Alternative solution: I post-processed the LATEX file with the UNIX command.
sed 's/{\\mbox{\\char95{}}}/\\_/g' doc.tex >doc.new.tex
Try changing line 230 of wikibook/tbrplent/tbrplent.cc to
case'_':out<<"\\_";break;
and recompiling.
Copyright © 2005–2010 the Wikipublisher wiki and its authors
Retrieved from http://www.wikipublisher.org/wiki/Issues/00135
Page last modified on 30 July 2009 at 09:14 PM