kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
834 stars 399 forks source link

Issue with definition of packages #93

Closed AJ16 closed 8 years ago

AJ16 commented 8 years ago

I have added the following package to the file preamble.tex

\usepackage[cmex10]{amsmath}

However, I get this error error_1

I am not sure what the problem is or how it should be resolved. error_2

Appreciate your help. Thanks a lot.

johannesbottcher commented 8 years ago

amsmath is already loaded. If you really need to set that option (and I think you don't), you can add that to the list of global options.

AJ16 commented 8 years ago

Hi Johannesbottcher. Thanks a lot. Can I also ask if it possible if I load a file? So I have written a file which has many functions in it and I want to input it. I usually use \input command. However, it does not work here the same way.

Do you have any suggestion? Thanks a lot.

johannesbottcher commented 8 years ago

Since i cannot even imagine what you are talking about, if this is related to the error message at the top, and or what you mean by functions, i suggest to ask a question at tex.stackexchange. But the experts there will also need a bit more information.
Please add a link to the template you are using and the issue report you opened here. Please also link the question you asked to this bug report.

kks32 commented 8 years ago

If commands.tex is the file containing user defined commands, you can use \input{commands} in thesis.tex after mainmatter https://github.com/kks32/phd-thesis-template/blob/master/thesis.tex#L136. I have tested it to work. Like @johannesbottcher says remove the redefinition of amsmath package. It's not a problem with the input command, but rather issue with redefinition of the packages.