Difference between revisions of "Command/backgroundline"
< Command
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
\setuppapersize[A7,landscape] | \setuppapersize[A7,landscape] | ||
\setupbodyfont[16pt] | \setupbodyfont[16pt] | ||
+ | \setupheadertexts[] | ||
+ | |||
\starttext | \starttext | ||
− | \backgroundline[gray]{\tt line1\ | + | |
+ | \backgroundline[gray]{\tt line1 \par and line2} | ||
+ | |||
\blank[small] | \blank[small] | ||
− | \backgroundline[gray]{\tt\strut line1\ | + | |
+ | \backgroundline[gray]{\tt\strut line1 \par and line2} | ||
+ | |||
\stoptext | \stoptext | ||
</context></cd:example></cd:examples> | </context></cd:example></cd:examples> |
Latest revision as of 15:19, 8 May 2024
Contents
\backgroundline
Summary
The command \backgroundline is used for typeset a content on one line, on coloring the background.
Settings
Description
Examples
Example 1
\setuppapersize[A7,landscape] \setupbodyfont[16pt] \setupheadertexts[] \starttext \backgroundline[gray]{\tt line1 \par and line2} \blank[small] \backgroundline[gray]{\tt\strut line1 \par and line2} \stoptext