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.enter image description here



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}









share|improve this question









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 need color and colortbl because you load xcolor with the table option
    – samcarter
    Nov 16 at 20:29















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.enter image description here



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}









share|improve this question









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 need color and colortbl because you load xcolor with the table option
    – samcarter
    Nov 16 at 20:29













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.enter image description here



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}









share|improve this question









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.enter image description here



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






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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 need color and colortbl because you load xcolor with the table option
    – samcarter
    Nov 16 at 20:29


















  • 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
















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










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 &lowbar; &UnderBar; _
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 &quot; &QUOT; "
U+007d RIGHT CURLY BRACKET &rcub; &rbrace; rbrace
U+2069 POP DIRECTIONAL ISOLATE





share|improve this answer





















  • Hello David, that worked great -- thank you!
    – Nate Mercaldo
    Nov 16 at 21:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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

























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 &lowbar; &UnderBar; _
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 &quot; &QUOT; "
U+007d RIGHT CURLY BRACKET &rcub; &rbrace; rbrace
U+2069 POP DIRECTIONAL ISOLATE





share|improve this answer





















  • Hello David, that worked great -- thank you!
    – Nate Mercaldo
    Nov 16 at 21:40















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 &lowbar; &UnderBar; _
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 &quot; &QUOT; "
U+007d RIGHT CURLY BRACKET &rcub; &rbrace; rbrace
U+2069 POP DIRECTIONAL ISOLATE





share|improve this answer





















  • Hello David, that worked great -- thank you!
    – Nate Mercaldo
    Nov 16 at 21:40













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 &lowbar; &UnderBar; _
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 &quot; &QUOT; "
U+007d RIGHT CURLY BRACKET &rcub; &rbrace; rbrace
U+2069 POP DIRECTIONAL ISOLATE





share|improve this answer












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 &lowbar; &UnderBar; _
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 &quot; &QUOT; "
U+007d RIGHT CURLY BRACKET &rcub; &rbrace; rbrace
U+2069 POP DIRECTIONAL ISOLATE






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 16 at 21:04









David Carlisle

477k3811061841




477k3811061841












  • 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




Hello David, that worked great -- thank you!
– Nate Mercaldo
Nov 16 at 21:40










Nate Mercaldo is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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





















































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







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?