When I use XeTeX, I noticed that non-ASCII Unicode is allowed to be input directly (for example, dashes, curly quotes, and even Greek or Chinese). However, simple ASCII symbols (such as æ and ö) need to be input with the TeX escape codes (\ae, \"o).
I find this unwieldy. Is there some way around this, so that I can type the ASCII directly?
XeTeX ⇒ ASCII input (æ, ö)
NEW: TikZ book now 40% off at Amazon.com for a short time.
ASCII input (æ, ö)
Neither æ nor ö are ASCII characters. And every Unicode character works in documents compiled by XeTeX as long as the font supports it. So there has to be an error in your document. The following minimal example works fine:
Code: Select all
\documentclass{minimal}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\begin{document}
æ ö
\end{document}
Re: ASCII input (æ, ö)
The ASCII codes are 230 (æ) and 246 (ö).
I think my problem may have been due to specifically marking the character encoding UTF8x in the preamble, something I have since taken out.
Thanks!
I think my problem may have been due to specifically marking the character encoding UTF8x in the preamble, something I have since taken out.
Thanks!
ASCII input (æ, ö)
ASCII includes no more than 128 characters.jpeyton wrote:The ASCII codes are 230 (æ) and 246 (ö).
That's correct, you cannot use the inputenc package in combination with XeTeX.jpeyton wrote:I think my problem may have been due to specifically marking the character encoding UTF8x in the preamble, something I have since taken out.