Re: How to repair corrupted LYX file?

2011-11-15 Thread Richard Heck
On 11/15/2011 05:19 AM, Rainer M Krug wrote:
>
>
> On Tue, Nov 15, 2011 at 10:47 AM, Johannes Korn  > wrote:
>
> Hi all
>
> I have a problem with an extensive lyx document. It does not
> compile anymore since a while now. I didn´t look at the problem so
> far because I had other stuff to do - maybe that was a mistake
> because now I don´t know what changes originally caused the failure.
>
> In the failure log the topmost failure says "Paragraph ended
> before \@ssect was complete". I think that´s the one causing the
> termination. There are a few other errors like "Latex Error:
> subfloat outside float" but since they are not on top or bottom of
> the error log I´m not sure if they are of concern.
>
> Anyways the main problem is that I cannot determine the location
> of the defective part of the document. If I click on the error
> message some lines of text are marked within the document. But
> deleting these lines does not solve the problems. In the next
> compilation run another part causes the errors.
>
> I already removed anything suspicious from "Document->Settings".
> The only special thing is that the document is in UTF8.
>
> How would you proceed? Can I output the errors to a log file?
>
>
> These log files are often quite cryptic...
>
> My approach would be to export to LaTeX and open the resulting .tex
> file in a LaTeX editor. In most LaTeX editors, you have folding, so
> that you can fold blocks, and see where the problem lies.
>
> Different approach: make a backup of your document, delete half, see
> which half compiles, take the one which does not compile and delete
> half, and continue until you see what is happening.
>
This is the fastest way, usually. You'll end up doing this with the
LaTeX file anyway.

rh



Re: How to repair corrupted LYX file?

2011-11-15 Thread Rainer M Krug
On Tue, Nov 15, 2011 at 10:47 AM, Johannes Korn  wrote:

> Hi all
>
> I have a problem with an extensive lyx document. It does not compile
> anymore since a while now. I didn´t look at the problem so far because I
> had other stuff to do - maybe that was a mistake because now I don´t know
> what changes originally caused the failure.
>
> In the failure log the topmost failure says "Paragraph ended before
> \@ssect was complete". I think that´s the one causing the termination.
> There are a few other errors like "Latex Error: subfloat outside float" but
> since they are not on top or bottom of the error log I´m not sure if they
> are of concern.
>
> Anyways the main problem is that I cannot determine the location of the
> defective part of the document. If I click on the error message some lines
> of text are marked within the document. But deleting these lines does not
> solve the problems. In the next compilation run another part causes the
> errors.
>
> I already removed anything suspicious from "Document->Settings". The only
> special thing is that the document is in UTF8.
>
> How would you proceed? Can I output the errors to a log file?
>

These log files are often quite cryptic...

My approach would be to export to LaTeX and open the resulting .tex file in
a LaTeX editor. In most LaTeX editors, you have folding, so that you can
fold blocks, and see where the problem lies.

Different approach: make a backup of your document, delete half, see which
half compiles, take the one which does not compile and delete half, and
continue until you see what is happening.

Cheers,

Rainer

>
> Regards
>
> Johannes
>
>


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


How to repair corrupted LYX file?

2011-11-15 Thread Johannes Korn

Hi all

I have a problem with an extensive lyx document. It does not compile 
anymore since a while now. I didn´t look at the problem so far because I 
had other stuff to do - maybe that was a mistake because now I don´t 
know what changes originally caused the failure.


In the failure log the topmost failure says "Paragraph ended before 
\@ssect was complete". I think that´s the one causing the termination. 
There are a few other errors like "Latex Error: subfloat outside float" 
but since they are not on top or bottom of the error log I´m not sure if 
they are of concern.


Anyways the main problem is that I cannot determine the location of the 
defective part of the document. If I click on the error message some 
lines of text are marked within the document. But deleting these lines 
does not solve the problems. In the next compilation run another part 
causes the errors.


I already removed anything suspicious from "Document->Settings". The 
only special thing is that the document is in UTF8.


How would you proceed? Can I output the errors to a log file?

Regards

Johannes