LaTeX forum ⇒ GeneralPDF has empty pages when rendered by system

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 5
Joined: Thu May 09, 2019 5:56 pm

PDF has empty pages when rendered by system

Postby DavidDaily » Fri Jan 10, 2020 5:05 pm

Okay, this one has me completely stumped.
Here's my current setup for rendering:
Gitea in a docker container (Project:
Project files stored locally in ~/anders
Output stored at ~/fileshare/Anders (this is here:
Texlive installed at ~/texlive
CentOS 7, no gui, using vim to edit files

I have it set up so that theoretically when I push to the master branch, the PDFs for the project rerender using pdflatex. This is done with
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. #!/bin/bash
  3. cd "$(dirname "$0")"
  5. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=All4 All4.tex
  6. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=All4 All4.tex
  7. rm All4.aux All4.out All4.toc
  8. mv All4.pdf /home/david/fileshare/Anders/
  10. cd "book-1"
  11. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book1 "Main.tex"
  12. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book1 "Main.tex"
  13. rm Book1.aux Book1.out Book1.toc
  14. mv Book1.pdf /home/david/fileshare/Anders/
  15. cd ..
  17. cd "book-2"
  18. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book2 "Main.tex"
  19. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book2 "Main.tex"
  20. rm Book2.aux Book2.out Book2.toc
  21. mv Book2.pdf /home/david/fileshare/Anders/
  22. cd ..
  24. cd "book-3"
  25. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book3 "Main.tex"
  26. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book3 "Main.tex"
  27. rm Book3.aux Book3.out Book3.toc
  28. mv Book3.pdf /home/david/fileshare/Anders/
  29. cd ..
  31. cd "book-4"
  32. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book4 "Main.tex"
  33. /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Book4 "Main.tex"
  34. rm Book4.aux Book4.out Book4.toc
  35. mv Book4.pdf /home/david/fileshare/Anders/

I have a git hook for post-recieve set up to do date > anders. This file is watched by incrond, and whenever it is modified it runs the above as me.

Here's the problem. When I run myself from the command line, it works wonderfully and all PDFs are beautiful and as they should be.
When it is run by incrond (which I checked, its still running as my user) the output is really messed up to a level I haven't seen described.
The first PDF will render properly, but the other ones in the subfolders will have no data where there should be pages, and where it does show pages they are blank. This is for all 4 subfolders, and it is very consistent.

I have made a copy of the resultant Book1.pdf (and its accompanying Book1.log) when it is run automagically here:

Someone is guaranteed to say something about me using \input instead of \include, but I disagree with you. Each include generates an additional garbage file that I would then have to get rid of for no tradeoffs.
2020-01-10 09_03_31.png
Screenshot of the resulting broken PDF
2020-01-10 09_03_31.png (8.68 KiB) Viewed 75 times

Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests