Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_anthology misses packages and new commnands defined before \begin{document} #5

Open
diego898 opened this issue Oct 14, 2014 · 0 comments

Comments

@diego898
Copy link

Hello,

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.
@diego898 diego898 changed the title Create Anthology and new commnands create_anthology misses packages and new commnands defined before \begin{document} Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant