Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Last page is zeroed if no bibliography is used #15

Open
iron76 opened this issue Nov 29, 2015 · 7 comments
Open

[BUG] Last page is zeroed if no bibliography is used #15

iron76 opened this issue Nov 29, 2015 · 7 comments

Comments

@iron76
Copy link

iron76 commented Nov 29, 2015

This is related to #14. I tried the latest LaTeX-proposal code (cloned from github) and the problem persists. The last page is labelled 0. I found out a workaround consisting in writing something in between \end{proposal} and \end{document}. This was actually why initially I was assuming the problem related to the finalised version (see my previous issue pdebuyl/FET_Proposal#1).

@kohlhase
Copy link
Member

I still cannot reproduce your problem, and I see that https://github.com/pdebuyl/FET_Proposal/tree/master/LaTeX-proposal is still not updated. But I also do not see what you are applying it to. Can you either

  • make a minimal example that shows this behavior or
  • make sure that you are running the right proposal.cls.

@iron76
Copy link
Author

iron76 commented Nov 29, 2015

Sorry. I forgot to say that the bug is replicable with one of the examples in your repository (please notice that this bug has nothing to do with the repository by @pdebuyl, otherwise I would have opened the issue there). Here are the steps to generate a .pdf with zeroed last page:

git clone https://github.com/KWARC/LaTeX-proposal.git 
cd LaTeX-proposal/eu/examples/fetopenstrep/
pdflatex propB.tex 
... (repeat as many times as you want)
pdflatex propB.tex 

The produced propB.pdf has tags page n of 0 in all pages.

@pdebuyl
Copy link

pdebuyl commented Nov 29, 2015

Using pdflatex instead of the Makefile results in your system-wide copy of the style files to be used instead of those of the repository. Check the propB.log file to check which files are used.

It is possible to set the TEXINPUTS environment variables, see https://github.com/pdebuyl/FET_Proposal/blob/master/debian-env.sh

@iron76
Copy link
Author

iron76 commented Nov 29, 2015

I checked and I am using the correct style files. Further digging I found out that the issue is instead related to the fact that I am not compiling the bibliography. As soon as I do it the last page is correctly set. The issue is crucial in my proposal because I don't have a bibliography. Anyway I have to say this issue might be considered minor since at least I have a workaround. Thanks for the help.

@iron76 iron76 changed the title [BUG] Last page is zeroed unless a workaround is applied [BUG] Last page is zeroed if no bibliography is used Nov 30, 2015
@kohlhase
Copy link
Member

Thanks for digging, I can reproduce now, and I am quite sure that I can fix this.
The main problem is that I never envisioned that someone would not want references. I will probably have to make this configurable.

@pdebuyl
Copy link

pdebuyl commented Nov 30, 2015

Indeed, a single bibliography element solves the problem. This is thus a rather uncommon problem.

Also, in the case of an empty bibliography, biblatex throws a "latex warning". Is that the cause of the missing {prop}{pages}{last} pdata reference?

@kohlhase
Copy link
Member

kohlhase commented Dec 4, 2015

It seems that this is a timing issue: LaTeXML closes the pdata file before it has the chance to write the last page. We probably have to build in something that flushes the buffers (and opening another file does that I think). Or we have to make the \protected@write I am using \immediate (I thought it was).
I have to investigate further, but do not currently have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants