| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 7 months |
| seen | 6 hours ago | |
| stats | profile views | 284 |
|
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 |
|
Oct 10 |
awarded | Yearling |
|
Sep 27 |
comment |
In the minted package, how do I enforce straight single quotes? For anyone who comes across this later: the upquote package modifies all verbatim text (\verb and the verbatim environment) to render ' and ` as the upright versions, not the “smart” ‘ and ’. Since (as I understand it) minted and listings rely on fancyvrb, which itself calls out to verbatim text under the hood, this has the desired effect. |
|
Sep 10 |
awarded | Nice Answer |
|
Sep 9 |
revised |
How can I save shell output to a variable in LaTeX? Fixed usage of `\immediate` and added some extra explanation of various things. |
|
Aug 14 |
awarded | Nice Question |
|
Aug 8 |
awarded | Nice Answer |