*.Rd question concerning special characters
1
0
Entering edit mode
@dipl-ing-johannes-rainer-846
Last seen 9.6 years ago
hi, i have a little problem with my *.Rd files i write. i have to use very often the special character "_" and in building the help files it is no problem, but when compiling the manual with latex it does not work. so i replaced all "_" with "\_", now the package manual is nicely build in latex, but the html help shows now the "\_" instead of "_". any ideas? cheers, jo
• 649 views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 9.6 years ago
"Dipl.-Ing. Johannes Rainer" <johannes.rainer@tugraz.at> writes: > i have a little problem with my *.Rd files i write. i have to use very > often the special character "_" and in building the help files it is no > problem, but when compiling the manual with latex it does not work. so > i replaced all "_" with "\_", now the package manual is nicely build in > latex, but the html help shows now the "\_" instead of "_". > any ideas? Assuming the "_"'s appear as part of the code, have you tried wrapping these in \code{some_var_with_underscores} ? According to the Writing R Extensions Manual, the \code{} markup should do the right thing. But I would have expected \_ to work as well. This is with R 2.1.0 beta ? + seth
ADD COMMENT

Login before adding your answer.

Traffic: 787 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6