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.

H.1. Brief description of the L AT E X comm<strong>and</strong>s 535<br />

\DeclareMathVersion{ver} [p] . . . . . . . . . . . . (A.3.3) – 374<br />

Declares ver <strong>to</strong> be a new math version for math alphabets <strong>and</strong><br />

symbol fonts. Initially, the version will use those fonts defined<br />

by \Declare... comm<strong>and</strong>s, which may be redefined for this math<br />

version with appropriate \Set... comm<strong>and</strong>s.<br />

\DeclareOldFontComm<strong>and</strong>{\cmd}{text specs}{math specs} [p]<br />

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . (A.3.2) – 373<br />

Defines \cmd <strong>to</strong> be a font declaration that invokes text specs in text<br />

mode, <strong>and</strong> math specs in math mode. The new comm<strong>and</strong> behaves in<br />

math mode as a 2.09 font declaration, although math specs must be<br />

a math font comm<strong>and</strong> without its argument. It is meant <strong>to</strong> define<br />

comm<strong>and</strong>s <strong>to</strong> be compatible with L AT E X 2.09 <strong>and</strong> should generally be<br />

avoided.<br />

\DeclareOption{option}{code} [p] . . . . . . . . . . . (D.2.3) – 442<br />

In a class or package file, this comm<strong>and</strong> defines the set of comm<strong>and</strong>s<br />

(code) that is <strong>to</strong> be associated with the given option. These comm<strong>and</strong>s<br />

are executed when \ExecuteOptions or \ProcessOptions is called.<br />

After the latter, all definitions are erased, <strong>to</strong> save memory. The code<br />

is internally s<strong>to</strong>red in a comm<strong>and</strong> named \ds@option.<br />

\DeclareOption*{code} [p] . . . . . . . . . . . . . . . (D.2.3) – 442<br />

In a class or package file, this comm<strong>and</strong> defines the default set of<br />

comm<strong>and</strong>s that is associated with every undefined option. Special<br />

comm<strong>and</strong>s that may be used within code are \CurrentOption (the<br />

name of the option) <strong>and</strong> \OptionNotUsed. Example:<br />

\DeclareOption*{\InputIfFileExists<br />

{\CurrentOption.sty}{}{\OptionNotUsed}}<br />

\DeclareRobustComm<strong>and</strong>{\cmd}[narg][opt]{def } . . . (D.2.5) – 445<br />

Defines or redefines the comm<strong>and</strong> \cmd in the same way as<br />

\newcomm<strong>and</strong> except that the result is robust: it may be used in<br />

the argument of another comm<strong>and</strong> without a \protect comm<strong>and</strong><br />

before it.<br />

\DeclareRobustComm<strong>and</strong>*{\cmd}[narg][opt]{def } . . (D.2.6) – 445<br />

The same as \DeclareRobustComm<strong>and</strong> except that the arguments <strong>to</strong><br />

\cmd must be ‘short’, not containing any new paragraphs.<br />

\DeclareSymbolFont{sym fnt}{code}{fam}{ser}{shp} [p]<br />

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . (A.3.4) – 374<br />

Declares the math font with the given attributes <strong>to</strong> be a symbol font<br />

that may be addressed by other comm<strong>and</strong>s with the name sym fnt.<br />

The symbol font applies <strong>to</strong> all math versions unless redefined with a<br />

\SetSymbolFont comm<strong>and</strong>.

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

Saved successfully!

Ooh no, something went wrong!