Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-27 Thread Jose' Matos
On Wednesday 26 January 2005 16:05, Sven Schreiber wrote:
 Jose' Matos wrote:
Do you have a small example where this happens?
 
It should be easy to fix.

 I cannot reproduce the infinite hanging yet with a small example, but
 I can reproduce an abort with error, so I'll leave the hang for later --
 please note again, this is *not* win-specific, I also tried importing it
 on linux. Consider this latex doc:

 \documentclass{article}
 \begin{document}
 \begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
  eigenvalue \\ \hline
  \multicolumn{6}{l}{log} \\ \hline
 \end{tabular}
 \end{document}

 This compiles without errors in latex.

 I run relyx on it, that reports finished successfully! and I get the
 following lyx document (I've tried not to change line spacing etc.):

  Running it over tex2lyx I get a different file, and this is a valid lyx 
file, as well what you intended. :-)

...
 Then I run lyx2lyx on it, and it reports Malformed lyx file and aborts
 without output.

 Is it multicolumn alone or do the column widths have anything to do?

  I am not sure, it should declare 14 cells, yet shows 26 (!?), so this is a 
bug from reLyX.

 cheers, sven

  Until know all lyx2lyx bugs have been solved quickly, and I intend to 
maintain this record. What can be done in another stage is to recover 
gracefully from malformed lyx files, but that is clearly another issue. :-)

-- 
José Abílio


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-27 Thread Jose' Matos
On Wednesday 26 January 2005 16:05, Sven Schreiber wrote:
 Jose' Matos wrote:
Do you have a small example where this happens?
 
It should be easy to fix.

 I cannot reproduce the infinite hanging yet with a small example, but
 I can reproduce an abort with error, so I'll leave the hang for later --
 please note again, this is *not* win-specific, I also tried importing it
 on linux. Consider this latex doc:

 \documentclass{article}
 \begin{document}
 \begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
  eigenvalue \\ \hline
  \multicolumn{6}{l}{log} \\ \hline
 \end{tabular}
 \end{document}

 This compiles without errors in latex.

 I run relyx on it, that reports finished successfully! and I get the
 following lyx document (I've tried not to change line spacing etc.):

  Running it over tex2lyx I get a different file, and this is a valid lyx 
file, as well what you intended. :-)

...
 Then I run lyx2lyx on it, and it reports Malformed lyx file and aborts
 without output.

 Is it multicolumn alone or do the column widths have anything to do?

  I am not sure, it should declare 14 cells, yet shows 26 (!?), so this is a 
bug from reLyX.

 cheers, sven

  Until know all lyx2lyx bugs have been solved quickly, and I intend to 
maintain this record. What can be done in another stage is to recover 
gracefully from malformed lyx files, but that is clearly another issue. :-)

-- 
José Abílio


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-27 Thread Jose' Matos
On Wednesday 26 January 2005 16:05, Sven Schreiber wrote:
> Jose' Matos wrote:
> >   Do you have a small example where this happens?
> >
> >   It should be easy to fix.
>
> I cannot reproduce the infinite "hanging" yet with a small example, but
> I can reproduce an abort with error, so I'll leave the hang for later --
> please note again, this is *not* win-specific, I also tried importing it
> on linux. Consider this latex doc:
>
> \documentclass{article}
> \begin{document}
> \begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
>  & &  & eigenvalue & & &  \\ \hline
>  \multicolumn{6}{l}{log} \\ \hline
> \end{tabular}
> \end{document}
>
> This compiles without errors in latex.
>
> I run relyx on it, that reports "finished successfully!" and I get the
> following lyx document (I've tried not to change line spacing etc.):

  Running it over tex2lyx I get a different file, and this is a valid lyx 
file, as well what you intended. :-)

...
> Then I run lyx2lyx on it, and it reports "Malformed lyx file" and aborts
> without output.
>
> Is it multicolumn alone or do the column widths have anything to do?

  I am not sure, it should declare 14 cells, yet shows 26 (!?), so this is a 
bug from reLyX.

> cheers, sven

  Until know all lyx2lyx bugs have been solved quickly, and I intend to 
maintain this record. What can be done in another stage is to recover 
gracefully from malformed lyx files, but that is clearly another issue. :-)

-- 
José Abílio


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread G. Milde
On 25.01.05, Sven Schreiber wrote:
 
 Ok, I take that as meaning that relyx  tabular (or similar) is really a 
 hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
 good idea to collect in some public place hints and experience from 
 users with respect to what works and what doesn't. And this time right 
 from the start of this new tool tex2lyx.

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips

Günter

