Changes

Jump to navigation Jump to search
3,377 bytes added ,  13:31, 14 September 2023
Created page with "Documentation for \startnarrower ... \stopnarrower"
<cd:commandgroup name="narrower" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The environment <tt>\startnarrower ... \stopnarrower</tt> is used to widen the margins temporarily
</cd:shortdesc>
<cd:variants>
<cd:command category="whitespace" file="spac-hor.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-narrow.xml" keywords="layout" level="document" name="narrower" type="environment" variantnumber="1">
<cd:arguments>
<cd:keywords list="yes" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant method="none" prefix="cd:sign" type="left">means increase left-hand margin.</cd:constant>
<cd:constant method="none" prefix="cd:sign" type="middle">means increase both margins.</cd:constant>
<cd:constant method="none" prefix="cd:sign" type="right">means increase right-hand margin.</cd:constant>
<cd:constant method="factor" prefix="cd:number" type="left"></cd:constant>
<cd:constant method="factor" prefix="cd:number" type="middle"></cd:constant>
<cd:constant method="factor" prefix="cd:number" type="right"></cd:constant>
<cd:constant type="reset"></cd:constant>
<cd:constant type="reverse"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
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 {{cmd|setupnarrower}}, or use {{cmd|startnarrow}}. Using <code>\startnarrower[left=2cm]</code> does not work.

== Tip ==
By preceding the argument with a negative sign (eg. <code>\startnarrower[<tt>-2*left</tt>]</code>) the text area can be made wider, rather than narrower.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A5]

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}}
</context>
</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="spac-hor.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Whitespace"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Layout"></cd:wikipage>
<cd:commandref name="setupnarrower"></cd:commandref>
<cd:commandref name="startnarrow"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu