Re: Let it run
I use rsvg-convert which on the the Mac is easily installed as brew install librsvg and then a Tools -> Reconfigure should see it. I would think loading something like inkscape is slower than little tool like this. I have a 550 page document with a few images, listings and child documents which lualatex compiles in 101.49seconds (according to time). I also work within LyX most of the time and while I have set it up that I can compile each child document individually (using an included TeX file for common stuff), I find a Makefile makes much more sense. External material is referenced in the Makefile as dependency and while this requires some discipline to set up (add), it has the advantage that changes in external material is not overlooked. el On 2020-05-01 21:18 , Steve Litt wrote: [...] > Now we're getting somewhere. LyX can't use .svg (Inkscape) directly, so > it must convert them on compile. I'd define the graphics as something > LyX *can* deal with directly, like .pdf and others, and just do .svg > conversions when an inkscape file changes. [...] -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
Le 01/05/2020 à 17:55, Daniel a écrit : I've attached the content of the log file. Maybe someone is curious and can see from it what might be the problem... Just if you are curious really. I am almost done with the text, so probably I won't have to compile it all that often anymore in the foreseeable future. I can see that cleveref outputs a message for each line of your source code. This may mean that it activates itself quite a lot to preprocess something, which could be a factor of slowdown. JMarc -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On Sat, 2 May 2020 07:16:25 +0200 Daniel wrote: > On 2020-05-01 21:18, Steve Litt wrote: > > On Fri, 1 May 2020 12:12:39 +0200 > > If doing all these things doesn't bring it down to under a minute, > > try to eyeball where in the compile it slows down, and investigate > > that. > > How can I "eyeball" it? Watch the messages as they scroll by, see what takes a long time, and what repeats hundreds of times. The log you sent earlier probably won't help, because few folks have the time to scroll through hundreds of lines of logs. What WOULD help is to make a Minimum Working Example (MWE) of the bug. After thoroughly backing up the document, rename it and keep removing halves until all of a sudden it compiles a lot faster. Go back one step, and keep eliminating other things until you come up with a small document that takes 1 to 10 minutes to print. It's possible (though I doubt it) that your whole compile process really is that slow, in which case when you remove half, compilation takes half the time. Also, try the compile with an earlier and if possible later version of LyX. Occasional versions of LyX have performance problems, which are fixed very quickly and put out as a newer version. SteveT Steve Litt May 2020 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On 2020-05-01 21:18, Steve Litt wrote: On Fri, 1 May 2020 12:12:39 +0200 Daniel wrote: On 2020-05-01 09:10, Steve Litt wrote: On Thu, 30 Apr 2020 22:29:04 +0200 Daniel wrote: Hi I have a large document that takes more than 10 minutes to compile. In between LyX seems to stop the process to ask me whether I want to "Let it run" or "Stop it". Is there a way to turn this dialog off? Otherwise, I always have to attend to LyX while waiting for the typesetting to finish. When you say "large" document, what do you mean? How large is large? Are you doing graphical conversions on huge graphical files? Is this thing the size of the Encyclopedia Britannica? I have a LyX source document for a 309 page book that compiles to PDF in ten seconds. The source file is 1.23MB. Here are my computer's stats: 2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB RAM, lots and lots and lots of disk space, with /usr being an SSD, about 5 years old now. Void Linux. Not an ancient cripple, but by no means state of the art. I think your first question isn't "how can I turn off the dialog", but "why does this compile take so long, and what can I do about it?" SteveT Steve Litt March 2020 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb It's 250 pages. A lot of inkscape graphics, tables, a huge amount of cross references, biblatex/biber references. 2.2 GHz Quad-Core Intel Core i7, 16 GB ram, 15 GB disk space. I thought about bisecting the document but didn't have the time yet because compiling the bisections takes so long. I compile it rather rarely these days and work mainly just in LyX. Daniel Now we're getting somewhere. LyX can't use .svg (Inkscape) directly, so it must convert them on compile. I'd define the graphics as something LyX *can* deal with directly, like .pdf and others, and just do .svg conversions when an inkscape file changes. It's very simple graphics and it doesn't look like Inkscape takes a lot of time for the conversion. So, I'd be a bit surprised if that was the main culprit. The fact that it's 2.2GHz in this day and age tells me it's probably a laptop. Are you by any chance running Windows? If so, you need to speed up your software by removing all that krap your hardware vendor "helpfully" placed on the computer at time of sale. You probably need to trim down and optimize the registry. Defrag frequently, optimize your virtual memory, and use the Windows equivalent of fstrim if you have a SSD drive. It's a MacBook Pro not a Windows device. If doing all these things doesn't bring it down to under a minute, try to eyeball where in the compile it slows down, and investigate that. How can I "eyeball" it? If you do all this and it still takes several minutes, you might do better to split the book into chapters, and have the Windows equivalent of the make utility compile only what has had its dependencies change. If you have a friend running Linux on a fairly new and robust DESKtop computer, try compiling it there. If it's 10 seconds on your friend's comptuter, and ten minutes on yours, then a few hardware or software tweaks can probably fix your problem. SteveT Steve Litt March 2020 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On Fri, 1 May 2020 12:12:39 +0200 Daniel wrote: > On 2020-05-01 09:10, Steve Litt wrote: > > On Thu, 30 Apr 2020 22:29:04 +0200 > > Daniel wrote: > > > >> Hi > >> > >> I have a large document that takes more than 10 minutes to compile. > >> In between LyX seems to stop the process to ask me whether I want > >> to "Let it run" or "Stop it". Is there a way to turn this dialog > >> off? Otherwise, I always have to attend to LyX while waiting for > >> the typesetting to finish. > > > > When you say "large" document, what do you mean? How large is large? > > Are you doing graphical conversions on huge graphical files? Is this > > thing the size of the Encyclopedia Britannica? > > > > I have a LyX source document for a 309 page book that compiles to > > PDF in ten seconds. The source file is 1.23MB. Here are my > > computer's stats: > > > > 2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB > > RAM, lots and lots and lots of disk space, with /usr being an SSD, > > about 5 years old now. Void Linux. Not an ancient cripple, but by > > no means state of the art. > > > > I think your first question isn't "how can I turn off the dialog", > > but "why does this compile take so long, and what can I do about > > it?" > > SteveT > > > > Steve Litt > > March 2020 featured book: Troubleshooting: Why Bother? > > http://www.troubleshooters.com/twb > > > > It's 250 pages. A lot of inkscape graphics, tables, a huge amount of > cross references, biblatex/biber references. 2.2 GHz Quad-Core Intel > Core i7, 16 GB ram, 15 GB disk space. I thought about bisecting the > document but didn't have the time yet because compiling the > bisections takes so long. I compile it rather rarely these days and > work mainly just in LyX. > > Daniel > Now we're getting somewhere. LyX can't use .svg (Inkscape) directly, so it must convert them on compile. I'd define the graphics as something LyX *can* deal with directly, like .pdf and others, and just do .svg conversions when an inkscape file changes. The fact that it's 2.2GHz in this day and age tells me it's probably a laptop. Are you by any chance running Windows? If so, you need to speed up your software by removing all that krap your hardware vendor "helpfully" placed on the computer at time of sale. You probably need to trim down and optimize the registry. Defrag frequently, optimize your virtual memory, and use the Windows equivalent of fstrim if you have a SSD drive. If doing all these things doesn't bring it down to under a minute, try to eyeball where in the compile it slows down, and investigate that. If you do all this and it still takes several minutes, you might do better to split the book into chapters, and have the Windows equivalent of the make utility compile only what has had its dependencies change. If you have a friend running Linux on a fairly new and robust DESKtop computer, try compiling it there. If it's 10 seconds on your friend's comptuter, and ten minutes on yours, then a few hardware or software tweaks can probably fix your problem. SteveT Steve Litt March 2020 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On 2020-05-01 09:10, Steve Litt wrote: On Thu, 30 Apr 2020 22:29:04 +0200 Daniel wrote: Hi I have a large document that takes more than 10 minutes to compile. In between LyX seems to stop the process to ask me whether I want to "Let it run" or "Stop it". Is there a way to turn this dialog off? Otherwise, I always have to attend to LyX while waiting for the typesetting to finish. When you say "large" document, what do you mean? How large is large? Are you doing graphical conversions on huge graphical files? Is this thing the size of the Encyclopedia Britannica? I have a LyX source document for a 309 page book that compiles to PDF in ten seconds. The source file is 1.23MB. Here are my computer's stats: 2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB RAM, lots and lots and lots of disk space, with /usr being an SSD, about 5 years old now. Void Linux. Not an ancient cripple, but by no means state of the art. I think your first question isn't "how can I turn off the dialog", but "why does this compile take so long, and what can I do about it?" SteveT Steve Litt March 2020 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb It's 250 pages. A lot of inkscape graphics, tables, a huge amount of cross references, biblatex/biber references. 2.2 GHz Quad-Core Intel Core i7, 16 GB ram, 15 GB disk space. I thought about bisecting the document but didn't have the time yet because compiling the bisections takes so long. I compile it rather rarely these days and work mainly just in LyX. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On Thu, 30 Apr 2020 22:29:04 +0200 Daniel wrote: > Hi > > I have a large document that takes more than 10 minutes to compile. > In between LyX seems to stop the process to ask me whether I want to > "Let it run" or "Stop it". Is there a way to turn this dialog off? > Otherwise, I always have to attend to LyX while waiting for the > typesetting to finish. When you say "large" document, what do you mean? How large is large? Are you doing graphical conversions on huge graphical files? Is this thing the size of the Encyclopedia Britannica? I have a LyX source document for a 309 page book that compiles to PDF in ten seconds. The source file is 1.23MB. Here are my computer's stats: 2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB RAM, lots and lots and lots of disk space, with /usr being an SSD, about 5 years old now. Void Linux. Not an ancient cripple, but by no means state of the art. I think your first question isn't "how can I turn off the dialog", but "why does this compile take so long, and what can I do about it?" SteveT Steve Litt March 2020 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On 4/30/20 5:05 PM, Scott Kostyshak wrote: > On Thu, Apr 30, 2020 at 10:29:04PM +0200, Daniel wrote: >> Hi >> >> I have a large document that takes more than 10 minutes to compile. In >> between LyX seems to stop the process to ask me whether I want to "Let it >> run" or "Stop it". Is there a way to turn this dialog off? Otherwise, I >> always have to attend to LyX while waiting for the typesetting to finish. > I agree it is annoying for certain cases. For me it is annoying when I > use knitr. For you, is it purely LaTeX compilation that is taking the > time or something else? > > I believe the process is not stopped. Try an experiment: when you get > the dialog, wait 10 more minutes until you're sure your script would > have finished, and then click "let it run"---it should immediately show > the PDF. I am pretty sure that is true, too. The process only stops if you tell it to do so. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Let it run
On Thu, Apr 30, 2020 at 10:29:04PM +0200, Daniel wrote: > Hi > > I have a large document that takes more than 10 minutes to compile. In > between LyX seems to stop the process to ask me whether I want to "Let it > run" or "Stop it". Is there a way to turn this dialog off? Otherwise, I > always have to attend to LyX while waiting for the typesetting to finish. I agree it is annoying for certain cases. For me it is annoying when I use knitr. For you, is it purely LaTeX compilation that is taking the time or something else? I believe the process is not stopped. Try an experiment: when you get the dialog, wait 10 more minutes until you're sure your script would have finished, and then click "let it run"---it should immediately show the PDF. Scott signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Let it run
Hi I have a large document that takes more than 10 minutes to compile. In between LyX seems to stop the process to ask me whether I want to "Let it run" or "Stop it". Is there a way to turn this dialog off? Otherwise, I always have to attend to LyX while waiting for the typesetting to finish. Best, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users