Hello!
I use R 2.8.1 under Debian GNU/Linux. I've run into a problem
including R pdf figures into LaTeX document. To reproduce:
1) Execute the following minimal R script:
pdf('fig.pdf', family = 'URWTimes', width = 5, height = 5)
plot(rnorm(10), main = '????', xlab = '????????', ylab =
'????????')
dev.off()
embedFonts('fig.pdf')
2) Open fig.pdf and make sure the cyrillic characters are present in
the plot title and at the axes. Also make sure the used font subset is
embedded.
3) pdflatex the following minimal LaTeX document:
\documentclass{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{graphicx}
\begin{document}
\includegraphics{fig}
\end{document}
4) Open the resulting pdf file. Note that all cyrillic characters have
disappeared from the included figure.
I think it's a bug in pdftex. I've submitted a bug report:
http://sarovar.org/tracker/index.php?func=detail&aid=4014&group_id=106&atid=493
However, pdftex maintainer The Thanh Han says the problem is in the
fig.pdf, not in the pdftex (see the link above).
Could anyone comment on this? Do you think it's a bug in R, and if not, why?
Thanks,
Andrey Paramonov,
Post-graduate student @ MSUT Stankin
127994, ??????, ?????????? ???., 1,
???: (499) 973-30-76, 973-30-66
????: (499) 973-3071; (499) 973-3885; (499) 973-3167