Difference between revisions of "Command/setupnarrower"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
(links to \startnarrow, simplification/updates)
 
(10 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>setupnarrower</syntax>
  <tr>
 
    <td colspan="2" class="cmd">\setupnarrower<span class="first" >[...,...=...,...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Reference/en/keyword:left|left]]</td>
 
    <td>[[Reference/en/value:dimension|dimension]] </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Reference/en/keyword:right|right]]</td>
 
    <td>[[Reference/en/value:dimension|dimension]] </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Reference/en/keyword:middle|middle]]</td>
 
    <td>[[Reference/en/value:dimension|dimension]] </td>
 
  </tr>
 
</table>
 
  
 +
== Description ==
  
== Description ==
+
Set default values for the <code>left</code>, <code>right</code>, and <code>middle</code> parameters of {{cmd|startnarrower}}. {{cmd|startnarrower}} will still use <code>middle</code> by default, unless you specify <code>left</code> for <code>right</code>, but you need no longer specify the width of the extra margin(s) requested.
  
 
== Comment ==
 
== Comment ==
Line 30: Line 15:
 
The use of narrower is a bit abnormal.
 
The use of narrower is a bit abnormal.
  
<tt>\startnarrower</tt> (<tt>\startsmaller</tt> in dutch) is one of the oldest commands in ConTeXt. It predates the now-normal conventions by a few years.
+
{{cmd|startnarrower}} (<tt>\startsmaller</tt> in dutch) is one of the oldest commands in ConTeXt. It predates the now-normal conventions by a few years.
  
Don't expect any changes to <tt>\startnarrower</tt>. But perhaps a more predictable alternative could be added.
+
Don’t expect any changes to {{cmd|startnarrower}}. A more predictable alternative is {{cmd|startnarrow}}.
  
 
== Example ==
 
== Example ==
  
<context source="yes" text="yields">
+
<context source="yes">
Long text that is longer then the following text
+
\setuppapersize[A5]
\setupnarrower[left=3cm, right=3cm]
+
\setupnarrower[middle=1cm, left=2cm, right=2cm]
 +
 
 +
When Thangobrind the jeweller heard the ominous cough, he turned at once upon
 +
that narrow way.
  
 
\startnarrower[left,right]
 
\startnarrower[left,right]
this is narrower
+
A thief was he, of very high repute, being patronized by the lofty and elect,
 +
for he stole nothing smaller than the Moomoo's egg, and in all his life stole
 +
only four kinds of stone---the ruby, the diamond, the emerald, and the sapphire;
 +
and, as jewellers go, his honesty was great.
 +
\stopnarrower
 +
 
 +
% \startnarrower without any arguments is equivalent to \startnarrower[middle]
 +
\startnarrower
 +
Now there was a Merchant Prince who had come to Thangobrind and had offered his
 +
daughter's soul for the diamond that is larger than the human head
 
\stopnarrower
 
\stopnarrower
  
% or
+
and was to be found on the lap of the spider-idol, Hlo-hlo, in his temple of
 +
Moung-ga-ling; for he had heard that Thangobrind was a thief to be trusted.
 +
 
 +
\blank
  
\setupnarrower[middle=3cm]
+
\rightaligned{---Lord Dunsany, \quote{Distressing Tale of Thangobrind the Jeweller},}
\startnarrower % [middle] is default
+
\rightaligned{{\it The Book of Wonder}}
this is narrower
 
\stopnarrower
 
Long text that is longer then the preceding text
 
 
</context>
 
</context>
 
  
 
== See also ==
 
== See also ==
<tt>[[cmd:startnarrower|\startnarrower]]</tt>
+
* {{cmd|startnarrower}}
 +
* {{cmd|startnarrow}}
 +
* {{cmd|definenarrower}}
  
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setupnarrower]]
+
[[Category:Command/Paragraphs|setupnarrower]]

Latest revision as of 09:15, 27 December 2021

\setupnarrower

Syntax (autogenerated)

\setupnarrower[...,...][...=...,...]
[...,...]name
leftdimension
middledimension
rightdimension
default[+-]left [+-]middle [+-]right number*left number*middle number*right reset
beforecommand
aftercommand


Description

Set default values for the left, right, and middle parameters of \startnarrower. \startnarrower will still use middle by default, unless you specify left for right, but you need no longer specify the width of the extra margin(s) requested.

Comment

The use of narrower is a bit abnormal.

\startnarrower (\startsmaller in dutch) is one of the oldest commands in ConTeXt. It predates the now-normal conventions by a few years.

Don’t expect any changes to \startnarrower. A more predictable alternative is \startnarrow.

Example

\setuppapersize[A5]
\setupnarrower[middle=1cm, left=2cm, right=2cm]

When Thangobrind the jeweller heard the ominous cough, he turned at once upon 
that narrow way. 

\startnarrower[left,right]
A thief was he, of very high repute, being patronized by the lofty and elect, 
for he stole nothing smaller than the Moomoo's egg, and in all his life stole 
only four kinds of stone---the ruby, the diamond, the emerald, and the sapphire; 
and, as jewellers go, his honesty was great. 
\stopnarrower

% \startnarrower without any arguments is equivalent to \startnarrower[middle]
\startnarrower
Now there was a Merchant Prince who had come to Thangobrind and had offered his 
daughter's soul for the diamond that is larger than the human head 
\stopnarrower

and was to be found on the lap of the spider-idol, Hlo-hlo, in his temple of 
Moung-ga-ling; for he had heard that Thangobrind was a thief to be trusted.

\blank

\rightaligned{---Lord Dunsany, \quote{Distressing Tale of Thangobrind the Jeweller},} 
\rightaligned{{\it The Book of Wonder}}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: