Re: [patch] tex2lyx improvements

2003-10-30 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I wrote a perl subroutine for reLyX that I think captured all Angus> the possibilities. Why note just port that to c++? I think that what we have is good enough for now. JMarc

Re: [patch] tex2lyx improvements

2003-10-28 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> The roundtrip works quite well. The main problems are: ... Georg> - Each loop adds stuff to the preamble Yes, the preamble handling is still not very good. One thing that should be efficient and easy to implement is to do as reLyX do

Re: [patch] tex2lyx improvements

2003-10-27 Thread Andre Poenitz
On Sun, Oct 26, 2003 at 09:50:02PM +0100, Georg Baum wrote: > Asger Kunuk Alstrup wrote: > > > Just a clarifying question: How well do we handle a round-trip of the > > User guide now? I.e. open the user guide, export to LaTeX, then use > > your patched version of tex2lyx to import the LaTeX. Then

Re: [patch] tex2lyx improvements

2003-10-26 Thread Angus Leeming
Georg Baum wrote: > - Each loop adds stuff to the preamble Yes. The preamble stuff has no intelligence at all. It just dumps output. > I have more trouble with non lyx-generated documents. The main > problem is the fact that Parser::tokenize() unconditionally removes > all whitespace after a com

Re: [patch] tex2lyx improvements

2003-10-26 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Georg> - handle optional arg to \item as ERT in itemize environment, > Georg> since LyX does not support it directly >>> I do not like the way this one is implemented. You have all the >>> information you need in the layout file. Instead of testing against >>> "itemi

Re: [patch] tex2lyx improvements

2003-10-26 Thread Georg Baum
Asger Kunuk Alstrup wrote: > Just a clarifying question: How well do we handle a round-trip of the > User guide now? I.e. open the user guide, export to LaTeX, then use > your patched version of tex2lyx to import the LaTeX. Then export again, > and compare to the original export. Diff is your frie

Re: [patch] tex2lyx improvements

2003-10-23 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> I would rather like it the other way round: Make tex2lyx < Georg> infile > outfile work. You can do both, like gzip does. Georg> - output minipages with latex lengths as ERT, since lyx cannot Georg> handle them >> Could you be more

Re: [patch] tex2lyx improvements

2003-10-23 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Georg> - allow parsing of partial documents (for inclusion with \input). > Georg> - steal commandline switches -c and -f from reLyX to support > Georg> the previous point > > Good ideas. It would be nice to chenge the semantics of tex2lyx to > match those of reLyX (fo

Re: [patch] tex2lyx improvements

2003-10-23 Thread Georg Baum
Andre Poenitz wrote: > Rather try to fix converting the UserGuide. It currently produce a > reasonable LyX which translates to invalid .tex in chapter 3.3: I know. I have a fix, but it touches the "Through away all whitespace after \command and add a space later" rule, and it is not finished. I'l

Re: [patch] tex2lyx improvements

2003-10-23 Thread Andre Poenitz
On Thu, Oct 23, 2003 at 02:56:21PM +0200, Jean-Marc Lasgouttes wrote: > Andre> The TeXbook. > > I see... I was surprised that the LaTeX manual did not mention it. Maybe because Mr Lamport figured out that too much freedom is bad for your health. > Andre> Note that the real fun starts with 4,5cM.

Re: [patch] tex2lyx improvements

2003-10-23 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: >> Good ideas. It would be nice to chenge the semantics of tex2lyx to >> match those of reLyX (for example have file.lyx as default output file >> instead of std output, and investigate what other flags may be useful). > | Please not. Fixed output files a

Re: [patch] tex2lyx improvements

2003-10-23 Thread Angus Leeming
Andre Poenitz wrote: >> Georg> - add support for lengths with comma (4,5cm instead of >> 4.5cm) Georg> to minipage environments. >> >> I have to admit that my first feeling was to say ``this is wrong'' >> but now I tried it and indeed it works... Where is this documented? > > The TeXbook. > > No

Re: [patch] tex2lyx improvements

2003-10-23 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> Good ideas. It would be nice to chenge the semantics of tex2lyx to >> match those of reLyX (for example have file.lyx as default output >> file instead of std output, and investigate what other flags may be >> useful). Andre> Please n

Re: [patch] tex2lyx improvements

2003-10-23 Thread Andre Poenitz
On Thu, Oct 23, 2003 at 02:41:01PM +0200, Jean-Marc Lasgouttes wrote: > > "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: > > Georg> I am still in the process of converting a 220 page document > Georg> with tex2lyx. There are still some issues left, but in the > Georg> attached patch you wil

Re: [patch] tex2lyx improvements

2003-10-23 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> I am still in the process of converting a 220 page document Georg> with tex2lyx. There are still some issues left, but in the Georg> attached patch you will find some improvemnts that accumulated Georg> so far. A short summary: I am a

Re: [patch] tex2lyx improvements

2003-10-23 Thread Andre Poenitz
On Wed, Oct 22, 2003 at 10:52:46PM +0200, Georg Baum wrote: > It would be nice if somebody could review this and apply. Done. > If necessary, I can split it apart. Rather try to fix converting the UserGuide. It currently produce a reasonable LyX which translates to invalid .tex in chapter 3.3:

Re: [patch] tex2lyx improvements

2003-10-23 Thread Asger Kunuk Alstrup
On Wed, 22 Oct 2003, Georg Baum wrote: > I am still in the process of converting a 220 page document with tex2lyx. > There are still some issues left, but in the attached patch you will find > some improvemnts that accumulated so far. A short summary: I am not in a position to approve the patch,

[patch] tex2lyx improvements

2003-10-22 Thread Georg Baum
I am still in the process of converting a 220 page document with tex2lyx. There are still some issues left, but in the attached patch you will find some improvemnts that accumulated so far. A short summary: - add \text{}, \intertext{} and \fbox{} support in mathmode. - add support for some math en