Skip to content
Prev 2264 / 12125 Next

[R-pkg-devel] Producing ß in help files.

On Sat, Jan 6, 2018 at 11:41 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
You could define a new macro in the Rd file (untested):

\newcommand{\ss}{\ifelse{latex}{\ss}{\ifelse{html}{\out{&szlig;}}{ss}}}

That would use "\ss" in LaTeX, "&szlig" in HTML, and "ss" in plain
text rendering.

Or, add \encoding{UTF-8} to the Rd file and ? is available in plain text:

\newcommand{\ss}{\ifelse{latex}{\ss}{\ifelse{html}{\out{&szlig;}}{?}}}