[Rd] Problems with Sweave and pdf.options(encoding="ISOLatin7") (PR#13234)

From: <zemlys_at_gmail.com>
Date: Fri, 31 Oct 2008 10:35:07 +0100 (CET)


Sweave for some reason does not respect encoding setting in pdf.options. Everything is OK with ps.options. Thus when using non-default encoding for graphs, resulting graphics eps file is correct, but pdf file is not. Workaround is very simple, just use latex->dvips->ps2pdf chain to get the intended pdf document. I tried to find the explanation for this, but I did not find anything. If this is documented behaviour, I am sorry for the disturbance.

After Sweaving the file below, pdflatex and latex->dvips->ps2pdf will produce different pdfs. The tex file compiled succesfully in Ubuntu 8.04, and TeXLive 2007.

Sincerely yours,

Vaidotas Zemlys

test.Rnw file:


\title{Problem with pdf.options}
\author{Vaidotas Zemlys}


Note the Lithuanian letters in latex will not display correctly, you need
additional package. This does not matter to R, since we use Unicode and pass the
correct encoding.


plot(rnorm(100),main="…žųš™—įū") @


--please do not edit the information below--

 platform = i486-pc-linux-gnu
 arch = i486
 os = linux-gnu
 system = i486, linux-gnu
 status =
 major = 2
 minor = 8.0
 year = 2008
 month = 10
 day = 20
 svn rev = 46754
 language = R
 version.string = R version 2.8.0 (2008-10-20)


Search Path:
 .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 31 Oct 2008 - 10:14:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Nov 2008 - 12:30:54 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive