Re: LaTeX -> LyX and \newcommand

2010-09-01 Thread Torquil Macdonald Sørensen
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

Re: LaTeX -> LyX and \newcommand

2010-08-31 Thread Uwe Stöhr
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 witho

Re: LaTeX -> LyX and \newcommand

2010-08-31 Thread Torquil Macdonald Sørensen
On 31/08/10 20:52, Hal Kierstead wrote: I agree that this would be very pleasing, especially when working with collaborators who do not use LyX and who use many new commands. Hal This is the simple python code which takes a filename as an argument, and creates the file PlastexProcessed.tex

Re: LaTeX -> LyX and \newcommand

2010-08-31 Thread Hal Kierstead
I agree that this would be very pleasing, especially when working with collaborators who do not use LyX and who use many new commands. Hal On Aug 31, 2010, at 11:35 AM, Torquil Macdonald Sørensen wrote: > On 31/08/10 19:35, Uwe Stöhr wrote: > > Am 31.08.2010 18:35, schrieb Torquil Macdonald Sør

Re: LaTeX -> LyX and \newcommand

2010-08-31 Thread Torquil Macdonald Sørensen
On 31/08/10 19:35, Uwe Stöhr wrote: > Am 31.08.2010 18:35, schrieb Torquil Macdonald Sørensen: > >> My goal was to import a LaTeX file into LyX, but LyX was not able to >> understand all the \newcommands in the document, and therefore I wanted >> to preprocess the LaTeX file first. > > What do you

Re: LaTeX -> LyX and \newcommand

2010-08-31 Thread Uwe Stöhr
Am 31.08.2010 18:35, schrieb Torquil Macdonald Sørensen: My goal was to import a LaTeX file into LyX, but LyX was not able to understand all the \newcommands in the document, and therefore I wanted to preprocess the LaTeX file first. What do you mean with LyX doesn't understand? LyX should imp

LaTeX -> LyX and \newcommand

2010-08-31 Thread Torquil Macdonald Sørensen
Hi! I figured out a way to preprocess LaTeX files in order to eliminate dependency on \newcommands, using Python and plasTeX. My goal was to import a LaTeX file into LyX, but LyX was not able to understand all the \newcommands in the document, and therefore I wanted to preprocess the LaTeX f