Re: [tex4ht] Can one use tex4ht log file to check if more runs are needed?
Hi Nasser, > > Hello Michal. I am little confused. You say tex4ht does not generate > such messages, but then you say log checking is safer. > > Can I check for same messages when compiling with tex4ht as > I do with lulatex? This is my question. > The running script that I gave you checks for the AUX file, XREF file and TOC, and it continues the compilation until they don't change - so when you don't change sections, cross-references and other stuff that is written to these files, it should do only one compilation. If these files change between compilations, it will run as many compilations as specified in max_compilations variable. Check how large it is, maybe we were experimenting with it and it is too large. Value of 3 should be enough. > I do not want to use rerunfilecheck package as I do not understand it. > > I just want a simple method, which is to to check myself for messages > in the log file, that is why I asked. > > I assumed tex4ht generates its own messages different > from lualatex to indicate more runs are needed or not. > > Ofcourse, I can try and find out, but the problem is that it is hard to > know by looking at the HTML pages sometimes if the build was > complete or not. > The problem is mostly with hyperlinks and large tables. But all of this depends on the auxilary files the script checks, so you won't get any better results with the log parsing. > I am asking all this, because one build with tex4ht > takes 24 and more hours on some of my large files and was > wondering if it is calling tex4ht more times than needed. Yes, it is too much. You can try to print the number of compilations used in the checksum script by adding this line before return status in Make:add("myhtlatex", ...) function: print("Number of compilations: " .. compilation_count) I am not sure which version of this file you use now, I know there are multiple versions and I am afraid that I cannot find the most recent one, so I cannot post the whole function here. Anyway, if the number is too large, it can be caused by some bug in the script. Best regards, Michal
Re: [tex4ht] Can one use tex4ht log file to check if more runs are needed?
On 12/4/2023 5:29 AM, Michal Hoftich wrote: Hi Nasser, My question here is this: Could I use similar method for tex4ht and just check the tex4ht log file for messages? This is easier for me to do, since I can use the same "grep -E" command. TeX4ht on its own doesn't produce such messages, AFAIK. The method with log checking should be safer. Hello Michal. I am little confused. You say tex4ht does not generate such messages, but then you say log checking is safer. Can I check for same messages when compiling with tex4ht as I do with lulatex? This is my question. Also the rerunfilecheck package is also based on checksums of temporary files, so it should work similarly. I do not want to use rerunfilecheck package as I do not understand it. I just want a simple method, which is to to check myself for messages in the log file, that is why I asked. I assumed tex4ht generates its own messages different from lualatex to indicate more runs are needed or not. Ofcourse, I can try and find out, but the problem is that it is hard to know by looking at the HTML pages sometimes if the build was complete or not. I am asking all this, because one build with tex4ht takes 24 and more hours on some of my large files and was wondering if it is calling tex4ht more times than needed. Best, Michal Thanks --Nasser
Re: [tex4ht] Can one use tex4ht log file to check if more runs are needed?
Hi Nasser, > My question here is this: Could I use similar method > for tex4ht and just check the tex4ht log file for messages? > > This is easier for me to do, since I can use the same > "grep -E" command. TeX4ht on its own doesn't produce such messages, AFAIK. The method with log checking should be safer. Also the rerunfilecheck package is also based on checksums of temporary files, so it should work similarly. Best, Michal
[tex4ht] Can one use tex4ht log file to check if more runs are needed?
Currently, when I compile using lualatex, the script checks at the end of each compilation if some specific messages are in the log file, which tells it to call lualatex one more time. Over the years I collected these messages Rerun. Rerun, Rerun to get outlines right Rerun to get it removed Temporary extra page added at the end may have changed Rerun to get cross-references right shipout/lastpage|Table widths have changed (I can't just check for "Rerun" because that can give false positive, since package rerunfilecheck generate log message with the word "Rerun" in it. I do not even load this package, but is loaded by other packages). For tex4ht, I use Michal's lua script that he kindly wrote for me long time ago which does some magic and checksums to decide if more runs are needed with maximum number of 6 runs. But always not sure if it is running more times than needed or not. My question here is this: Could I use similar method for tex4ht and just check the tex4ht log file for messages? This is easier for me to do, since I can use the same "grep -E" command. If so, will searching for same messages above work for tex4ht? Or does it generate other messages not listed above which indicates more calls to make4ht is needed? I know by default make4ht will run 3-times, but I can change it to run one time only each time it is called, and this way I can call it from the script as many times as needed based on if I find it needs to run again. Thanks --Nasser