29.05.2014 Views

ConTEXt the manual Hans Hagen - Pragma ADE

ConTEXt the manual Hans Hagen - Pragma ADE

ConTEXt the manual Hans Hagen - Pragma ADE

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.

Documents 25<br />

content<br />

index<br />

commands<br />

macros<br />

\setupcolors[state=start]<br />

\stopmode<br />

if needed, accompanied by:<br />

\startnotmode[screen]<br />

\setupcolors[state=start,conversion=always]<br />

\stopnotmode<br />

One can also pass more than one mode, separated by comma’s. There are also some low level<br />

mode dependant commands. Given that we are dealing with a screen mode, we can say:<br />

\doifmodeelse {screen} {do this} {and not that}<br />

\doifmode {screen} {do something}<br />

\doifnotmode {screen} {do something else}<br />

A mode can be activated by saying:<br />

\enablemode[screen]<br />

\disablemode[screen]<br />

Again, we can pass more modes:<br />

\enablemode[paper,A4]<br />

One strength of T E Xexec is that one is not forced to enable modes in a file: one can simply<br />

pass a command line switch. Just as with choosing <strong>the</strong> output format: <strong>the</strong> less we spoil <strong>the</strong><br />

document source with output and mode settings, <strong>the</strong> more flexible we are.<br />

2.1 Introduction 17<br />

2.2 Start and stop 17<br />

2.3 Structure 18<br />

2.4 Directories 23<br />

2.5 Versions 23<br />

2.6 Modes 24<br />

To enable users to develop a style that adapts itself to certain circumstances, ConT E Xt provide<br />

system modes. For <strong>the</strong> moment <strong>the</strong>re are:<br />

*list<br />

*register<br />

*interaction<br />

*sectionblock<br />

<strong>the</strong> list one called for is placed indeed<br />

<strong>the</strong> register one called for is placed indeed<br />

interaction (hyperlinks etc) are turned on<br />

<strong>the</strong> named sectionblock is entered<br />

System modes are prefixed by a *, so <strong>the</strong>y will not conflict with user modes. An example of a<br />

sectionblock mode is *frontmatter. One can use <strong>the</strong>se modes like:<br />

\startmode[*interaction]<br />

\setuppapersize[S6][S6]<br />

\stopmode<br />

search go back exit<br />

Modes 2

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

Saved successfully!

Ooh no, something went wrong!