Open main menu

Changes

17 bytes added ,  06:32, 16 April 2021
m
no edit summary
In plain TeX, controlling indentation is accomplished by configuring < [[Structurals#Basics_of_ConTeXt_text_formatting|Text formatting]]tt>parindent</tt>, and each new paragraph is indented by that value, unless explicitly begun with <tt>noindent</tt>. Environments can provide a <tt>noindent</tt> at the end of their definitions, and if the user wants to overrule that, he can add an explicit <tt>indent</tt> at the beginning of the next paragraph. For the most part, LaTeX follows the same convention.
In plain TeX, controlling indentation is simple: The user sets a value for <tt>parindent</tt>, and each new paragraph is indented by that value, unless explicitly begun with <tt>noindent</tt>. Environments can provide a <tt>noindent</tt> at the end of their definitions, and if the user wants to overrule that, he can add an explicit <tt>indent</tt> at the beginning of the next paragraph. For the most part, LaTeX follows the same convention. Indentation in ConTeXt are is a bit different: it mostly does not rely on the presence of blank lines, but uses {{cmd|setupindenting}} to manage general indentation, the <code>indentnext=yes/no/auto</code> key on environments to enable/disable indentation after them, and {{cmd|indentation}} and {{cmd|noindentation}} to manually force/disable an indentation.
The commands {{cmd|indent}}, {{cmd|noindent}}, {{cmd|indenting}}, and {{cmd|noindenting}} are present for historical reasons, but should not be used. Especially, they should not be confused with {{cmd|indentation}} and {{cmd|noindentation}}
* <code>''first'' next</code>: turn indentation of first paragraph on/off. Can be overridden by environments with <code>indentnext=yes/no/auto</code>.
* <code>odd even</code>: indent odd/even lines in \obeylines scopes
* <code>normal</code>: what does this do?the globally defined size of indent. Useful when used as the values of the `indenting` key of different environments.
== Setting up indentation after an environment ==
</context>
{{Getting started navbox}}[[Category:Basics]]
419

edits