ma-cb-en-textbackgrounds.tex /size: 1117 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-textbackgrounds
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Background in paragraphs]
8
9\index{background+text}
10
11\Command{\tex{setuptextbackground}}
12\Command{\tex{definetextbackground}}
13\Command{\tex{starttextbackground}}
14
15To emphasize a paragraph you can use backgrounds. A background is set with the
16command pair:
17
18\shortsetup{starttextbackground}
19
20An example can illustrate the use:
21
22\startbuffer
23\setuptextbackground
24  [corner=round,frame=on,
25   location=paragraph,
26   leftoffset=.5\bodyfontsize,
27   rightoffset=.5\bodyfontsize,
28   bottomoffset=5pt]
29
30\starttextbackground
31Hasselt has produced a number of well known people. Only recently
32it turned out that Kilian van Rensselaer played a prominent role
33in the foundation of the State of New York.
34\stoptextbackground
35\stopbuffer
36
37\typebuffer
38
39This would be displayed as:
40
41\getbuffer
42
43Backgrounds can span multiple pages.
44
45You can vary the display of the backgrounds with:
46
47\shortsetup{setuptextbackground}
48
49You can even define your own text backgrounds with:
50
51\shortsetup{definetextbackground}
52
53\stopchapter
54
55\stopcomponent
56