Skip to content

Rdconv LaTeX files

3 messages · Michael O'Keeffe, Duncan Murdoch

#
Hi,
I've written a package and converted my Rd files into LaTeX using
Rdconv. When I copy and paste these files in to my Sweave document I
get the?error message when compiling the Sweave file:

! Undefined control sequence.
l.32 \inputencoding
                   {utf8}

I also get the error message for the "\HeaderA", "\keyword".
Additionally I get an environment undefined error for some of the
"\begin" control sequences. Do I need to specifically "include"
certain LaTeX libraries in my Sweave document?

Regards,

M
#
On 11-08-04 1:42 AM, Michael O'Keeffe wrote:
Yes, Rd files use the Rd.sty style.  So \usepackage{Rd} would be 
necessary.  It's not designed for this kind of use, so you might find 
incompatibilities; I've never tried it.

Duncan Murdoch
#
Thanks!

I found (by properly reading docs) to use the inputenc package. The Rd
package solve most problems except for where I has a multiple line
code element in my Rd file. I tried to convert it to a LaTeX Rd 'code'
element and use an 'alltt' environment to hold the multi-line text. I
worked around this by using the verbatim element.

Thank you, your help was invaluable!

Regards,

Michael

On Thu, Aug 4, 2011 at 10:41 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote: