Difference between revisions of "Command/startnarrower"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \startnarrower ... \stopnarrower")
 
 
Line 27: Line 27:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A5]
+
\setuppapersize[A6,landscape]
 +
\showframe
 +
\starttext
  
The Gibbelins eat, as is well known, nothing less good than man. Their evil  
+
The Gibbelins eat, as is well known, nothing less good than man. Their evil
tower is joined to Terra Cognita, to the lands we know, by a bridge.  
+
tower is joined to Terra Cognita, to the lands we know, by a bridge.
  
 
\setupnarrower[left=1cm,right=3cm]
 
\setupnarrower[left=1cm,right=3cm]
  
 
\startnarrower
 
\startnarrower
     (default, middle=0.5cm) Their hoard is beyond reason; avarice has no use  
+
     (default, middle=0.5cm) Their hoard is beyond reason; avarice has no use
     for it; they have a separate cellar for emeralds and a separate cellar for  
+
     for it; they have a separate cellar for emeralds and a separate cellar for
     sapphires; they have filled a hole with gold and dig it up when they need it.  
+
     sapphires; they have filled a hole with gold and dig it up when they need it.
 
\stopnarrower
 
\stopnarrower
  
  
 
\startnarrower[left,right]
 
\startnarrower[left,right]
     (1cm left, 3cm right) And the only use that is known for their ridiculous  
+
     (1cm left, 3cm right) And the only use that is known for their ridiculous
 
     wealth is to attract to their larder a continual supply of food.
 
     wealth is to attract to their larder a continual supply of food.
 
\stopnarrower
 
\stopnarrower
Line 48: Line 50:
 
\setupnarrower[middle=1cm]
 
\setupnarrower[middle=1cm]
 
\startnarrower
 
\startnarrower
     (1cm middle) In times of famine they have even been known  
+
     (1cm middle) In times of famine they have even been known
     to scatter rubies  abroad, a little trail of them to some city of Man, and  
+
     to scatter rubies  abroad, a little trail of them to some city of Man, and
 
     sure enough their larders would soon be full again.
 
     sure enough their larders would soon be full again.
 
\stopnarrower
 
\stopnarrower
Line 56: Line 58:
  
 
\rightaligned{---Lord Dunsany, \quote{The Hoard of the Gibbelins}, {\it The Book of Wonder}}
 
\rightaligned{---Lord Dunsany, \quote{The Hoard of the Gibbelins}, {\it The Book of Wonder}}
 +
\stoptext
 
</context>
 
</context>
 
</cd:example></cd:examples>
 
</cd:example></cd:examples>

Latest revision as of 13:34, 14 September 2023


\startnarrower ... \stopnarrower

Summary

The environment \startnarrower ... \stopnarrower is used to widen the margins temporarily

Settings

\startnarrower[...,...] ... \stopnarrower
[...,...][+-]left [+-]middle [+-]right number*left number*middle number*right reset reverse

OptionExplanation
[+-]left means increase left-hand margin.
[+-]middle means increase both margins.
[+-]right means increase right-hand margin.

Description

Make the margins wider on the left, the right, or (default) both sides. By default the margin(s) is/are made wider by 0.5cm; to change these distances, use \setupnarrower, or use \startnarrow. Using \startnarrower[left=2cm] does not work.

Tip

By preceding the argument with a negative sign (eg. \startnarrower[-2*left]) the text area can be made wider, rather than narrower.

Examples

Example 1

\setuppapersize[A6,landscape]
\showframe
\starttext

The Gibbelins eat, as is well known, nothing less good than man. Their evil
tower is joined to Terra Cognita, to the lands we know, by a bridge.

\setupnarrower[left=1cm,right=3cm]

\startnarrower
    (default, middle=0.5cm) Their hoard is beyond reason; avarice has no use
    for it; they have a separate cellar for emeralds and a separate cellar for
    sapphires; they have filled a hole with gold and dig it up when they need it.
\stopnarrower


\startnarrower[left,right]
    (1cm left, 3cm right) And the only use that is known for their ridiculous
    wealth is to attract to their larder a continual supply of food.
\stopnarrower

\setupnarrower[middle=1cm]
\startnarrower
    (1cm middle) In times of famine they have even been known
    to scatter rubies   abroad, a little trail of them to some city of Man, and
    sure enough their larders would soon be full again.
\stopnarrower

\blank[line]

\rightaligned{---Lord Dunsany, \quote{The Hoard of the Gibbelins}, {\it The Book of Wonder}}
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: