Difference between revisions of "Command/backgroundline"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \backgroundline")
 
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
<cd:description><!-- the long description of the command goes here -->
 
<cd:description><!-- the long description of the command goes here -->
 
</cd:description>
 
</cd:description>
<cd:examples><cd:example title="">\backgroundline[gray]{\tt line1\\and line2}
+
<cd:examples><cd:example title=""><context source="yes">
 +
\setuppapersize[A7,landscape]
 +
\setupbodyfont[16pt]
 +
\setupheadertexts[]
 +
 
 +
\starttext
 +
 
 +
\backgroundline[gray]{\tt       line1 \par and line2}
 +
 
 
\blank[small]
 
\blank[small]
\backgroundline[gray]{\tt\strut line1\\and line2}</cd:example></cd:examples>
+
 
 +
\backgroundline[gray]{\tt\strut line1 \par and line2}
 +
 
 +
\stoptext
 +
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>

Latest revision as of 15:19, 8 May 2024


\backgroundline

Summary

The command \backgroundline is used for typeset a content on one line, on coloring the background.

Settings

\backgroundline[...]{...}
[...]color
{...}content

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

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: