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.

144 Chapter 5. Mathematical Formulas<br />

5.4.10 International typesetting st<strong>and</strong>ards<br />

The International St<strong>and</strong>ards Organization (ISO) has established the recognized<br />

! conventions for typesetting mathematics, the essential elements of which are<br />

presented in an article by Beccari (1997), along with a description of how they<br />

may be realized with L AT E X. Some of these rules have already been mentioned <strong>and</strong><br />

demonstrated in the examples. Here are the major points.<br />

1. Simple variables are represented by italic letters, as a b c x y z.<br />

2. Vec<strong>to</strong>rs are written in bold face italic, as B v ω.<br />

3. Tensors of 2nd order <strong>and</strong> matrices may appear in a sans serif font, as<br />

M D I.<br />

4. The special numbers e, i, π, as well as the differential opera<strong>to</strong>r d, are <strong>to</strong> be<br />

written in an upright font <strong>to</strong> emphasize that they are not variables.<br />

5. A measurement consisting of a number plus a dimension is an indivisible<br />

unit, with a smaller than normal space between them, as 5.3 km <strong>and</strong> 62 kg.<br />

The dimension is in an upright font.<br />

Point 1 is fulfilled au<strong>to</strong>matically by L AT E X. Point 5 is easily achieved by inserting<br />

the small space \, comm<strong>and</strong> between the number <strong>and</strong> dimension, as 5.3\,km<br />

<strong>and</strong> 62\,kg. Using the protected space ˜ instead is very common practice among<br />

L AT E X users, which ensures that the two parts are not split, but with regular, not<br />

small spacing: 5.3 km <strong>and</strong> 62 kg.<br />

Point 2 is not satisfied with the \vec comm<strong>and</strong>, which produces B. Nor does<br />

\mathbf help, for this yields B, in an upright font. The best solution is <strong>to</strong> use<br />

the \boldsymbol comm<strong>and</strong> from the A M S package amsbsy (Section 12.2.1) or<br />

the \bm comm<strong>and</strong> from the <strong>to</strong>ols package bm (Section B.5.4). Otherwise one must<br />

resort <strong>to</strong> defining<br />

\renewcomm<strong>and</strong>{\vec}[1]{\mbox{\boldmath$#1$}}<br />

for a revised \vec comm<strong>and</strong>.<br />

Similarly point 3 can be met with the math alphabet comm<strong>and</strong> \mathsf.<br />

However, Beccari does point out that even tensor variables should probably be<br />

italic. This is more difficult, but it can be accomplished. See example 5 on<br />

page 191.<br />

Point 4 is the one that is most often violated, especially for the differential d.<br />

We have demonstrated it in the examples in this book <strong>and</strong> have shown how it may<br />

be achieved with the \mathrm math alphabet comm<strong>and</strong>. However, <strong>to</strong> simplify the<br />

application, it is recommended <strong>to</strong> create some user-defined comm<strong>and</strong>s, such as<br />

\newcomm<strong>and</strong>{\me}{\mathrm{e}} for math e<br />

\newcomm<strong>and</strong>{\mi}{\mathrm{i}} for math i<br />

\newcomm<strong>and</strong>{\dif}{\mathrm{d}} for differential opera<strong>to</strong>r d<br />

An upright π is not so easy since this is not provided in the usual math fonts.<br />

With these new comm<strong>and</strong>s, the equation on page 119 is more conveniently<br />

set with<br />

\[ \intˆ{\infty}_0 f(x)\,\dif x \approx<br />

\sumˆn_{i=1}w_i \meˆ{x_i} f(x_i) \]

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

Saved successfully!

Ooh no, something went wrong!