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.
|