I've encountered a problem when I'm using Sweave to convert an .Rnw file into a .tex file. Sweave is replacing three options from hyperref's \hypersetup
block with the value NA
.
This is the section in the .Rnw file
\hypersetup{
baseurl={.},
%bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
The resulting LaTeX for the same section comes out as:
\hypersetup{
baseurl={.},
%bookmarks=true, % show bookmarks bar?
NA
NA
NA
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
As far as I can tell the rest of the document is fine. Removing the offending sections allows the compilation of the LaTeX. I'm running R 2.13.1. Has anyone else encountered this problem? Alternatively, could anyone suggest what Sweave finds objectionable about those three options in particular?