Difference between revisions of "Command/indentation"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \indentation") |
|||
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. ( | + | <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> | This is relevant if the setting <code>indentnext=yes</code> is used in {{cmd|setupheads}}, {{cmd|setupitemgroup}}, etc. </cd:description> | ||
Line 11: | Line 11: | ||
\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 |
Revision as of 14:23, 17 November 2021
Contents
\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).
This is relevant if the setting 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
- spac-hor.mkiv
- \setupindenting
- \noindentation to explicitly disable indenting of a paragraph.