ReScience-submission icon indicating copy to clipboard operation
ReScience-submission copied to clipboard

Can the Makefile load the amsmath package?

Open alexdiem opened this issue 8 years ago • 5 comments
trafficstars

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

alexdiem avatar Jul 31 '17 13:07 alexdiem

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

rougier avatar Aug 01 '17 07:08 rougier

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.

alexdiem avatar Aug 01 '17 07:08 alexdiem

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

ChristophMetzner avatar Aug 01 '17 08:08 ChristophMetzner

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).

ThomasA avatar Aug 01 '17 08:08 ThomasA

Yes, modifying the template seems the easiest option.

rougier avatar Aug 01 '17 15:08 rougier