export-example.tex /size: 2358 b    last modification: 2020-07-01 14:35
1
\usemodule
[
abr
-
0
1
]
2 3
\setupexport
4
[
%bodyfont=16pt,
5
width
=
6
5
0
pt
,
6
%align=flushleft,
7
hyphen
=
yes
]
8 9
\setupbackend
10
[
export
=
yes
]
11 12
% \setupalign
13
% [flushleft]
14 15
\settaggedmetadata
16
[
title
=
Export
Example
,
17
author
=
Hans
Hagen
,
18
version
=
0
.
1
]
19 20
\setupbodyfont
21
[
dejavu
]
22 23
\setupinteraction
24
[
state
=
start
]
25 26
\setuplayout
27
[
width
=
middle
]
28 29
\setupwhitespace
30
[
big
]
31 32
\definedescription
33
[
description
]
34 35
\enabledirectives
[
export
.
css
.
hyphens
=
yes
]
36
\enabledirectives
[
export
.
css
.
textwidth
=
1
0
0
em
]
37 38
\definehighlight
[
interesting
][
style
=
bold
,
color
=
red
]
39 40
\starttext
41 42
\startchapter
[
title
=
Example
]
43 44
\startparagraph
\input
zapf
(
Zapf
)
\stopparagraph
45 46
\startparagraph
47
Watching
a
\interesting
{
movie
}
after
reading
a
review
on
\goto
{
my
favourite
movie
48
reviews
site
}
[
url
(
http
:
//
outlawvern
.
com
/
)]
is
much
more
fun
.
\footnote
{
Just
a
note
.
}
49
\stopparagraph
50 51
\placefigure
52
{}
53
{
\startcombination
[
3
*
1
]
54
{
\externalfigure
[
hacker
.
jpg
][
width
=
3
cm
]
}
{
first
}
55
{
\externalfigure
[
hacker
.
jpg
][
width
=
4
cm
]
}
{
second
}
56
{
\externalfigure
[
hacker
.
jpg
][
width
=
2
cm
]
}
{
third
}
57
\stopcombination
}
58 59
\startparagraph
\input
zapf
(
Zapf
)
\stopparagraph
60 61
\placefigure
62
{}
63
{
\externalfigure
[
mill
.
png
]
}
64 65
\startparagraph
\input
tufte
(
Tufte
)
\stopparagraph
66 67
\placefigure
68
{}
69
{
\externalfigure
[
cow
.
pdf
]
}
70 71
\startparagraph
\input
tufte
(
Tufte
)
\stopparagraph
72 73
\startitemize
[
1
]
74
\startitem
\input
ward
(
Ward
)
\stopitem
75
\startitem
\input
knuth
(
Knuth
)
\stopitem
76
\stopitemize
77 78
\startitemize
[
2
,
packed
]
79
\startitem
\input
zapf
(
Zapf
)
\stopitem
80
\startitem
\input
tufte
(
Tufte
)
\stopitem
81
\stopitemize
82 83
\startparagraph
\input
zapf
(
Zapf
)
\stopparagraph
84 85
\startdescription
{
Ward
}
\input
ward
\stopdescription
86 87
\startdescription
{
Tufte
}
\input
tufte
\stopdescription
88 89
\startparagraph
\input
knuth
(
Knuth
)
\stopparagraph
90 91
\startformula
92
e
=
mc
^
2
93
\stopformula
94 95
\startparagraph
96
Okay
,
it
'
s
somewhat
boring
to
always
use
the
same
formula
,
so
how
about
97
$
\sqrt
{
4
}
=
2
$
or
travelling
at
\unit
{
1
2
0
km
/
h
}
instead
of
$
\unit
{
1
1
0
km
/
h
}$
.
98
\stopparagraph
99 100
\bTABLE
101
\bTR
\bTD
test
\eTD
\bTD
test
\eTD
\eTR
102
\bTR
\bTD
[
nx
=
2
]
test
\eTD
\eTR
103
\eTABLE
104 105
\starttabulate
[
|
l
|
r
|
p
|
]
106
\NC
left
\NC
right
\NC
\input
ward
\NC
\NR
107
\NC
l
\NC
r
\NC
\input
ward
\NC
\NR
108
\stoptabulate
109 110
It
looks
like
we
'
re
using
\CONTEXT
\
to
produce
some
kind
of
\XML
\
output
.
111 112
\typefile
{
export
-
example
.
tex
}
113 114
\stopchapter
115 116
\stoptext
117