Changes

Jump to navigation Jump to search
2,675 bytes added ,  12:11, 19 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupindenting</syntax>
== [[Help:Reference|Syntax]] ==
<tr valign="top" class="first">
<td class="cmd">[...,...,...]</td>
<td>'''no''' yes: ''turn indentation on/off'</td> </tr> <tr valign="top" class="first"> <strongtd class="cmd">none[...,...,...]</strongtd> <td>'''none''' small medium big ''dimension'': ''size of indents''</td> </tr> <tr valign="top" class="first"> <td class="cmd">[...,...,...]</td> <td>'''first''' next : ''turn indentation of first normal paragraph on/off''</td> </tr> <tr valign="top" class="first"> <td class="cmd">[...,...,...]</td> <td>odd even: ''indent odd /even dimension lines in {{cmd|obeylines}} scopes''</td> </tr> <tr valign="top" class="first"> <td class="cmd">[...,...,...]</td> <td>normal: ''what does this do?''</td>
</tr>
</table>
== Description ==
Specify indentation settings. By default, indentation is both turned off ''and'' set to zero, so it must be turned on with <code>\setupindenting[yes, small]</code>.
To get indentation after section numbers, use<texcode>\setupheads[indentnext=yes]</texcode> If you place a figure with {{cmd|placefigure}}<code>[auto]</code>, the <code>auto</code> keyword prevents the next paragraph from indenting. You can manually mark the paragraph to be indented with the {{cmd|indentation}} command, or you can use another specifier instead of <code>auto</code> (<code>top</code> or <code>bottom</code>, for instance). == Description See also == * [[Indentation]]* {{cmd|indentation}}* {{cmd|noindenting}}* {{cmd|indenting starts only }} == Help from ConTeXt-Mailinglist/Forum ==All issues with ":{{Forum|{{SUBPAGENAME}}}} [[Category:Command/Paragraphs|setupindenting]] == Examples ==<context source=yes">\definepapersize[tall][height=40cm, width=10cm]\setuppapersize[tall] \setuphead[subsubsubject][before={\blank[none]}, e.g.after={\blank[none]}] \def\test#1%<pre>{ \setupindenting[yes, #1] \subsubsubject{\type{#1}} One, two\par Buckle my shoe\par \hairline} \startcolumns[n=2, rule=on] \test{none} \test{medium, } \test{big}\column \test{none} \test{small} \test{-1em}\stopcolumns</context> === <code>first]</code> and <code>next</code> ===<code>first</code> turns on indentation of the first paragraph; <code>next</precode>turns it off. <code>first</code> is on by default. <context source=yes>\setuppapersize[A5]
If you want indenting after section numbers use this% The quotation is from "Three Tickets to Adventure", by Gerald Durrell.\def\testpar{ Neither Bob nor I had ever met quite such a gentle, stupid, and amiable bird, and we christened it Cuthbert forthwith, as that was the only name we could think of that perfectly fitted its sloppy character. \par}
<pre>% `first` is on by default\setupheadssetupindenting[indentnext=yes, small]</pre>\testpar\testpar\hairline
If you want % to indent disable indentation of the first paragraph after a <code>\placefigure</code>, you should not use the key <code>auto</code>, use another specifier instead (<code>top</code> or <code>bottom</code>, for instance). The <code>auto</code> keyword prevents the paragraph from indenting. However you can use <code>auto</code> and additionally mark the paragraph to be indented with the <code>`next`\setupindenting[next]\testpar\testpar\indentation</code> command.hairline
== Example ==% to re-enable indentation of the first paragraph on again, use `first`\setupindenting[first]\testpar\testpar<!-- Please fill in an example if you can --/context>
== See also = <code>odd</code> and <code>even</code> ===<!-- something like [[code>odd</code> and <code>even</code> affect raw newlines when {{cmd|obeylines}} is in effect. {{cmd|crlf}} is not considered a raw newline, and {{cmd|startlines}} is not affected because {{cmd:goto|setuplines}} has its own <code>odd</code> and <code>even</code> keywords.<context source=yes>\gotosetuppapersize[A6]] -->
\startcolumns[n=2, rule=on] \setupindenting[Category:Commands|yes, small, even] {\obeylines one two three four }\column \setupindenting[odd]] {\obeylines one two three four }\stopcolumns</context>

Navigation menu