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.

380 Appendix A. The New Font Selection Scheme (NFSS)<br />

symbols on their own (Section G.4.3). Thus \’{e} in OT1 prints an acute accent<br />

(character 19) over the letter e, while in T1, it prints the single character in<br />

position 233. This behavior is achieved with<br />

\DeclareTextAccent{\’}{OT1}{19}<br />

\DeclareTextComposite{\’}{T1}{e}{233}<br />

The comm<strong>and</strong> must already have been defined for the encoding, either with<br />

\DeclareTextAccent or with \DeclareTextComm<strong>and</strong>; in the latter case, it must<br />

be defined <strong>to</strong> take a single argument.<br />

All of the above definition comm<strong>and</strong>s create new comm<strong>and</strong>s for a specific<br />

encoding. If the defined comm<strong>and</strong>s are invoked in some other encoding, an<br />

error message is issued. Default definitions may be provided for all unspecified<br />

encodings with<br />

\DeclareTextComm<strong>and</strong>Default{\cmd}[narg][opt]{def }<br />

\ProvideTextComm<strong>and</strong>Default{\cmd}[narg][opt]{def }<br />

\DeclareTextAccentDefault{\cmd}{code}<br />

\DeclareTextSymbolDefault{\cmd}{code}<br />

where the first two create a default definition that applies <strong>to</strong> all unspecified<br />

encodings, while the second two declare which encoding is <strong>to</strong> be taken as the<br />

default.

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

Saved successfully!

Ooh no, something went wrong!