On Thursday 27 January 2005 22:27, Sven Schreiber wrote:
>
> <from-relyx>
> # 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
> 1 2 0 0 0 0 0 0
> 0 0 0 0

  This line is bogus. This is clearly wrong, it shouldn't be here.
  The line above says that this table has 1 line and two columns.

  Bellow we have discription for the columns and then for all cells (2), so 
this line is completly wrong. :-(

> 8 0 0 "" ""
> 8 0 0 "" ""
> 0 8 0 0 0 0 0 "" ""
> 0 8 0 0 0 0 0 "" ""
>
>
> \begin_inset Formula \( 7
> \latex latex
>
> \backslash )*
> \latex default
> *
> \newline
>
> \begin_inset Formula \( 4
> \latex latex
>
> \backslash )*
> \latex default
> *
> \newline
>
>
> \the_end
> </from-relyx>
>
> Now I don't know much about the lyx-format, but this looks a bit strange
> considering where it came from... With this input, lyx2lyx hangs!
> forever.

  lyx2lyx must trust in some way the input file. It is very difficult to 
distinguish and guard against all the different possibilities. At least 
with regard to older lyx formats. That is one of the main reasons why we 
have been cleaning the file format in 1.4, actually we had more file format 
changes in 1.4 than all the previous versions combined. (!) :-)

> Workaround/solution: put a blank after the closing $, like this:
> "$x$ **".
>
> (@G�nter Milde: next item for the latex-import-wiki: avoid having
> something directly after the closing math-$.)
>
> Note that if a thing like "$x$**" exists only once in the source, then
> lyx2lyx doesn't hang but the output is of course not what it's intended
> to be. And if the source is just the line "$7$**  $4$**" (without the
> tabular), same thing: no hang, but strange lyx output.
>
> Hey -- wait a minute: relyx is written in perl, right? Maybe "$*" gets
> evaluated directly by perl although it's not supposed to be? (Don't know
> what's the special meaning of $* in perl.) Oh well, just a wild idea.
>
> I hope this is useful for the relyx-programmer(s) to squash the bug...

  That is the problem. The perl code can be quite difficult to grok, and no 
one here has enough knowledge to fix it. :-(

> -sven

-- 
Jos� Ab�lio

Reply via email to