When compiling this file:


Hi, world! P ⟣ Q


I get the following output:

> pdflatex test.tex 
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 2 languages loaded.
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.3 ...lareUnicodeCharacter{27e3}{somereplacement}

The solution is that I should spell 27E3 in uppercase.

  • 2
    So that others in the future can search for the problem and find an answer. It's recommended by StackExchange: tex.stackexchange.com/help/self-answer . – Bram Geron Jun 4 '15 at 20:11
  • 2
    No, I agree with the principle, but I thought this was stretching it a bit when the error is caused by mistyping the hexadecimal number. I think it would be much better if you asked a question like "Why do hexadecimal numbers for unicode glyphs have to be typed with uppercase letters?" and then provide a MWE with 27e3 and 27E3 to show the difference. Then some TeX wizard can enlighten us about why this is so. – Sverre Jun 4 '15 at 20:37
  • 1
    I agree with @Sverre; it is not necessary to "document" every possible mistake as it can be distracting. For a tiny error like that, a useful answer would provide some explanation. – Arthur Reutenauer Jun 4 '15 at 21:53
  • 1
    It's fine to post a self-answer after one has asked a question and one finds the error/solution oneself, after some hours, but this is rather a report ;-) – user31729 Jun 4 '15 at 22:18
  • 2
    I am "another user in the future" and I joined the site (which was overdue anyway) just to confirm that this has saved me time. Thanks! – harpo Feb 11 '16 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.