3 Apr
2010
3 Apr
'10
2:44 p.m.
Wolfgang Schuster wrote:
Am 03.04.10 16:16, schrieb luigi scarso:
name space to avoid macro collision
Possible with internal commands but you can run into problems with the user commands, a problem is also how LaTeX handle environments For \begin{env} LaTeX expects a macro with the name \<env> end for \end{env} a macro with the name \end<env>.
Lua can be more effective than TeX here ?
Lua can't do anything with conflicts at the user level.
For a LaTeX module you can do something like
\begin{env} -> \??lm:begin:env \end{env} -> \??lm:end:env
I think the current latex module does \def\begin#1{\csname start#1\endcsname} \def\end#1{\csname stop#1\endcsname} but that all depends on how much latex compatibility is really needed. Best wishes, Taco