Difference between revisions of "Command/setupnarrower"
< Command
Jump to navigation
Jump to search
m (Text replace - "Reference/en|" to "Commands|") |
m (correct example bylin) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:left|left]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:right|right]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:middle|middle]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
</table> | </table> | ||
+ | == 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 36: | Line 37: | ||
== Example == | == Example == | ||
− | <context source="yes | + | <context source="yes"> |
− | + | \setuppapersize[A5] | |
− | \setupnarrower[left= | + | \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] | ||
− | + | 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 | ||
− | + | 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}} |
− | |||
− | \ | ||
− | |||
</context> | </context> | ||
− | |||
== See also == | == See also == | ||
− | + | {{cmd|startnarrower}} | |
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[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
Help from ConTeXt-Mailinglist/Forum
All issues with: