Difference between revisions of "Command/setupnarrower"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (correct example bylin)
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=setupnarrower
 
|name=setupnarrower
Line 12: Line 10:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:left|left]]</td>
+
     <td class="cmd">[[Command/keyword:left|left]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:right|right]]</td>
+
     <td class="cmd">[[Command/keyword:right|right]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:middle|middle]]</td>
+
     <td class="cmd">[[Command/keyword:middle|middle]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
== comment ==
 
<pre>
 
from Taco:
 
The use of narrower is a bit abnormal.
 
  
\startnarrower (\startsmaller in dutch) is one of the oldest
+
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.
commands in ConTeXt. It predates the now-normal conventions
 
by a few years.
 
  
Don't expect any changes to \startnarrower.
+
== Comment ==
But perhaps a more predictable alternative could be added.
 
</pre>
 
  
 +
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.
 +
 +
Don't expect any changes to <tt>\startnarrower</tt>. But perhaps a more predictable alternative could be added.
  
 
== Example ==
 
== Example ==
  
<pre class="example">
+
<context source="yes">
\setupnarrower[left=3cm, right=3cm]
+
\setuppapersize[A5]
 +
\setupnarrower[middle=1cm]
 +
\setupnarrower[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
 
\stopnarrower
  
% or
+
% \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.
  
\setupnarrower[middle=3cm]
+
\blank
\startnarrower % [middle] is default
 
this is narrower
 
\stopnarrower
 
</pre>
 
  
 +
\rightaligned{---Lord Dunsany, \quote{Distressing Tale of Thangobrind the Jeweller},}
 +
\rightaligned{{\it The Book of Wonder}}
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
{{cmd|startnarrower}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|setupnarrower]]
+
[[Category:Command/Paragraphs|setupnarrower]]

Revision as of 11:46, 5 June 2012

\setupnarrower

Syntax

\setupnarrower[...,...=...,...]
left dimension
right dimension
middle dimension

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. But perhaps a more predictable alternative could be added.

Example

\setuppapersize[A5]
\setupnarrower[middle=1cm]
\setupnarrower[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

\startnarrower

Help from ConTeXt-Mailinglist/Forum

All issues with: