Tagged Questions
8
votes
5answers
295 views
Define a command (possibly recursively) to wrap text in a command n times
I'm trying to define a new command \multiboxed in LaTeX so that I can put n boxes around an equation without having to manually nest \boxed commands. So far I have (using the pgffor package):
...
5
votes
2answers
136 views
Recursively defined macros in TeX
After receiving a nice answer to a previous question, I got enthousiastic and tried to create a macro \sum such that \sum<1+2+3> would be expanded into 6.
My idea was to work recursively, using ...
4
votes
2answers
110 views
How can I define a macro that adds a row to a table that has not yet been printed?
I want to generate a list of technical abbreviations and acronyms that I use. Currently, I'm defining all acronyms with a macro I have designed. Now, I want the macro to call another macro, called ...
7
votes
3answers
428 views
Strange recursive macro output
Strange recursive macro output
The code that follows describes a macro that can iterate recursively (i.e, a forloop) and uses e-TeX numexpr. It is based on an example found in the e-TeX manual (page ...