I want to generalize the template that I have, and one of the elements sets several variables before creating a PDF file for sending to someone.
In my Makefile, I installed:
${OBJS}/main.pdf: main.tex ${DEPS}
pdflatex -output-directory=${OBJS} "\def\recipiant{${RECIPIANT}} \def\revision{${REVISION}} \include{main}"
Although I would like to not worry about these variables for reviews .. I decided that I can do something like \ ifdef, but it does not work ... any ideas how I can generalize this template conditionally?
\ifdef\recipiant
\fancyfoot[CE,CO]{prepared for \recipiant \ (revision \revision) }
\else
\fancyfoot[CE,CO]{REVIEW}
\fi
source
share