2,219 reputation
1935
bio website roy.fr.eu.org
location Berlin, Germany
age 40
visits member for 2 years, 4 months
seen Feb 21 at 8:57

I'm

  • a mathematician
  • a jazz pianist
  • a Linux user
  • a fan of Rubik's cube
  • ...

Jun
19
asked Long version of \edef, \xdef, \protected@edef
Jun
18
comment a “… doesn't match its definition” problem, that I don't understand
is there a similar issue with environment with optional arguments ? Is there an equivalent of \newrobustcmd for environments ?
Jun
18
accepted a “… doesn't match its definition” problem, that I don't understand
Jun
18
comment a “… doesn't match its definition” problem, that I don't understand
Thanks a lot for the hints. Nevertheless, I don't understand your solution 1 : i thought that \protected@xdef would have a special effect (preventing expansion) on macro which are preceded by \protected in the edef, or defined with \protected. Did i miss something ?
Jun
18
comment a “… doesn't match its definition” problem, that I don't understand
This is the problem with minimal examples ... they sometimes have not meaning. This one just illustrates a problem, that i encounter in my code (which has a meaning!)
Jun
18
comment a “… doesn't match its definition” problem, that I don't understand
Could you please explain why one can not safely \edef a command with optional argument, but can do it without optional argument.
Jun
18
asked a “… doesn't match its definition” problem, that I don't understand
Jun
15
comment Can I redefine the dollar
Well, my question about how to cancel the effect, was just a subsidiary question, because to frightened me with "dangerous". But your answer is perfect for me. What i want to do : i want to export a tex document into some xml file. For this, i need to capture the maths formulas, a make \write of the \detokenize of the content of the math environment. With your catcode trick, it works.
Jun
15
comment Can I redefine the dollar
@egreg. I know, I can put the \catcode in a group, and this will have no effect outside. But if i don't, how can I cancel the effect of '\catcode`$=\active' later on in the document ? And for which reason did you put a \protected ?
Jun
15
asked Can I redefine the dollar
Jun
12
asked Can I define a macro with same name as an already defined command?
Jun
11
accepted Difficulty with \write
Jun
11
comment Difficulty with \write
David ... that's just great!
Jun
11
comment Difficulty with \write
I'm not sure whether i understood your question, but the output file is not intended to be read by TeX anymore. It is something like an XML file, if you want. Stupid question : is there an option of pdfLatex, which allows to produce a pure text file, instead of a pdf ?
Jun
11
comment Difficulty with \write
I can't do what @egreg says, because \Content is given to me in a tex file. I can only implement something in a documentclass and compile the tex-file with this class, but not modify \Content per hand. :(
Jun
11
comment Difficulty with \write
yes, ok, i understand this. But i can't see any way of expanding first completely \Content ( and therefore let the counter increase), and then write the result of this expansion into a file... On the other hand, i was always convinced of "with LaTeX, nothing is impossible" ...
Jun
11
accepted Why does \expandafter not expand the full { } group?
Jun
11
comment Why does \expandafter not expand the full { } group?
Thanks for the info. I simply had a wrong understanding of the expansion process.
Jun
11
comment Difficulty with \write
Thanks for the explanation. For me, it's hard to accept, that there is no way to perform what i wanted. What is the fundamental reason, why we don't have any version of def/edef which expands completely and also executes assignements ?
Jun
9
asked Why does \expandafter not expand the full { } group?