Questions tagged [token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
60 views

How to implement token.get_char

There is a token.set_char but no token.get_char. Starting from \chardef\MyNumber=1 I can change the value with \directlua{ token.set_char('MyNumber', 421) } and retrieve the value on the TeX side \...
user avatar
0 votes
0 answers
37 views

How to make \endlinechar act exactly like a(n) (active) space? [duplicate]

I know that, in normal circumstances, an endlinechar (=13) of input gets converted into white-space. But, in this MWE, I make the charcode 32 space character active and replace it with a ...
user avatar
4 votes
0 answers
84 views

Difference between counters and tokens in TeX

This is my first question here on TeXSE, and my second question on the StackExchange community. I am reading Notes on Programming in TeX by Dr. Christian Feuersänger as part of a general introduction ...
user avatar
4 votes
3 answers
244 views

The puzzling thing about \newtoks and the token list

The code is: \documentclass{article} \newtoks \test \begin{document} \test={123} \test=\test{666} \test=\test{hhh} \the\test \end{document} and the result is: 666 hhh 123, as ...
user avatar
3 votes
1 answer
77 views

Is there a token which neither can be redefined to be \outer nor can be affected by \uppercase/\lowercase?

This is more an "academical" question: Is there a token which neither can be redefined to be \outer nor can be affected by \uppercase/\lowercase no matter what \lccodes/\uccodes are current? ...
user avatar
0 votes
0 answers
95 views

how to insert keys from token list in command

When i try to insert in command variable with keys,i get an error: LaTeX3 Error: The key '__tag/mc/\g__last_mc_tl' is unknown and is being (LaTeX3) ignored. I understand, why this happen. It ...
user avatar