Re: Long preview compilation due to unnecessarily often calling pdflatex?
On Mon, Mar 19, 2018 at 10:35:08AM +, Jürgen Spitzmüller wrote: > Am Montag, den 19.03.2018, 11:29 +0100 schrieb Jürgen Spitzmüller: > > Am Montag, den 19.03.2018, 11:17 +0100 schrieb Klaus-Dieter Bauer: > > > > Hopefully someone here knows whether there's something we > > > > > > should improve. > > > > > > Mostly just the ability to get a faster error reports and layout > > > previews by forcing single-pass compilation of the PDF preview > > > (unless it already exists and I just can't find it). > > > > I think you can define your own "one-pass" LaTeX > PDF (maybe > > incomplete)" converter by omitting the latex flag. I don't think it > > is > > a good idea to provide this in LyX, though, since we do not want to > > provide something that potentially results in incomplete or wrong > > documents. > > Having said that, there are this two comparable requests: > https://www.lyx.org/trac/ticket/10080 > https://www.lyx.org/trac/ticket/7521 > > I think something like a "draft" mode could be done, given that it's > clearly marked as such (and people do not have the impression their > document is final). I just did not know how LyX decided a rerun was necessary, so I just wanted to make sure we weren't misparsing the logs. Scott signature.asc Description: PGP signature
Re: Long preview compilation due to unnecessarily often calling pdflatex?
Am Montag, den 19.03.2018, 11:29 +0100 schrieb Jürgen Spitzmüller: > Am Montag, den 19.03.2018, 11:17 +0100 schrieb Klaus-Dieter Bauer: > > > Hopefully someone here knows whether there's something we > > > > should improve. > > > > Mostly just the ability to get a faster error reports and layout > > previews by forcing single-pass compilation of the PDF preview > > (unless it already exists and I just can't find it). > > I think you can define your own "one-pass" LaTeX > PDF (maybe > incomplete)" converter by omitting the latex flag. I don't think it > is > a good idea to provide this in LyX, though, since we do not want to > provide something that potentially results in incomplete or wrong > documents. Having said that, there are this two comparable requests: https://www.lyx.org/trac/ticket/10080 https://www.lyx.org/trac/ticket/7521 I think something like a "draft" mode could be done, given that it's clearly marked as such (and people do not have the impression their document is final). Jürgen > > Jürgen signature.asc Description: This is a digitally signed message part
Re: Long preview compilation due to unnecessarily often calling pdflatex?
Am Montag, den 19.03.2018, 11:17 +0100 schrieb Klaus-Dieter Bauer: > > Hopefully someone here knows whether there's something we > should improve. > > Mostly just the ability to get a faster error reports and layout > previews by forcing single-pass compilation of the PDF preview > (unless it already exists and I just can't find it). I think you can define your own "one-pass" LaTeX > PDF (maybe incomplete)" converter by omitting the latex flag. I don't think it is a good idea to provide this in LyX, though, since we do not want to provide something that potentially results in incomplete or wrong documents. Jürgen signature.asc Description: This is a digitally signed message part
Re: Long preview compilation due to unnecessarily often calling pdflatex?
> Hopefully someone here knows whether there's something we should improve. Mostly just the ability to get a faster error reports and layout previews by forcing single-pass compilation of the PDF preview (unless it already exists and I just can't find it). - Klaus 2018-03-19 1:05 GMT+01:00 Scott Kostyshak : > On Sun, Mar 18, 2018 at 08:20:55PM +, Klaus-Dieter Bauer wrote: > > I attached a simple example file. Sorry for the late replay, seems I > didn't > > get the previous message. > > Thanks for the example file! > > > shows no changes between 3rd and 4th pass. > > I can reproduce that LyX does 4 compilations. > > Hopefully someone here knows whether there's something we should > improve. > > Best, > > Scott >
Re: Long preview compilation due to unnecessarily often calling pdflatex?
Am Sonntag, den 18.03.2018, 20:05 -0400 schrieb Scott Kostyshak: > On Sun, Mar 18, 2018 at 08:20:55PM +, Klaus-Dieter Bauer wrote: > > I attached a simple example file. Sorry for the late replay, seems > > I didn't > > get the previous message. > > Thanks for the example file! > > > shows no changes between 3rd and 4th pass. > > I can reproduce that LyX does 4 compilations. > > Hopefully someone here knows whether there's something we should > improve. I don't know what to improve. If a package requests a rerun, all we can do is do it, even if it might not result in a visible change. If the rerun is indeed unnecessary, then the package needs to be fixed, not LyX. Jürgen > > Best, > > Scott signature.asc Description: This is a digitally signed message part
Re: Long preview compilation due to unnecessarily often calling pdflatex?
On Sun, Mar 18, 2018 at 08:20:55PM +, Klaus-Dieter Bauer wrote: > I attached a simple example file. Sorry for the late replay, seems I didn't > get the previous message. Thanks for the example file! > shows no changes between 3rd and 4th pass. I can reproduce that LyX does 4 compilations. Hopefully someone here knows whether there's something we should improve. Best, Scott signature.asc Description: PGP signature
Re: Long preview compilation due to unnecessarily often calling pdflatex?
I attached a simple example file. Sorry for the late replay, seems I didn't get the previous message. I was able to determine a few performance issues (LyX 2.3.0b prerelease): - LyX executes pdflatex apparently until the log file stops changing (except for the start time header?). While technically a reasonable convergence criterion, this alone ads an additional pdflatex pass. - With bibtex "x.lyx" finishes after 3 pdflatex passes; biblatex requires a 4th pass, with the following diff between 2nd and 3rd run: >> diff x.log.2 x.log.3 [...] 660,669d659 < < LaTeX Warning: There were undefined references. < < < LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. < < < Package biblatex Warning: Please rerun LaTeX. < (biblatex)Page breaks have changed. < 675,676c665,666 < 18970 strings out of 493305 < 369810 string characters out of 3138875 --- > 18974 strings out of 493305 > 369854 string characters out of 3138875 [...] - Note that I didn't observe anything actually changing in the pdf between 2nd and 3rd run. - Using the "todonotes" module makes each pdflatex pass significantly slower. I couldn't reproduce cases with 5 or more passes in a minimal example. But for my thesis file I am getting 6 pdflatex passes, even though the log file shows no changes between 3rd and 4th pass. All of this wouldn't be much of a problem, if I knew a method to force a single pdflatex pass in order to see results as quickly as possible; This would be helpful during some steps such as fine-adjustments to the layout, fine-adjustments to overlay-specifications in beamer presentations, or when trying to debug compilation issues. - Klaus 2018-03-18 4:57 GMT+01:00 Scott Kostyshak : > On Wed, Feb 28, 2018 at 12:04:41PM -0500, Scott Kostyshak wrote: > > On Wed, Feb 28, 2018 at 01:59:54PM +, Klaus-Dieter Bauer wrote: > > > > > This raises the question of how LyX actually determines the number of > times > > > it has to run the converter; 5 times seems excessive, especially after > the > > > first run nothing changes anymore (latexmk). > > > > I believe we determine the number of times by examining the log file. > > Can you provide us with a minimal example so that we can reproduce the > > excessive compilation and hopefully fix it? It will probably take some > > time for you to make a minimal example, but if we can't reproduce it, it > > is hard for us to fix it. > > Klaus, can you send us a minimal example? > > Thanks, > > Scott > x.lyx Description: application/lyx
Re: Long preview compilation due to unnecessarily often calling pdflatex?
On Wed, Feb 28, 2018 at 12:04:41PM -0500, Scott Kostyshak wrote: > On Wed, Feb 28, 2018 at 01:59:54PM +, Klaus-Dieter Bauer wrote: > > > This raises the question of how LyX actually determines the number of times > > it has to run the converter; 5 times seems excessive, especially after the > > first run nothing changes anymore (latexmk). > > I believe we determine the number of times by examining the log file. > Can you provide us with a minimal example so that we can reproduce the > excessive compilation and hopefully fix it? It will probably take some > time for you to make a minimal example, but if we can't reproduce it, it > is hard for us to fix it. Klaus, can you send us a minimal example? Thanks, Scott signature.asc Description: PGP signature
Re: Long preview compilation due to unnecessarily often calling pdflatex?
On Wed, Feb 28, 2018 at 01:59:54PM +, Klaus-Dieter Bauer wrote: > This raises the question of how LyX actually determines the number of times > it has to run the converter; 5 times seems excessive, especially after the > first run nothing changes anymore (latexmk). I believe we determine the number of times by examining the log file. Can you provide us with a minimal example so that we can reproduce the excessive compilation and hopefully fix it? It will probably take some time for you to make a minimal example, but if we can't reproduce it, it is hard for us to fix it. Thanks, Scott signature.asc Description: PGP signature
Re: Long preview compilation due to unnecessarily often calling pdflatex?
On Wed, 28 Feb 2018 14:59:54 +0100 Klaus-Dieter Bauer wrote: > Hello! > > I'm recently having problems with LyX compiling exceptionally slowly > (compared to plain latex editors). Checking the log, I noticed that > LyX calls pdflatex a full 5 times for my thesis First question is whether this long compile significantly slows your workflow. If not, just keep things as they are. If the compile significantly impedes your workflow, I'd suggest making yourself a compile shellscript having lyx --export and other commands. You can pretty much take LyX config out of the picture by exporting to LaTeX, and then running [pdfla|la|lua]tex once for the document, and once more for table references. It's a lot easier to optimize a shellscript than trial-and-error LyX's conversion technique, which in my opinion is more a convenience than a tool for quality. SteveT
Long preview compilation due to unnecessarily often calling pdflatex?
Hello! I'm recently having problems with LyX compiling exceptionally slowly (compared to plain latex editors). Checking the log, I noticed that LyX calls pdflatex a full 5 times for my thesis (but only once for a new document, and 2 or 3 times for a test document derived from the thesis file). In an attempt to improve compilation time, in "Tools > Preferences > File Handling > Converters > LaTeX (pdflatex) to PDF (pdflatex)" I changed the command to use latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode -synctex=1" $$i which works; latexmk efficiently compiles the document in the first run, and reports only "nothing to do" in the next 4 runs called by LyX. This raises the question of how LyX actually determines the number of times it has to run the converter; 5 times seems excessive, especially after the first run nothing changes anymore (latexmk). - Klaus