On Sunday 13 October 2002 07:11 pm, Robin Turner wrote:
> Steve Litt wrote:
> > Hi all,
> >
> > This has been puzzling me for awhile. I make a new LyX file, inserting a
> > TOC button. View->Postscript and I get the word "Contents" with no TOC.
> > In order to generate the TOC I must add or delete a space (or otherwise
> > materially change the text of the document), and then View->Postscript
> > again.
> >
> > Worse yet, any change in the file must be accompanied by a similar change
> > in the document. Stuff in the Layout->Document is not always sufficient
> > -- for instance, I can Layout->Document->Document_tab->Font_size: 12,
> > save, and view->postscript, and the contents will still have the page
> > numbering they had when the font size was 10.
> >
> > Sure, I can go back in, add a space, and again view->postscript to get
> > the right TOC, but clearly this behavior is an accident waiting to
> > happen.
> >
> > I'm using LyX 1.1.6fix4 on Mandrake 8.2.
> >
> > Are there packages I can use to stop this behavior? Is there a
> > workaround? One really shouldn't need to recheck the TOC with every
> > regeneration.
> >
> > Thanks
> >
> > Steve
>
> That is odd, but Mandrake and LyX often don't play nice.  Try upgrading
> to LyX 1.2.1 - that works fine for me in Mandrake 8.2 and 9.0.
>
> Robin

Thanks Robin!

I've devised a workaround but I'm still interested in the explanation. But 
meanwhile, if anyone else has this problem, the workround is the following 
script, run from the command line:

#!/bin/bash
rm -f $1.aux
rm -f $1.dvi
rm -f $1.log
rm -f $1.ps
rm -f $1.tex
rm -f $1.toc
lyx --export latex $1.lyx
latex $1.tex
latex $1.tex
dvips -o $1.ps $1.dvi
gv $1.ps

Notice the two distinct runs of the latex command. The first changes the .toc 
file, and the second incorporates it.

If the script is called kludge.sh, and the file to be compiled is test.lyx, 
then the command to compile and view is:

./kludge.sh test

SteveT


-- 
_____________________________________________________________
Steve Litt
Author: 
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com

Troubleshooters.Com Webmaster 
(Legal Disclaimer) Follow these suggestions at your own risk.
-------------------------------------------------------------



Reply via email to