On Sun, 23 Apr 2006 11:23:07 -0700 Kenward Vaughan <[EMAIL PROTECTED]> wrote:
> After some kind help from Micha and Charles, I have 1.4.1 running > apparently smoothly (the screen still appears a bit sluggish, which I > recall seeing in other posts about 1.4.1--but that's not an issue for > me yet... ;-). An important problem I immediately encountered involves > the way it interprets the enumeration environment in older files. > > What happens in my exams is an apparent reset of the counter after any > deliberate page break. As a chunk of my exams includes several pages > of m/c questions, this is a real problem. I have included a gutted > example exam which shows this behavior. > The solution to this is to set the page break to be part of the enumeration environment instead of a standard paragraph. You can do this by indenting the page break, using the keyboard, put your cursor on the page break and press Alt-p <right arrow> (I attached the modified version of your file that shows the result) What you are experiencing is a byproduct of the method to separate environments that don't separate well (such two theorems that otherwise become two paragraphs of the same theorem) by inserting an empty tex-code environment (Ctrl-l) as a standard paragraph for a place holder between them. > Additionally, a conversion error occurs some (but not all) other files > which generates the following error: From what I could see the problem occurs from the \newline test inside the ert if you replace all \newline by \backslash newline it makes the problem go away at least for me (the file opens up quite nicely). I don't know if this is a real bug or not, probably is. If all you need is the other text in the document and not those actual erts you can probably just get read of all the \newline instead (although its probably the same amount of work if you are doing a search and replace on the text file anyway). Its probably and easy fix to the lyx2lyx script also but I don't know it or python enough to do it at the moment. > > ========== > > daddy:/usr/share/lyx/lyx2lyx# python lyx2lyx -o /tmp/ex1.lyx > ~/Chemistry/chem18/tests/e1/c8_e1_a_2001.lyx > Warning: An error ocurred in 241, <function convert_ert_paragraphs at > 0xb7bce5a4> > Traceback (most recent call last): > File "lyx2lyx", line 91, in ? > sys.exit(main(sys.argv)) > File "lyx2lyx", line 84, in main > file.convert() > File "/usr/share/lyx/lyx2lyx/LyX.py", line 328, in convert > conv(self) > File "/usr/share/lyx/lyx2lyx/lyx_1_4.py", line 2256, in > convert_ert_paragraphs k = find_token(file.body, "\\newline", k, j) > File "/usr/share/lyx/lyx2lyx/parser_tools.py", line 35, in find_token > if lines[i][:m] == token: > IndexError: list index out of range > > ========== > > I have included 2 versions of this (names different than the above). It > apparently stems from having code in the exam associated with an old, > non-existent chemistry drawing package. Is this something I am going > to have to clean up manually? The exams contain material I need to > access. > > Many thanks, > > > Kenward
exampleProblemExamLyX.lyx
Description: application/lyx
