Repository navigation
The Temporary page! #169
Replies: 12 comments 13 replies
|
If you know that you never compile more than once, you could split the pdf after compilation to remove the last page |
|
This is a kernel feature not an |
|
If you know the absolute number of pages that will be created you can add If the number is wrong you will get a warning and will have to rerun: |
you have to understand that this is not simply an unnecessary burden. LaTeX generates that page for a reason: there are some things that need to be done at the very end of the run and put into the last page when it comes down do pdfmanagement and if the last page has been shipped out without knowing that it is the last page that doesn't happen, so without it (or if you cut this extra page off externally --- depending on the tool you use or why the page was generated) your document may not be any longer correct. So it is an emergency measure and two runs are really required. As Ulrike said, if you know how many pages there should be you can inform LaTeX about it and then the second run can be avoided, but otherwise it is like with cross refs: you need two runs because LaTeX doesn't know the the correct values first time around and thus inserts ?? instead of the correct values. |
|
I did a Google search and it seems like there is a way of selecting the range of PDF pages to be placed in the output by something like |
|
Would it be possible to prescan the file with Lua and guess the numbers of pages (quickly) for the first run? A bit of a can of worms, obviously, but for simple documents it would be a minor quality of life improvement.
(Very low on the priority list I’d imagine)
|
|
My situation is a bit different as I have a set of many MD files (in the number of hundreds, as I am a teacher and these are my lecture slides) I am almost always working on several files at the same time until the very last moment. It is difficult for me to track which file has been run for how many times, as I uses a Makefile to compile them. |
|
Maybe I'll just set in the makefile to compile the TEX file twice always, which isn't too difficult to do. |
|
Really, need to compile it three times? As for latexmk, I guess the only reason I didn't use it was because it does not look into the TEX file to check for a !TEX program line to pick the correct LATEX engine, and of course I was using beamer and it wasn't a problem then. But now I guess it is time to start using it. |
|
For whatever reason 'arara' is not a recognizable command on my computer. But it is okay, I will use latexmk as it is more popular and readily to get more help online if I need to. |
|
Following is what I saw when I did a tlmgr update --all on MACOSX For whatever reason the arara is skipped and maybe that's way it is not available. |
|
Interesting! Got it. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Hey, I don't know if I am the first one who asks this question, but I wanted to see if there is a way to turn off the generation of the "Temporary page!" (LATEX was unable to guess the total number of pages correctly...). I guess I can understand its usefulness, but in my case the TEX file is auto-generated, and only serve to be compiled once to get the desired PDF file; thus having to always compile it twice to get rid of the temporary page becomes quite a burden to me. Thanks.
All reactions