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.

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

The commas indicate that a list of parameters c<strong>an</strong> be enclosed. In the options list following<br />

the definition, the .1. <strong>an</strong>d .2. show the possible options that c<strong>an</strong> be set in the<br />

first <strong>an</strong>d second bracket pair respectively. The parameters <strong>an</strong>d their possible values are<br />

placed in the third bracket pair.<br />

The default options <strong>an</strong>d parameter values are underlined. Furthermore you will notice<br />

that some values are typeset in a sl<strong>an</strong>ted way: section, name, dimension, number, comm<strong>an</strong>d<br />

<strong>an</strong>d text. This indicates that you c<strong>an</strong> set the value yourself.<br />

contents<br />

index<br />

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

definitions<br />

section<br />

name<br />

dimension<br />

number<br />

comm<strong>an</strong>d<br />

text<br />

a section name like chapter, paragraph etc.<br />

<strong>an</strong> identifier (logical name)<br />

<strong>an</strong> dimension with a unit in cm, pt, em, ex, sp or in<br />

<strong>an</strong> integer<br />

a comm<strong>an</strong>d<br />

text<br />

colofon<br />

36 Defining comm<strong>an</strong>ds / macros<br />

CONT E XT is a set of macros based on T E X. T E X is a programming l<strong>an</strong>guage as well as a typographical<br />

system. This me<strong>an</strong>s that you c<strong>an</strong> do the programming yourself if you need<br />

that kind of flexability.<br />

You c<strong>an</strong> define a new comm<strong>an</strong>d with:<br />

exit<br />

search +<br />

\define[.1.]\comm<strong>an</strong>d{.2.}<br />

go back<br />

– +<br />

36 105

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

Saved successfully!

Ooh no, something went wrong!