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 533<br />

\DeclareFixedFont{\cmd}{code}{fam}{ser}{shp}{sz} [p]<br />

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

Defines \cmd <strong>to</strong> be a font declaration that selects a font with the<br />

fixed attributes given in the definition.<br />

\DeclareFontEncoding{code}{text set}{math set} [p] . (A.3.6) – 376<br />

Declares code <strong>to</strong> be the name of a new encoding scheme; text set is a<br />

set of comm<strong>and</strong>s that is <strong>to</strong> be executed when switching <strong>to</strong> text mode,<br />

math set a set for math mode.<br />

\DeclareFontEncodingDefaults{text set}{math set} [p] (A.3.6) – 376<br />

Declares the sets of comm<strong>and</strong>s <strong>to</strong> be executed by all encodings when<br />

switching <strong>to</strong> text <strong>and</strong> math modes; the additional comm<strong>and</strong>s specific<br />

<strong>to</strong> each encoding are executed afterwards.<br />

\DeclareFontFamily{code}{fam}{opt} [p] . . . . . . (A.3.6) – 376<br />

Declares fam <strong>to</strong> be a new font family with the encoding code; the<br />

encoding must previously have been declared. The comm<strong>and</strong>s in opt<br />

are executed every time this family is selected.<br />

\DeclareFontShape{code}{fam}{ser}{shp}{def }{opt} [p]<br />

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . (A.3.6) – 377<br />

Associates external font names with the given font attribute values;<br />

the actual definition def relates font sizes <strong>to</strong> font names, as explained<br />

on page 377. The comm<strong>and</strong>s in opt are executed every time this shape<br />

is selected.<br />

\DeclareFontSubstitution{code}{fam}{ser}{shp} [p] (A.3.6) – 376<br />

Declares the font attributes that are <strong>to</strong> be substituted in case there<br />

is no valid font corresponding <strong>to</strong> the set of attributes selected. The<br />

order of substitution is shape, series, <strong>and</strong> family; the encoding is<br />

never substituted.<br />

\DeclareGraphicsExtensions{ext list} [p] . . . . . . . (6.1.7) – 165<br />

Establishes the list of default extensions for graphics files that can be<br />

imported with the \includegraphics comm<strong>and</strong> <strong>and</strong> the graphics<br />

or graphicx packages; ext list is a comma-separated list of file extensions,<br />

such as .eps,.ps.<br />

\DeclareGraphicsRule{ext}{type}{bb}{cmd} [p] . . . (6.1.7) – 165<br />

Associates a graphics file extension ext with a graphics file type <strong>and</strong> a<br />

file extension (bb) where the bounding box information is <strong>to</strong> be read,<br />

<strong>and</strong> an operating comm<strong>and</strong> (cmd) that is <strong>to</strong> be executed on the file<br />

<strong>to</strong> make it available for importation. For example<br />

\DeclareGraphicsRule{.eps.gz}{eps}<br />

{.eps.bb}{‘gunzip -c #1}<br />

Here the comm<strong>and</strong> must be prefixed with ‘ <strong>and</strong> #1 represents the<br />

name of the file <strong>to</strong> be processed.

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

Saved successfully!

Ooh no, something went wrong!