17
votes
1answer
113 views

What primitives can expandably tell us about the current horizontal list?

I've been writing some code that expands macros and catches characters and non-expandable primitives as they reach TeX's stomach, and I encountered an issue: since I gather letters one by one, with ...
8
votes
2answers
61 views

\setbox containing maths interferes with surrounding math mode in XeTeX

I encountered what might be a bug in XeTeX (but I would be glad to be proven wrong) while chasing a strange interaction between bytefield, unicode-math, and mathtools. In general, I do not expect a ...
23
votes
2answers
192 views

What are lccode and uccode used for?

In TeX, each of the 256 bytes has an associated \lccode and an \uccode, integers in the range [0,255] which indicate among other things how \lowercase and \uppercase act. There are of course a bunch ...
2
votes
0answers
54 views

font loading via URL for all TeX-en

Firstly, I'm not asking about typesetting URLs. What I am talking about is font resolution via a URL reference. My limited experience is in using XeLaTeX so I'll couch the question accordingly. If you ...
9
votes
1answer
287 views

Computer Modern font with accented characters (in XeTeX)

I'd like to use Knuth's Computer Modern font with XeTeX (not with XeLaTeX and so not with a LaTeX package) in a way where I don't have to type accents in a \'-way and without any gimmick such as ...
15
votes
3answers
576 views

Starting with TeX (not LaTeX)

I've been using LaTeX for 3 years and I'm decided to switch to (plain) TeX. For the moment I'm reading The TeXbook for the third time (I quietly start to read the double-danger signed paragraphs) and ...
4
votes
1answer
238 views

XeLaTeX, Modern Latin and cyrilic

\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \setmonofont{Latin Modern Mono} ...
1
vote
1answer
159 views

Unexpected scoping issue using \XeTeXinterchartoks

Minimal example (compile with xetex): \XeTeXinterchartokenstate = 1 \newXeTeXintercharclass \classa \XeTeXcharclass `\a \classa \XeTeXinterchartoks 255 \classa = {\begingroup} \XeTeXinterchartoks ...
5
votes
1answer
203 views

XeLaTeX exit codes

I'm running XeLaTeX from a shell script and would like to check for exit codes, to see if an error was encountered during processing. So I'm looking for a list of possible exit codes. I've checked ...
9
votes
2answers
513 views

Do XeTeX and LuaTeX always use Unicode?

I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
5
votes
3answers
153 views

How best to run through a series of elements {a,1,i}, {b,2,ii}, etc

I am rewriting a package I wrote for XeLaTeX to handle unicode blocks. This means dealing with setting up character classes for all characters from block "BlockName" starting at codepoint 1234 and ...
4
votes
1answer
304 views

Why doesn't math \fontdimen's work with XeTeX?

Why doesn't the \fontdimen-command change anything with XeTeX? \input pgffor \def\chfndims#1{\foreach\dim in{13,...,19}{\fontdimen\dim#1=20pt}} \font\mymathfn="XITS Math:script=math" at 10pt ...