I receive the following error when attempting to compile a LaTeX document:
Package inputenc Error: Unicode character \GenericError {(inputenc)}{Package inputenc Error: Unicode character (U+2069)
The cause of this error is a pdf image that I created in R. The title of the figure contains greek letters and subscripts. I have changed the pdf compiler from pdfLaTex to xeLaTeX and have included \usepackage[utf8]{inputenc}, but neither works.
Has anyone had this issue and if so, how did you fix it?
Thanks, Nate
Example Code: (test.Rnw)
\documentclass{article}
\usepackage{hyperref}
\usepackage{amsmath, bm, multirow,booktabs,mathtools}
\usepackage{setspace, relsize, booktabs, needspace, epic}
\usepackage{longtable, color, colortbl, lscape, dcolumn}
\usepackage[table]{xcolor}
\begin{document}
<<fig_test,eval=TRUE>>=
pdf("test_fig.pdf")
par(las=1, cex.axis=1.5,cex.lab=1.5,cex.main=1.5)
plot(x=c(1,5.1), y=c(0.75,3), typ='n',
main=expression(paste('X(',alpha[1],')',sep='')),ylab='',xlab='')
graphics.off()
@
\begin{figure}
\caption{Caption}
\centering
\includegraphics[scale=0.5]{"test_fig"}
\end{figure}
\end{document}
color
andcolortbl
because you loadxcolor
with thetable
option