tum-thesis-latex icon indicating copy to clipboard operation
tum-thesis-latex copied to clipboard

What is the difference between build/main.pdf and build/fachschaft_print.pdf?

Open jalil-salame opened this issue 3 months ago • 6 comments

From what I can tell, it tries to fix some issue with the twoside configuration of the thesis, but it is not documented in the README or the Makefile.

https://github.com/TUM-Dev/tum-thesis-latex/blob/c98745b81da2612e823644989de0bbe4f16f6509/Makefile#L12-L28

My guess is that line 23 removes pages 1 and 3 because they are blank?

If it is not using the twoside mode, then it just copies main.pdf to fachschaft_print.pdf.

jalil-salame avatar Mar 29 '24 16:03 jalil-salame

The paragraph mentioned on https://github.com/TUM-Dev/tum-thesis-latex/pull/15 does not exist on the current website any more.

I have asked a friend at the student council if this is still necessary ^^

CommanderStorm avatar Mar 29 '24 18:03 CommanderStorm

It is still nice to remove the extra pages, but it is still a hack and should probably be removed if it is no longer necessary.

jalil-salame avatar Mar 30 '24 16:03 jalil-salame

Mpic has asked us to leave this as an option as a backup. The background is that with their current workflow, this page must not exist.

While they do have an option in their custom build printing software to remove this, they have not found a way of automating this. If you choose duplex vs simplex depends on the amount of pages in your thesis as for one option half of the pages are empty. => inserting said empty page fucks with the layout somehow.

MPIC has looked into automating this process, but for the time being have not found a good solution that works with all the weirdnesses of PDF (did you know that PDF are apparently turning complete because of PostScript?)

CommanderStorm avatar Mar 30 '24 18:03 CommanderStorm

Idk if we should document this if this is only a backup process..

CommanderStorm avatar Mar 30 '24 18:03 CommanderStorm

MPIC has looked into automating this process, but for the time being have not found a good solution that works with all the weirdnesses of PDF (did you know that PDF are apparently turning complete because of PostScript?)

I knew PDFs were f-ed up, but I did not expect this...

My assumption is that most tools will not use the PDF's Turing complete features, but with how cursed LaTeX itself is I would not be surprised.

Idk if we should document this if this is only a backup process..

I would err on the side of more documentation, a simple comment pointing to this issue should be enough:

# Fix PDF for printing when using the twoside mode
# (see https://github.com/TUM-Dev/tum-thesis-latex/issues/21)
.PHONY: _fachschaft-print 
_fachschaft-print: 
    ...

I can probably make a PR with that exact comment.

jalil-salame avatar Mar 30 '24 18:03 jalil-salame

I can probably make a PR with that exact comment.

Yes, but said comment makes this appear to be a generally superior option (its not, its just different).

MPIC does not allow there to be the empty second page if using the twoside mode
see https://github.com/TUM-Dev/tum-thesis-latex/issues/21 for further context

CommanderStorm avatar Mar 31 '24 02:03 CommanderStorm