summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/sources/general/manuals/start/en/ma-cb-en-descriptions.tex
blob: 01c8fb60868fe977a394b41275985a8b7dac340d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
\startcomponent ma-cb-en-descriptions

\enablemode[**en-us]

\project ma-cb

\startchapter[title=Definitions]

\index{definition}

\Command{\tex{definedescription}}
\Command{\tex{setupdescriptions}}

If you want to display notions, concepts and ideas in a consistent manner you can
use:

\shortsetup{definedescription}

For example:

\startbuffer
\definedescription
  [concept]
  [alternative=serried,headstyle=bold,width=broad]

\concept{Hasselter juffer} A sort of biscuit made of puff pastry and
covered with sugar. It tastes very sweet. \par
\stopbuffer

\typebuffer

It would look like this:

\getbuffer

But you can also choose other layouts:

\startbuffer
\definedescription
  [concept]
  [alternative=top,
   inbetween={\blank[none]},
   headstyle=bold,
   width=broad,
   style=slanted]

\concept{Hasselter bitter} A very strong alcoholic drink (up to 40\%)
mixed with herbs to give it a special taste. It is sold in a stone
flask and it should be served {\em ijskoud} (as cold as ice). \par

\definedescription
  [concept]
  [alternative=inmargin,headstyle=bold,width=broad]

\concept{Euifeest} A harvest home to celebrate the end of a period of
hard work. The festivities take place in the last week of August. \par
\stopbuffer

\start
\getbuffer
\stop

If you want to avoid the \type{\par} or when you have more than one paragraph in
the definition you can use the \type{\start...\stop} construct.

\startbuffer
\definedescription
  [concept]
  [alternative=right,
   headstyle=bold,
   width=broad]

\startconcept{Euifeest} A harvest home to celebrate the end of a
period of hard work.
This event takes place at the end of August and lasts one week. The
city is completely illuminated and the streets are decorated. This
feast week ends with a {\em Braderie}.
\stopconcept
\stopbuffer

\typebuffer

This would become:

\getbuffer

Layout is set up within the second bracket pair of
\type{\definedescription[][]}. But you can also use:

\shortsetup{setupdescriptions}

\stopchapter

\stopcomponent