I am using the create_anthology script directly since I'm having trouble with make on windows. Sometimes I might define a new command in a specific entry or use a specific package. I do all of this before my \begin{document} command. However, create_anthology only grabs whats between the \begin{document} and \end{document} tags, and does not grab any custom new commands or additional packages? One could define all additional new commands after the \begin{document} command, and that would indeed fix that problem, but what about additional packages? They cant be included after the \begin{document} command.
Update:
In order for things to work correctly, I have to:
edit my posts so that all new commands are defined after the \begind{document} command.
manually copy over any included packages from specific entries into the generated $year-research-diary.texfile - I don't know how to best grab any included packages.
modified create_anthology to include my custom scripts, the correct image directories and perhaps most importantly, modified the line that replaces newcommand with renewcommand to providecommand. That way, whether or not the command was already defined, latex wont complain.
Hello,
I am using the
create_anthology
script directly since I'm having trouble withmake
on windows. Sometimes I might define a new command in a specific entry or use a specific package. I do all of this before my\begin{document}
command. However,create_anthology
only grabs whats between the\begin{document}
and\end{document}
tags, and does not grab any custom new commands or additional packages? One could define all additional new commands after the\begin{document}
command, and that would indeed fix that problem, but what about additional packages? They cant be included after the\begin{document}
command.Update: In order for things to work correctly, I have to:
\begind{document}
command.$year-research-diary.tex
file - I don't know how to best grab any included packages.create_anthology
to include my custom scripts, the correct image directories and perhaps most importantly, modified the line that replacesnewcommand
withrenewcommand
toprovidecommand
. That way, whether or not the command was already defined, latex wont complain.