28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C.3.2 L AT E X package errors<br />

C.3. List of L AT E X error messages 421<br />

The special programming comm<strong>and</strong>s for h<strong>and</strong>ling class <strong>and</strong> package files<br />

(Appendix D) have their own set of error messages. If one of these features<br />

issues a serious error, there is often little the user can do about it other<br />

than report the problem <strong>to</strong> the author of the file. On the other h<strong>and</strong>,<br />

some errors are due <strong>to</strong> the improper use of the file or of the options that<br />

it provides.<br />

Often classes <strong>and</strong> packages contain their own error or warning messages<br />

with text <strong>and</strong> meanings that are peculiar <strong>to</strong> them. These are indicated<br />

as such, along with the name of the class or package that issued<br />

them. For example, the package mypack could print the error<br />

Package mypack Error: cannot mix options ‘good’<br />

(mypack) <strong>and</strong> ‘bad’.<br />

A help message should also be available when H is typed. Obviously,<br />

such error (<strong>and</strong> warning) messages cannot be explained here, since they<br />

depend entirely on the package in question.<br />

! <strong>LaTeX</strong> Error: \LoadClass in package file.<br />

A package file has called \LoadClass, which it is not allowed <strong>to</strong> do. A<br />

class file can only be loaded from another class file.<br />

! <strong>LaTeX</strong> Error: Option clash for package ....<br />

The specified package has been requested a second time with a different<br />

set of options. A package file will only be loaded once <strong>and</strong> a second<br />

attempt will be ignored. Thus, if two \usepackage or \RequirePackage<br />

comm<strong>and</strong>s load the same package with different options, there is a conflict.<br />

Try <strong>to</strong> arrange for a consistent set. Typing H for help after this<br />

message will print out the two sets of options.<br />

! <strong>LaTeX</strong> Error: \RequirePackage or \LoadClass in Options Section.<br />

These two comm<strong>and</strong>s may not appear in the definition of a class or<br />

package option made with the \DeclareOption comm<strong>and</strong>. Instead, the<br />

option should set some flag or other indica<strong>to</strong>r that is later tested before<br />

calling the comm<strong>and</strong> in question.<br />

! <strong>LaTeX</strong> Error: This file needs format ‘...’ but this is ‘...’.<br />

The \NeedsTeXFormat comm<strong>and</strong> specifies a different format from the<br />

one being used. The format is the pres<strong>to</strong>red set of instructions that<br />

determine what type of T E X is being run. For L AT E X 2ε, the format name<br />

specified must be <strong>LaTeX</strong>2e. This file cannot be processed at all with the<br />

current format in use.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!