36,194 reputation
168148
bio website randomdeterminism.wordpress.c…
location
age
visits member for 4 years, 2 months
seen 9 hours ago

May
30
comment LaTeX Cartooning
@morburg, The MPS to PDF conertor used by pdflatex is provided by context. Perhaps the OP meant that.
May
29
comment Relationship between MathML and TeX
ConTeXt also parses TeX and generates MathML when generating XML/XHTML output.
May
29
comment Relationship between MathML and TeX
FWIW, ConTeXt can parse TeX and generate MathML, but it generates presentation MathML and not content MathML. There are a few helper macros to remove ambiguity. So, if you have a link to few hard to parse TeX examples, I'd be curious to test them out with the ConTeXt parser and see how they behave.
May
28
comment Automating quoting across LaTeX documents
Same as orig.tex.
May
28
comment Automating quoting across LaTeX documents
I have split the orig.tex file in your example to two files, quotes.tex and orig.tex. The new.tex is the same as the new.tex in your question. So, basically, I am using a separate file to define quotes.
May
28
comment Why using a backslash in command definitions?
Compare the above from, say the plainTeX definition of \newif\ifsomething which then goes through some hoops to remove the \if and define \somethingtrue, \somethingfalse. Using \newconditional {something} would be much easier.
May
28
comment Why using a backslash in command definitions?
ConTeXt does this all the time: \define<something> usually defines \start<something> \setup<something>, etc (actually, it defines multi-lingual macros, so in french documents you can use \demarre<something> .. \regale<something>. Internally, all such macros use \setvalue (or its variants \setuvalue, etc), which are similar to the \NewDocumentCommandName macro (actually to \@namedef etc.)
May
28
comment Why using a backslash in command definitions?
The advantage of the former is that you can use it for nested definitions: \NewDocumentCommandName{defineenvironment}{m}{\NewDocumentCommandName{start#1}{‌​whatever}\NewDocumentCommandName{stop#1}{whatever}} etc.
May
28
comment Why using a backslash in command definitions?
I don't understand what you mean "avoid dynamic definitions at document interface level" for LaTeX3. Could you elaborate?
May
28
answered Switch to one-sided mode in the appendix of a double-sided document
May
28
awarded  Nice Answer
May
27
answered Create a capitalized macro token using \csname
May
27
comment How to snap the page dimensions to the grid in ConTeXt?
Please add a MWE
May
27
comment Creating a grid which fills available text area on a page in ConTeXt?
PGF comes with a grid macro, so the solution is shorter. But the ConTeXt solution is doing much more than just defining a grid. For example you can use \externalfigure[cow][gridsize=10pt, background=page:grid] to get a grid background for an image, and \setupbackgrounds[page][background=page:grid] to get a grid background for the entire page. There is no such close coupling between ConTeXt and PGF, and that is why I prefer Metapost for drawing backgrounds when using ConTeXt.
May
27
comment Creating a grid which fills available text area on a page in ConTeXt?
ConTeXt does handle pgf, but there is not inbuilt way to define overlays using pgf. One would need to write code for passing the overlay box size to pgf...with metapost, ConTeXt does that automatically.
May
27
comment Creating a grid which fills available text area on a page in ConTeXt?
Most of the code is to get the positioning right. (I don't know how pgf handles grids when the size of box is not a multiple of grid distance). The code can be shortened, and I think that Metafun has a grid macro, but it was just easier to write my own code.
May
27
answered Creating a grid which fills available text area on a page in ConTeXt?
May
27
comment using **xyz** instead of \foo{xyz}
If you are using luatex, then this approach for multiline comments can be easily adapted to your case. (Just add \foo{ and } at the beginning at the end of each match, and don't delete the intermediate text). Since this parses the text when the file is read, it does not suffer from any of the drawback of active characters.
May
25
comment Automating quoting across LaTeX documents
I added a complete working example. ConTeXt is a macro package similar to LaTeX. See the context wiki for an introduction.
May
25
revised Automating quoting across LaTeX documents
Added complete example