29.05.2014 Views

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Formulae<br />

Although display mode c<strong>an</strong> also be entered <strong>an</strong>d exit with $$, but only \startformula<br />

<strong>an</strong>d friend get the spacing right. So if you type:<br />

$$<br />

\int_0ˆ1 xˆ2 dx<br />

$$<br />

you will get <strong>an</strong> expression that is displayed in the middle of a page, but not well as aligned<br />

as the previous examples.<br />

contents<br />

index<br />

comm<strong>an</strong>ds<br />

definitions<br />

∫ 1<br />

0<br />

x 2 dx<br />

colofon<br />

The comm<strong>an</strong>d \placeformula h<strong>an</strong>dles spacing around the formulae <strong>an</strong>d the numbering<br />

of the formula. The bracket pair is optional <strong>an</strong>d is used for cross-references <strong>an</strong>d switching<br />

numbering off.<br />

y = x 2 (7.3)<br />

y = x 3 (7.4)<br />

y = x 4 (7.5)<br />

Formula 7.4 was typed like this:<br />

\placeformula[middle one]<br />

\startformula<br />

y=xˆ3<br />

\stopformula<br />

The label [middle one] is used for refering to this formula. Such a reference is made<br />

with \in{formula}[middle one].<br />

If no numbering is required you type:<br />

\placeformula[-]<br />

Numbering of formulae is set up with \setupnumbering. In this m<strong>an</strong>ual numbering is<br />

set up with \setupnumbering[way=bychapter]. This me<strong>an</strong>s that the chapter number<br />

exit<br />

search +<br />

go back<br />

– +<br />

7 21

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

Saved successfully!

Ooh no, something went wrong!