14.03.2013 Views

symbols-a4

symbols-a4

symbols-a4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 325: Spacing Around/Within Log-like Symbols<br />

L ATEX expression Output<br />

$r \sin \theta$ r sin θ (best)<br />

$r sin \theta$ rsinθ<br />

$r \mbox{sin} \theta$ rsinθ<br />

$r \mathrm{sin} \theta$ rsinθ<br />

The difference between \DeclareMathOperator and \DeclareMathOperator* involves the handling of subscripts.<br />

With \DeclareMathOperator*, subscripts are written beneath log-like <strong>symbols</strong> in display style and<br />

to the right in text style. This is useful for limit operators (e.g., \lim) and functions that tend to map over<br />

a set (e.g., \min). In contrast, \DeclareMathOperator tells TEX that subscripts should always be displayed<br />

to the right of the operator, as is common for functions that take a single parameter (e.g., \log and \cos).<br />

Table 326 contrasts <strong>symbols</strong> declared with \DeclareMathOperator and \DeclareMathOperator* in both text<br />

style ($. . .$) and display style (\[. . .\]). 12<br />

Table 326: Defining new log-like <strong>symbols</strong><br />

Declaration function $\newlogsym {p \in P}$ \[ \newlogsym {p \in P} \]<br />

\DeclareMathOperator newlogsym p∈P newlogsym p∈P<br />

\DeclareMathOperator* newlogsym p∈P newlogsym<br />

p∈P<br />

It is common to use a thin space (\,) between the words of a multiword operators, as in<br />

“\DeclareMathOperator*{\argmax}{arg\,max}”. \liminf, \limsup, and all of the log-like <strong>symbols</strong> shown<br />

in Table 129 utilize this spacing convention.<br />

8.5 Bold mathematical <strong>symbols</strong><br />

L ATEX does not normally use bold <strong>symbols</strong> when typesetting mathematics. However, bold <strong>symbols</strong> are occasionally<br />

needed, for example when naming vectors. Any of the approaches described at http://www.tex.ac.uk/<br />

cgi-bin/texfaq2html?label=boldgreek can be used to produce bold mathematical <strong>symbols</strong>. Table 327<br />

contrasts the output produced by these various techniques. As the table illustrates, these techniques exhibit<br />

variation in their formatting of Latin letters (upright vs. italic), formatting of Greek letters (bold vs. normal),<br />

formatting of operators and relations (bold vs. normal), and spacing.<br />

Table 327: Producing bold mathematical <strong>symbols</strong><br />

Package Code Output<br />

none $\alpha + b = \Gamma \div D$ α + b = Γ ÷ D (no bold)<br />

none $\mathbf{\alpha + b = \Gamma \div D}$ α + b = Γ ÷ D<br />

none \boldmath$\alpha + b = \Gamma \div D$ α + b = Γ ÷ D<br />

amsbsy $\pmb{\alpha + b = \Gamma \div D}$ α + b = Γ ÷ D (faked bold)<br />

amsbsy $\boldsymbol{\alpha + b = \Gamma \div D}$ α + b = Γ ÷ D<br />

bm $\bm{\alpha + b = \Gamma \div D}$ α + b = Γ ÷ D<br />

fixmath $\mathbold{\alpha + b = \Gamma \div D}$ α + b = Γ ÷ D<br />

12 Note that \displaystyle can be used to force display style within $. . .$ and \textstyle can be used to force text style<br />

within \[. . .\].<br />

113

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

Saved successfully!

Ooh no, something went wrong!