ransford / pdflatex-makefile

Simple Makefile for pdflatex-produced documents
113 stars 37 forks source link

Example seems to be broken – looks for 'revision.tex' also if no VCS is present #11

Closed adoa closed 10 years ago

adoa commented 10 years ago

The example in the sub-folder does not built upon invoking 'make' – given that there is no version control system taking care of the folder.

Just extract the tarball into an empty folder and try to 'make' it. It complains about a 'revision.tex' not being present but the 'draftfooter.sty' tries to include it. However, the makefile itself would create it – if there was a version control system managing the files.

My Tex/Make knowledge is not advanced enough to find the most flexible solution to this kind of problem.

ransford commented 10 years ago

The example subfolder is part of the pdflatex-makefile repository, so if you're working with a git clone of the repo, you have the right machinery in place. Which tarball are you referring to?

adoa commented 10 years ago

Well … you can also just download a tarball of the repository with the 'Download ZIP' button on the right column in the repository overview. Then you do not 'need' to know git to try test this project.

ransford commented 10 years ago

Note that there's an \IfFileExists command that lets you execute stuff (e.g., \include{revision}) conditionally. Maybe drafthead.sty should omit revision information if the example directory doesn't live under version control. I'll try that.

adoa commented 10 years ago

Hmm … this explains another confusing point: the .sty-file you are referring to is called draftfooter.sty in your repo, while the example.tex is calling it 'drafthead'.

ransford commented 10 years ago

Thanks. I corrected the mentions of drafthead while I was in there adding conditional inclusion of revision.tex.

adoa commented 10 years ago

Thank you very much! I guess I will now try to mess around with this make magic – and maybe recommend it to other people. Because it seems to be doing pretty much exactly what I want.