Page Layout ⇒ package availability to input files
-
bartybear44
- Posts: 3
- Joined: Fri Jan 06, 2012 3:07 am
package availability to input files
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
package availability to input files
In general, that's not simply possible. Perhaps explain your specific problem, tell us the error messages and the code you are using.bartybear44 wrote:However that interferes with some of the input files and causes them not to work properly. Is there any way I can restrict the use of a particular package to only one of the input files?
Stefan
-
bartybear44
- Posts: 3
- Joined: Fri Jan 06, 2012 3:07 am
Re: package availability to input files
The original document is a set of solutions to exercises and past exam papers. It works fine and the main body of the file is a series of input files that are all input as sections. I wanted to update it with the most current exam papers from 2011. So I took the preamble off them and the begin and end document statements and resaved them, then input them as new sections using the same syntax as the other sections. When I tried to compile it the new material gave lots of error messages and I realised that the original file did not include the amsmath package so it didn't recognise \bmatrix and other commands in the new exams. So I included the amsmath package in the preamble to the original document and compiled it again - then I got error messages from the original input files - it would no longer recognise some of the commands that were defined in the preamble.
As I write this it occurs to me that perhaps the order in the preamble is important - is that so? The original preamble had all the packages at the beginning then any specifically defined commands for this document etc. so I put the amsmath package at the beginning with all the other packages, perhaps it would be better later. I am sorry I cannot be more specific at the moment as I am not at work and don't have access to the files from home, or to try this idea. Thank you.