On 01/09/10 01:47, Uwe Stöhr wrote:
Am 31.08.2010 20:35, schrieb Torquil Macdonald Sørensen:
Let me try to explain better what I meant. I don't want those grey
boxes of tex code for each
instance where a user-defined command is executed in the latex
document. I want my LyX file to look
as if I had written everything in LyX without use of any \newcommand.
The following LaTeX file captures the essence of the file I just had
the misfortune to work with:
\newcommand{\bea}{\begin{equation}}
\newcommand{\eea}{\end{equation}}
\begin{document}
\bea
\int f(x) dx = 0
\eea
Thanks, now I understand what you meant.
Such a feature is indeed very useful when collaborating with plain TeX
users. I propose to create a new Wiki page describing your method and
attaching there your python script.
Create a new Wiki page in this Wiki space:
http://wiki.lyx.org/LaTeX/LaTeX
(To upload files, like your script you need a password. if you need
this, mail me and I'll send it to you privately.)
thanks in advance and best regards
Uwe
The wiki page has now been created. Feel free anyone to improve it
(title/description/script/example/formatting etc.)
Ref:
http://wiki.lyx.org/LaTeX/ExpandNewcommands
Linked from this page:
http://wiki.lyx.org/LaTeX/LaTeX