6,782 reputation
22938
bio website
location
age
visits member for 4 years, 1 month
seen yesterday

Oct
10
awarded  Yearling
Sep
30
awarded  Good Answer
Sep
16
awarded  Guru
Jul
21
comment inputenc Error: Unicode char \u8: not set up for use with LaTeX
possible duplicate of "inputenc Error: Unicode char \u8" error while trying to write a degree symbol (invisible character)
Jul
13
awarded  Enlightened
Jul
13
awarded  Nice Answer
Apr
21
awarded  Good Answer
Apr
6
awarded  Guru
Mar
25
awarded  Famous Question
Mar
14
comment Is there a BNF grammar of the TeX language?
The difference between TeX and most languages (one might say "sensible languages") is that these sorts of changes can affect the parsing of TeX. (I imagine Perl might have similar problems thanks to source filters and BEGIN blocks?) For instance, \ifx\f\g\catcode`\\{=12\fi{} is a parse error if and only if \f and \g are equal; and as discussed above, the Turing-completeness of TeX (and of TeX's mouth!) means that the equality of \f and \g is undecidable. Does that help clear things up?
Jan
28
awarded  Informed
Dec
17
accepted How to read a stream of tokens up to one of two different delimiters
Dec
16
comment How to read a stream of tokens up to one of two different delimiters
@StephanLehmke: A very good idea! For anybody who's wondering, the input-gathering logic happens somewhere in \collect@body/\collect@@body; for the environments that call into \start@align (e.g., align and alignat and their starred variants), this body is passed to \measure@, which you can hack into. Note that aligned and alignedat (at least) don't pre-gather their input (as far as I can tell).
Dec
15
awarded  Nice Question
Dec
15
comment How to read a stream of tokens up to one of two different delimiters
Fair enough, really. (Especially since I'm making amsmath-like environments anyway.) Would you consider leaving this as an answer, then? I'll leave the question open for now to see if anybody can answer it as asked, but your answer is a good one. (And thanks for the link.)
Dec
15
comment How to read a stream of tokens up to one of two different delimiters
@StephanLehmke: I had thought about that, but had hoped to avoid it, since it's just sort of ugly (and probably inefficient, especially for large environments)—I don't need all that information :-) But it's true, that would work.
Dec
15
asked How to read a stream of tokens up to one of two different delimiters
Nov
21
awarded  Good Answer
Oct
18
awarded  Enlightened
Oct
18
awarded  Nice Answer