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

Can the Makefile load the amsmath package? #34

Open
alexdiem opened this issue Jul 31, 2017 · 5 comments
Open

Can the Makefile load the amsmath package? #34

alexdiem opened this issue Jul 31, 2017 · 5 comments

Comments

@alexdiem
Copy link

The amsmath LaTeX package is required when using math environments such as cases. Can it be loaded in the Makefile?

@rougier
Copy link
Member

rougier commented Aug 1, 2017

Not sure I understand how to do that (in the Makefile I mean). Can you make a PR ?

@alexdiem
Copy link
Author

alexdiem commented Aug 1, 2017

I'm afraid I don't know either, hence why I decided to open an issue. I tried to find a way yesterday since I need to write "proper" equations in my manuscript, but it doesn't seem possible with the markdown template. The only way around it I can think of at the moment would be to remove the line that deletes the tex file and editing that directly.

@ChristophMetzner
Copy link

Can't you modify the .tex-template to load the amsmath package?

@ThomasA
Copy link

ThomasA commented Aug 1, 2017

It sounds like a Really Bad Idea™ to do it in a makefile (via a command line option to pdflatex I assume) as this makes the dependency invisible at the document level. Someone else trying to compile such a LaTeX file in another environment will get errors (because of the missing amsmath dependency) and may have a hard time tracking down what is missing. IMO always introduce packages like that in the preamble (in the LaTeX file itself).

@rougier
Copy link
Member

rougier commented Aug 1, 2017

Yes, modifying the template seems the easiest option.

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

4 participants