I am new to LaTeX. I have searched my question but I couldn't find solution.
When I export to PDF I am getting the error. ! Package inputenc Error: Unicode character (U+200E) (inputenc) not set up for use with LaTeX.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am new to LaTeX. I have searched my question but I couldn't find solution.
When I export to PDF I am getting the error. ! Package inputenc Error: Unicode character (U+200E) (inputenc) not set up for use with LaTeX.
U+200E is the left-to-right mark, which you probably copied and pasted into your document from the Web. You should probably remove it in your text editor. If you are mixing different languages in your document, and want to keep the bidirectional mark, you probably want to load babel
or polyglossia
instead and use their commands to switch languages.
If you really, really want to keep it in there, though, and you’re absolutely forced to use PDFTeX, you might load bidi
and set ^^^^200e as an active character.
bidi
and make it an active character); (2) keep it there and have TeX ignore it => \DeclareUnicodeCharacter{200E}{}
Aug 21, 2019 at 15:05
This was very difficult for me to debug, but there was a simple solution in the end. I had to copy the character from the easy copy/paste box from unicode-symbols.com
I pasted the character into search box in my text editor (I used visual studio code), and I found one instance of this invisible character. I just deleted it.
Compile your tex file with XeLaTeX instead of pdfLaTeX. For example, if you use TeXStudio as editor, go to the Options->Configure TexStudio->Build->Default Compiler, and change compiler to XeLaTeX.