On Tuesday 24 April 2007 11:07, Steve Litt wrote: > On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote: > > >>>>> "Steve" == Steve Litt <[EMAIL PROTECTED]> writes: > > > > Steve> Thanks Richard, I just filed this as bugzilla "bug" 3501. It's > > Steve> assigned to Jean-Marc Lasgouttes. > > > > Steve> Jean-Marc -- if I can help in any way I can help, please let me > > Steve> know. I can compile 1.4.3 on my machine (although it takes > > Steve> forever and a day -- 15 minutes from scratch), I found the code > > Steve> that does the reconfigure, and found the code that does the -x. > > > > Did you see my answer on this bug? > > > > JMarc > > Excellent JMarc! > > When I get back from my bicycle ride I'll document your answer so everyone > can use it. You've just saved me a fortune in layout debugging time. > > Thanks so much. > > SteveT
Hi all, This is documentation for JMarc's answer. I'm not good with wikis. Could somebody please put this up on the Wiki somewhere? Also, can someone knowledgeable in Windows please translate my shellscripts to batch files or whatever Windows uses these days? I believe Marc's solution will speed layout debugging by at least a factor of 2, probably more. To reconfigure LyX, use the following shellscript, which I called lyx_reconfigure.sh, and placed on my executable path: ============================================ #!/bin/bash LYXDIR=/usr/share/lyx # CHANGE THIS TO SUIT YOUR SYSTEM cd ~/.lyx $LYXDIR/configure.py cd - ============================================ Once you have the preceding script on your path, here's an example on how you use it: =========================================== #!/bin/bash MYDVIVIEWER=xdvi # CHANGE THIS AS APPROPRIATE MYPDFVIEWER=acroread # CHANGE THIS AS APPROPRIATE MYLYXFILEPREFIX=vimtonight # CHANGE THIS AS APPROPRIATE MYLYXFILE=$MYLYXFILEPREFIX.lyx MYTEXFILE=$MYLYXFILEPREFIX.tex MYDVIFILE=$MYLYXFILEPREFIX.dvi MYPSFILE=$MYLYXFILEPREFIX.ps MYPDFFILE=$MYLYXFILEPREFIX.pdf ### REMOVE OLD INTERMEDIATE AND OUTPUT FILES ### ### TO PREVENT BEING FOOLED BY COMPILE FAILURES ### rm -f $MYTEXFILE rm -f $MYDVIFILE rm -f $MYPSFILE rm -f $MYPDFFILE ### REBUILD AND VIEW OUTPUT FILE ### lyx_reconfigure.sh lyx -e latex $MYLYXFILE latex $MYTEXFILE $MYDVIVIEWER $MYDVIFILE ### CREATE PDF FILE (CAN BE DONE DIRECTLY ALSO) ### ### FOR DEBUGGING AND EXPERIMENTATION, ### ### THE FOLLOWING IS UNNECESSARY AND ### ### CAN BE COMMENTED OUT ### #dvips -o $MYPSFILE $MYDVIFILE #ps2pdf $MYPSFILE #$MYPDFVIEWER $MYPDFFILE =========================================== Using the preceding script, one can change a layout file, run the script, and view the result. No need to mouse around with GUI LyX. This will significantly increase productivity in layout troubleshooting and experimentation. Note that the example shellscript above is simple. If your content needs to rebuild indices, it might be more complex, but even so, you can now experiment with a layout without the need to manually reconfigure each time. HTH SteveT
