08.05.2014 Views

LATEX and WinEdt for MA4053

LATEX and WinEdt for MA4053

LATEX and WinEdt for MA4053

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.

Fractions<br />

$\frac{\pi}{2}$ produces π , although when displayed will give the larger<br />

2<br />

result π 2 . To produce textstyle fractions in displayed material either use<br />

the \textstyle comm<strong>and</strong>, or type $\tfrac{\pi}{2}$. The \binom variant<br />

provides binomial coefficients: ( 3<br />

2)<br />

is produced by $\binom{3}{2}$.<br />

Log-like functions<br />

Certain function names are usually set with upright letters, with special<br />

spacing on either side. Rather than have to fiddle around with \mathrm <strong>and</strong><br />

spacing comm<strong>and</strong>s, a number of such functions have been pre-programmed<br />

with comm<strong>and</strong> names like \log, \sin <strong>and</strong> so on — see Table 3. To create new<br />

functions you should use the \DeclareMathOperator comm<strong>and</strong>, rather than<br />

\newcomm<strong>and</strong>, since this sorts out the font type <strong>and</strong> size issues automatically.<br />

It is used in exactly the same way, <strong>for</strong> example<br />

\DeclareMathOperator{\Range}{Ran}<br />

produces Ran V when you type $\Range V$.<br />

Modulo arithmetic<br />

The AMS-L A TEX package provides the comm<strong>and</strong>s \mod, \bmod, \pmod <strong>and</strong><br />

\pod <strong>for</strong> modulo arithmetic. They produce, respectively:<br />

13 = 4 mod 9; 13 = 4 mod 9; 13 = 4 (mod 9); 13 = 4 (9)<br />

Bracketing<br />

St<strong>and</strong>ard parentheses ( <strong>and</strong> ) are given by ( <strong>and</strong> ). Similarly <strong>for</strong> square<br />

brackets [ <strong>and</strong> ]. For curly brackets you need to type \{ <strong>and</strong> }, since { <strong>and</strong> }<br />

are used throughout in giving the arguments of comm<strong>and</strong>s. Further examples<br />

of delimiters, used to give inner products or norms <strong>for</strong> example, can be found<br />

in Table 4.<br />

The size of brackets can be adjusted to accommodate large contents. For<br />

example consider<br />

(<br />

∫ t<br />

0<br />

f(t) 2 dt) 1/2<br />

<strong>and</strong><br />

(∫ t<br />

0<br />

) 1/2<br />

f(t) 2 dt<br />

The brackets in the latter are generated by \left( <strong>and</strong> \right). It is vital<br />

that there is a matching pair of \left <strong>and</strong> \right comm<strong>and</strong>s — but the<br />

14

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

Saved successfully!

Ooh no, something went wrong!