Difference between revisions of "Command/indentation"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \indentation")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
<cd:command category="whitespace" coreprimitive="yes" file="spac-hor.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-indent.xml" level="document" name="indentation" variantnumber="1"></cd:command>
 
<cd:command category="whitespace" coreprimitive="yes" file="spac-hor.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-indent.xml" level="document" name="indentation" variantnumber="1"></cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>Force indentation on one paragraph. (Do not confuse with the deprecated {{cmd|indenting}}, which is a predecessor of {{cmd|setupindenting}}.
+
<cd:description>Force indentation on one paragraph. (Not to be confused with the deprecated command <tt>\indenting</tt>, which was the predecessor of {{cmd|setupindenting}}).
  
This is relevant if the setting <code>indentnext=yes</code> is used in {{cmd|setupheads}}, {{cmd|setupitemgroup}}, etc. </cd:description>
+
Besides when indentation is not 100% enforced due to {{cmd|setupindenting}} settings, this command is also relevant if the <code>indentnext=yes</code> is used in {{cmd|setupheads}}, {{cmd|setupitemgroup}}, etc. </cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 
\setupindenting[yes, 1em, first]
 
\setupindenting[yes, 1em, first]
 
\section{First section}
 
\section{First section}
\type{\setupindenting[first]} is overridden by the \type{[indentnext=no]}  
+
\type{\setupindenting[first]} is overridden by the \type{[indentnext=no]}
 
     property of section heads. \par
 
     property of section heads. \par
 
two\par
 
two\par
Line 17: Line 17:
  
 
\section{Second section}
 
\section{Second section}
\indentation \type{\indentation} overrides the \type{[indentnext=no]}  
+
\indentation \type{\indentation} overrides the \type{[indentnext=no]}
 
     property of section heads. \par
 
     property of section heads. \par
 
two\par
 
two\par

Latest revision as of 14:25, 17 November 2021


\indentation

Summary

The command \indentation forces indentation of a paragraph

Description

Force indentation on one paragraph. (Not to be confused with the deprecated command \indenting, which was the predecessor of \setupindenting).

Besides when indentation is not 100% enforced due to \setupindenting settings, this command is also relevant if the indentnext=yes is used in \setupheads, \setupitemgroup, etc.

Examples

Example 1

\setupindenting[yes, 1em, first]
\section{First section}
\type{\setupindenting[first]} is overridden by the \type{[indentnext=no]}
    property of section heads. \par
two\par
three\par

\section{Second section}
\indentation \type{\indentation} overrides the \type{[indentnext=no]}
    property of section heads. \par
two\par
three\par

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: