Difference between revisions of "Command/underbar"

From ConTeXt wiki
Jump to navigationJump to search
m
m
Line 19: Line 19:
  
 
== Examples ==
 
== Examples ==
* Default style and math
+
=== Default style and math ===
 
<context source=yes mode=mkiv text="Gives:">
 
<context source=yes mode=mkiv text="Gives:">
 
\underbar{This is an example. $c = \sqrt{a^2 + b^2}$}
 
\underbar{This is an example. $c = \sqrt{a^2 + b^2}$}
Line 26: Line 26:
 
</context>
 
</context>
  
* Default style nested
+
=== Default style nested ===
 
<context source=yes mode=mkiv text="Gives:">
 
<context source=yes mode=mkiv text="Gives:">
 
\setupbar[color=red]
 
\setupbar[color=red]
Line 34: Line 34:
 
</context>
 
</context>
  
* Various parameters demo
+
=== Various parameters demo ===
 
<context source=yes mode=mkiv text="Gives:">
 
<context source=yes mode=mkiv text="Gives:">
 
\setuppapersize[A5]
 
\setuppapersize[A5]

Revision as of 17:12, 27 October 2012

\underbar

Syntax

\underbar{...}
{...} text

Description

A rule under every line of text.

Examples

Default style and math

\underbar{This is an example. $c = \sqrt{a^2 + b^2}$}

\underbar{\input ward}

Gives:

Default style nested

\setupbar[color=red]

\underbar{A \underbar{B \underbar{Cc} b} a}
\blank

Gives:

Various parameters demo

\setuppapersize[A5]

\definebar[BarA][color=red,rulethickness=1.4]

\BarA{BarA}
\blank
Hello \startbar[BarA]\input{knuth}\stopbar world!
\blank

\definebar[BarB][color=green,rulethickness=2.8,order=background]

\BarB{BarB}
\blank
Hello \startbar[BarB]\input{knuth}\stopbar world!
\blank

\definebar[BarC][color=blue,rulethickness=2.8,order=background,offset=1.5,continue=yes]

\BarC{BarC}
\blank
Hello \startbar[BarC]\input{knuth}\stopbar world!
\blank

Gives:

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: