blob: 0f4689f3f2985a9f1722b4b30de1a9c352ff52de (
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
|
\startcomponent ma-cb-en-textbackgrounds
\enablemode[**en-us]
\project ma-cb
\startchapter[title=Background in paragraphs]
\index{background+text}
\Command{\tex{setuptextbackground}}
\Command{\tex{definetextbackground}}
\Command{\tex{starttextbackground}}
To emphasize a paragraph you can use backgrounds. A background is set with the
command pair:
\shortsetup{starttextbackground}
An example can illustrate the use:
\startbuffer
\setuptextbackground
[corner=round,frame=on,
location=paragraph,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
bottomoffset=5pt]
\starttextbackground
Hasselt has produced a number of well known people. Only recently
it turned out that Kilian van Rensselaer played a prominent role
in the foundation of the State of New York.
\stoptextbackground
\stopbuffer
\typebuffer
This would be displayed as:
\getbuffer
Backgrounds can span multiple pages.
You can vary the display of the backgrounds with:
\shortsetup{setuptextbackground}
You can even define your own text backgrounds with:
\shortsetup{definetextbackground}
\stopchapter
\stopcomponent
|