Unicode error when inserting PDF figure into LaTeX document
up vote
0
down vote
favorite
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}
floats pdf unicode
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
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}
floats pdf unicode
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
off-topic: you should load hyperref after your other packages and you don't needcolorandcolortblbecause you loadxcolorwith thetableoption
– samcarter
Nov 16 at 20:29
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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}
floats pdf unicode
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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}
floats pdf unicode
floats pdf unicode
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 16 at 19:59
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 16 at 19:36
Nate Mercaldo
11
11
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Nate Mercaldo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
off-topic: you should load hyperref after your other packages and you don't needcolorandcolortblbecause you loadxcolorwith thetableoption
– samcarter
Nov 16 at 20:29
add a comment |
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
off-topic: you should load hyperref after your other packages and you don't needcolorandcolortblbecause you loadxcolorwith thetableoption
– samcarter
Nov 16 at 20:29
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
off-topic: you should load hyperref after your other packages and you don't need
color and colortbl because you load xcolor with the table option– samcarter
Nov 16 at 20:29
off-topic: you should load hyperref after your other packages and you don't need
color and colortbl because you load xcolor with the table option– samcarter
Nov 16 at 20:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
The error is unrelated to the pdf insertion or Greek, you have a BIDI control character U+2069 POP DIRECTIONAL ISOLATE after test_fig"} in your source, if you retype that line just with ASCII it should be fine.
U+0074 LATIN SMALL LETTER T t
U+0065 LATIN SMALL LETTER E e
U+0073 LATIN SMALL LETTER S s
U+0074 LATIN SMALL LETTER T t
U+005f LOW LINE _ _ _
U+0066 LATIN SMALL LETTER F f
U+0069 LATIN SMALL LETTER I i
U+0067 LATIN SMALL LETTER G g
U+0022 QUOTATION MARK " " "
U+007d RIGHT CURLY BRACKET } } rbrace
U+2069 POP DIRECTIONAL ISOLATE
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
The error is unrelated to the pdf insertion or Greek, you have a BIDI control character U+2069 POP DIRECTIONAL ISOLATE after test_fig"} in your source, if you retype that line just with ASCII it should be fine.
U+0074 LATIN SMALL LETTER T t
U+0065 LATIN SMALL LETTER E e
U+0073 LATIN SMALL LETTER S s
U+0074 LATIN SMALL LETTER T t
U+005f LOW LINE _ _ _
U+0066 LATIN SMALL LETTER F f
U+0069 LATIN SMALL LETTER I i
U+0067 LATIN SMALL LETTER G g
U+0022 QUOTATION MARK " " "
U+007d RIGHT CURLY BRACKET } } rbrace
U+2069 POP DIRECTIONAL ISOLATE
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
add a comment |
up vote
2
down vote
The error is unrelated to the pdf insertion or Greek, you have a BIDI control character U+2069 POP DIRECTIONAL ISOLATE after test_fig"} in your source, if you retype that line just with ASCII it should be fine.
U+0074 LATIN SMALL LETTER T t
U+0065 LATIN SMALL LETTER E e
U+0073 LATIN SMALL LETTER S s
U+0074 LATIN SMALL LETTER T t
U+005f LOW LINE _ _ _
U+0066 LATIN SMALL LETTER F f
U+0069 LATIN SMALL LETTER I i
U+0067 LATIN SMALL LETTER G g
U+0022 QUOTATION MARK " " "
U+007d RIGHT CURLY BRACKET } } rbrace
U+2069 POP DIRECTIONAL ISOLATE
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
add a comment |
up vote
2
down vote
up vote
2
down vote
The error is unrelated to the pdf insertion or Greek, you have a BIDI control character U+2069 POP DIRECTIONAL ISOLATE after test_fig"} in your source, if you retype that line just with ASCII it should be fine.
U+0074 LATIN SMALL LETTER T t
U+0065 LATIN SMALL LETTER E e
U+0073 LATIN SMALL LETTER S s
U+0074 LATIN SMALL LETTER T t
U+005f LOW LINE _ _ _
U+0066 LATIN SMALL LETTER F f
U+0069 LATIN SMALL LETTER I i
U+0067 LATIN SMALL LETTER G g
U+0022 QUOTATION MARK " " "
U+007d RIGHT CURLY BRACKET } } rbrace
U+2069 POP DIRECTIONAL ISOLATE
The error is unrelated to the pdf insertion or Greek, you have a BIDI control character U+2069 POP DIRECTIONAL ISOLATE after test_fig"} in your source, if you retype that line just with ASCII it should be fine.
U+0074 LATIN SMALL LETTER T t
U+0065 LATIN SMALL LETTER E e
U+0073 LATIN SMALL LETTER S s
U+0074 LATIN SMALL LETTER T t
U+005f LOW LINE _ _ _
U+0066 LATIN SMALL LETTER F f
U+0069 LATIN SMALL LETTER I i
U+0067 LATIN SMALL LETTER G g
U+0022 QUOTATION MARK " " "
U+007d RIGHT CURLY BRACKET } } rbrace
U+2069 POP DIRECTIONAL ISOLATE
answered Nov 16 at 21:04
David Carlisle
477k3811061841
477k3811061841
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
add a comment |
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40
add a comment |
Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.
Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.
Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.
Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460366%2funicode-error-when-inserting-pdf-figure-into-latex-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you please include your code for us to help you?
– zyy
Nov 16 at 19:45
off-topic: you should load hyperref after your other packages and you don't need
colorandcolortblbecause you loadxcolorwith thetableoption– samcarter
Nov 16 at 20:29