-- 
G.Milde web.de


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
Jose' Matos wrote:
  Do you have a small example where this happens?
  It should be easy to fix.
I cannot reproduce the infinite hanging yet with a small example, but 
I can reproduce an abort with error, so I'll leave the hang for later -- 
please note again, this is *not* win-specific, I also tried importing it 
on linux. Consider this latex doc:

\documentclass{article}
\begin{document}
\begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
eigenvalue \\ \hline
\multicolumn{6}{l}{log} \\ \hline
\end{tabular}
\end{document}
This compiles without errors in latex.
I run relyx on it, that reports finished successfully! and I get the 
following lyx document (I've tried not to change line spacing etc.):

snip
# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\use_natbib 0
\use_numerical_citations 0
\layout Standard

\LyXTable
multicol5
2 7 0 0 0 0 0 0
0 1 0 0
0 1 0 0
8 0 1 1.75cm 
8 0 1  
8 0 1 0.75cm 
8 0 1 2cm 
8 0 1 3cm 
8 0 1 1.5cm 
8 0 0 1.5cm 
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
1 2 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
0 8 0 1 0 0 0  
\newline
\newline
\newline
 eigenvalue
\newline
\newline
\newline
\newline
log

\the_end
/snip
along with this .relyx1 file, if it matters at all:
snip
\documentclass{article}
/snip
Then I run lyx2lyx on it, and it reports Malformed lyx file and aborts 
without output.

Is it multicolumn alone or do the column widths have anything to do?
cheers, sven


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
G. Milde wrote:

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips
Günter
That's a great idea. Looking at the wiki, maybe use the latex page 
(which seems natural and is pretty empty) instead of tips?

-sven


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread G. Milde
On 25.01.05, Sven Schreiber wrote:
 
 Ok, I take that as meaning that relyx  tabular (or similar) is really a 
 hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
 good idea to collect in some public place hints and experience from 
 users with respect to what works and what doesn't. And this time right 
 from the start of this new tool tex2lyx.

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips

Günter

-- 
G.Milde web.de


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
Jose' Matos wrote:
  Do you have a small example where this happens?
  It should be easy to fix.
I cannot reproduce the infinite hanging yet with a small example, but 
I can reproduce an abort with error, so I'll leave the hang for later -- 
please note again, this is *not* win-specific, I also tried importing it 
on linux. Consider this latex doc:

\documentclass{article}
\begin{document}
\begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
eigenvalue \\ \hline
\multicolumn{6}{l}{log} \\ \hline
\end{tabular}
\end{document}
This compiles without errors in latex.
I run relyx on it, that reports finished successfully! and I get the 
following lyx document (I've tried not to change line spacing etc.):

snip
# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\use_natbib 0
\use_numerical_citations 0
\layout Standard

\LyXTable
multicol5
2 7 0 0 0 0 0 0
0 1 0 0
0 1 0 0
8 0 1 1.75cm 
8 0 1  
8 0 1 0.75cm 
8 0 1 2cm 
8 0 1 3cm 
8 0 1 1.5cm 
8 0 0 1.5cm 
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
0 8 0 1 0 0 0  
1 2 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
2 8 0 1 0 0 0  
0 8 0 1 0 0 0  
\newline
\newline
\newline
 eigenvalue
\newline
\newline
\newline
\newline
log

\the_end
/snip
along with this .relyx1 file, if it matters at all:
snip
\documentclass{article}
/snip
Then I run lyx2lyx on it, and it reports Malformed lyx file and aborts 
without output.

Is it multicolumn alone or do the column widths have anything to do?
cheers, sven


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
G. Milde wrote:

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips
Günter
That's a great idea. Looking at the wiki, maybe use the latex page 
(which seems natural and is pretty empty) instead of tips?

-sven


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread G. Milde
On 25.01.05, Sven Schreiber wrote:
 
> Ok, I take that as meaning that relyx & tabular (or similar) is really a 
> hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
> good idea to collect in some public place hints and experience from 
> users with respect to what works and what doesn't. And this time right 
> from the start of this new tool tex2lyx.

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips

Günter

-- 
G.Milde web.de


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
Jose' Matos wrote:
  Do you have a small example where this happens?
  It should be easy to fix.
I cannot reproduce the infinite "hanging" yet with a small example, but 
I can reproduce an abort with error, so I'll leave the hang for later -- 
please note again, this is *not* win-specific, I also tried importing it 
on linux. Consider this latex doc:

\documentclass{article}
\begin{document}
\begin{tabular}{p{1.75cm}|c|p{0.75cm}|p{2cm}|p{3cm}|p{1.5cm}|p{1.5cm}}
& &  & eigenvalue & & &  \\ \hline
\multicolumn{6}{l}{log} \\ \hline
\end{tabular}
\end{document}
This compiles without errors in latex.
I run relyx on it, that reports "finished successfully!" and I get the 
following lyx document (I've tried not to change line spacing etc.):


# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\use_natbib 0
\use_numerical_citations 0
\layout Standard

\LyXTable
multicol5
2 7 0 0 0 0 0 0
0 1 0 0
0 1 0 0
8 0 1 "1.75cm" ""
8 0 1 "" ""
8 0 1 "0.75cm" ""
8 0 1 "2cm" ""
8 0 1 "3cm" ""
8 0 1 "1.5cm" ""
8 0 0 "1.5cm" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
1 2 0 1 0 0 0 "" ""
2 8 0 1 0 0 0 "" ""
2 8 0 1 0 0 0 "" ""
2 8 0 1 0 0 0 "" ""
2 8 0 1 0 0 0 "" ""
2 8 0 1 0 0 0 "" ""
0 8 0 1 0 0 0 "" ""
\newline
\newline
\newline
 eigenvalue
\newline
\newline
\newline
\newline
log

\the_end

along with this .relyx1 file, if it matters at all:

\documentclass{article}

Then I run lyx2lyx on it, and it reports "Malformed lyx file" and aborts 
without output.

Is it multicolumn alone or do the column widths have anything to do?
cheers, sven


Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-26 Thread Sven Schreiber
G. Milde wrote:

IMHO, the lyx wiki  would be the right place for such user-provided hints.
Maybe we could start a section for tex2lyx (or even for relyx, as long as we
have to live with it) e.g. in  http://wiki.lyx.org/pmwiki.php/Tips/Tips
Günter
That's a great idea. Looking at the wiki, maybe use the latex page 
(which seems natural and is pretty empty) instead of tips?

-sven


follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Sven Schreiber
(Sorry for breaking the thread, I had just subscribed to the list and 
didn't confirm quickly enough, so I had to pick up the answers from the 
archive. But I'm fairly sure I'm on now.)

Re Georg:
2. In the meantime it would be nice if the relyx-savvy could provide
(permanent links to) more concrete advice on what latex constructs to
avoid. (In my particular case retyping the tables in lyx is probably
quicker than hand-editing the latex code, but for long-term or
search-and-replace batch operations this may be helpful.) Maybe I just
missed it?
IMHO the needed time would be better spent in improving tex2lyx wrt tables.
Ok, I take that as meaning that relyx  tabular (or similar) is really a 
hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
good idea to collect in some public place hints and experience from 
users with respect to what works and what doesn't. And this time right 
from the start of this new tool tex2lyx.

Re JMarc:
Another guess is that lyx2lyx fails to run. What version of LyX for
windows are you using? 1.3.5 has a bug that prevents lyx2lyx from
running (it is invoked directly, and windows does not guess that it is
a python script, since it does not have a .py extension).
Windows users, please correct me if I am wrong.
Yes I read about this bug and therefore did it by hand from the cli. 
Also as I said it happens on linux, too.

Forgive me for babbling on a little, I won't do it often: I believe that 
lyx should really focus on the latex-integration aspect. The wysiwym 
approach is great, but that together with just exporting to latex is 
also done by texmacs (although I cannot tell how good it is at that) and 
in the future apparently also by openoffice (same obvious caveat), not 
mentioning commercial apps. Imagine: if the OO latex export filter will 
be good (big if), during the revision process authors can even use the 
word-doc format (OO handles that pretty well), even for exchange, and in 
the end have great tex output.
So the only (I'm exaggerating...) remaining competitive advantage of lyx 
would be the direct latex integration. Lyx should build on that by 
making it easier to use the established latex doc-format for 
collaboration and exchange. Therefore, imho better latex import is 
really essential for the future of lyx.

Ok, enough already, thanks for your patience (and the developers for the 
program).

-sven



Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Jose' Matos
On Tuesday 25 January 2005 17:57, Sven Schreiber wrote:
 Yes I read about this bug and therefore did it by hand from the cli.
 Also as I said it happens on linux, too.

  Do you have a small example where this happens?

  It should be easy to fix.

-- 
José Abílio


follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Sven Schreiber
(Sorry for breaking the thread, I had just subscribed to the list and 
didn't confirm quickly enough, so I had to pick up the answers from the 
archive. But I'm fairly sure I'm on now.)

Re Georg:
2. In the meantime it would be nice if the relyx-savvy could provide
(permanent links to) more concrete advice on what latex constructs to
avoid. (In my particular case retyping the tables in lyx is probably
quicker than hand-editing the latex code, but for long-term or
search-and-replace batch operations this may be helpful.) Maybe I just
missed it?
IMHO the needed time would be better spent in improving tex2lyx wrt tables.
Ok, I take that as meaning that relyx  tabular (or similar) is really a 
hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
good idea to collect in some public place hints and experience from 
users with respect to what works and what doesn't. And this time right 
from the start of this new tool tex2lyx.

Re JMarc:
Another guess is that lyx2lyx fails to run. What version of LyX for
windows are you using? 1.3.5 has a bug that prevents lyx2lyx from
running (it is invoked directly, and windows does not guess that it is
a python script, since it does not have a .py extension).
Windows users, please correct me if I am wrong.
Yes I read about this bug and therefore did it by hand from the cli. 
Also as I said it happens on linux, too.

Forgive me for babbling on a little, I won't do it often: I believe that 
lyx should really focus on the latex-integration aspect. The wysiwym 
approach is great, but that together with just exporting to latex is 
also done by texmacs (although I cannot tell how good it is at that) and 
in the future apparently also by openoffice (same obvious caveat), not 
mentioning commercial apps. Imagine: if the OO latex export filter will 
be good (big if), during the revision process authors can even use the 
word-doc format (OO handles that pretty well), even for exchange, and in 
the end have great tex output.
So the only (I'm exaggerating...) remaining competitive advantage of lyx 
would be the direct latex integration. Lyx should build on that by 
making it easier to use the established latex doc-format for 
collaboration and exchange. Therefore, imho better latex import is 
really essential for the future of lyx.

Ok, enough already, thanks for your patience (and the developers for the 
program).

-sven



Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Jose' Matos
On Tuesday 25 January 2005 17:57, Sven Schreiber wrote:
 Yes I read about this bug and therefore did it by hand from the cli.
 Also as I said it happens on linux, too.

  Do you have a small example where this happens?

  It should be easy to fix.

-- 
José Abílio


follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Sven Schreiber
(Sorry for breaking the thread, I had just subscribed to the list and 
didn't confirm quickly enough, so I had to pick up the answers from the 
archive. But I'm fairly sure I'm on now.)

Re Georg:
2. In the meantime it would be nice if the relyx-savvy could provide
(permanent links to) more concrete advice on what latex constructs to
avoid. (In my particular case retyping the tables in lyx is probably
quicker than hand-editing the latex code, but for long-term or
search-and-replace batch operations this may be helpful.) Maybe I just
missed it?
IMHO the needed time would be better spent in improving tex2lyx wrt tables.
Ok, I take that as meaning that relyx & tabular (or similar) is really a 
hopeless case. Then I redirect my suggestion to tex2lyx: maybe it's a 
good idea to collect in some public place hints and experience from 
users with respect to what works and what doesn't. And this time right 
from the start of this new tool tex2lyx.

Re JMarc:
Another guess is that lyx2lyx fails to run. What version of LyX for
windows are you using? 1.3.5 has a bug that prevents lyx2lyx from
running (it is invoked directly, and windows does not guess that it is
a python script, since it does not have a .py extension).
Windows users, please correct me if I am wrong.
Yes I read about this bug and therefore did it by hand from the cli. 
Also as I said it happens on linux, too.

Forgive me for babbling on a little, I won't do it often: I believe that 
lyx should really focus on the latex-integration aspect. The wysiwym 
approach is great, but that together with "just" exporting to latex is 
also done by texmacs (although I cannot tell how good it is at that) and 
in the future apparently also by openoffice (same obvious caveat), not 
mentioning commercial apps. Imagine: if the OO latex export filter will 
be good (big if), during the revision process authors can even use the 
word-doc format (OO handles that pretty well), even for exchange, and in 
the end have great tex output.
So the only (I'm exaggerating...) remaining competitive advantage of lyx 
would be the direct latex integration. Lyx should build on that by 
making it easier to use the established latex doc-format for 
collaboration and exchange. Therefore, imho better latex import is 
really essential for the future of lyx.

Ok, enough already, thanks for your patience (and the developers for the 
program).

-sven



Re: follow-up: relyx / lyx2lyx problems and tex2lyx future

2005-01-25 Thread Jose' Matos
On Tuesday 25 January 2005 17:57, Sven Schreiber wrote:
> Yes I read about this bug and therefore did it by hand from the cli.
> Also as I said it happens on linux, too.

  Do you have a small example where this happens?

  It should be easy to fix.

-- 
José Abílio