Difference between revisions of "Command/setupblackrules"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
m
Line 20: Line 20:
 
     <td class="cmd">[[Command/keyword:depth|depth]]</td>
 
     <td class="cmd">[[Command/keyword:depth|depth]]</td>
 
     <td>[[Command/value:dimension|dimension]] [[Command/value:max|max]] </td>
 
     <td>[[Command/value:dimension|dimension]] [[Command/value:max|max]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:color|color]]</td>
 +
    <td>[[Command/value:color|color]] [[Command/value:color]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">

Revision as of 19:50, 16 February 2014

\setupblackrules

Syntax

\setupblackrules[...,...=...,...]
width dimension max
height dimension max
depth dimension max
color color Command/value:color
alternative a b
distance dimension
n number

Description

width = (dimension): width across the page. Default = 1em

height = (dimension): thickness above the current baseline

depth = (dimension): thickness below the current baseline

By setting the width, height or depth to max, one gets the natural dimensions (the dimensions of TeX’s \strutbox).

color = (colorspec): any of defined colors (color must be turned on!)

alternative = a | b: in the case of multiple rules (n>1), alternative a (default) treats width as the dimension of one rule, while alternative b -- for the whole series.

Example

See also

\blackrule, \blackrules

Help from ConTeXt-Mailinglist/Forum

All issues with: