BibTeX, biblatex and biberbiblatex | Command Name Conflict

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Command Name Conflict

Post by cgnieder »

Actually I have a rough idea what is going on: pdftex (the engine that is used by pdflatex) can only read ascii code. This is only a very limited number of characters which means that any non ascii-character is obtained either through ligatures (like e.g. the standard way of inputting the emdash with three subsequent dashes: ---) or with macros (like \"uber). For TeX a character is 1 byte. However, unicode characters are multibyte characters and as a consequence TeX does not see one but usually to characters and typesets whatever characters might be represented by the binary value of the character. inputenc now uses this fact to fool the user into thinking that TeX would be using unicode. What it does is making the first of the characters that are represented by the binary value of the unicode char active (i.e. it acts as a macro) and let's it expand into the corresponding LICR (LaTeX Internal Character Representation) depending on the following characters that were part of the binary value.

The emdash of your example would silently have disappeared in the output if you hadn't used it in the bibliography but in the running text. Why things were going wrong when it appeared in the bibliography I don't know.

The original sample file would run without errors with XeLaTeX, for example, as its underlying engine xetex can read unicode input. One would need to add the fontspec package then, to actually get the emdash typeset, though.

Regards
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Command Name Conflict

Post by cgnieder »

BTW: related post on TeX.sx: Non-ASCII characters in Biblatex

Regards
site moderator & package author
Post Reply