Difference between revisions of "Shaped paragraphs"
(wikified mail from hans) |
m |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | = Paragraphs with hanging indention = | |
− | |||
− | |||
If you want to indent paragraphs from the second line on, you can use this bit from Hans Hagen: | If you want to indent paragraphs from the second line on, you can use this bit from Hans Hagen: | ||
Line 12: | Line 10: | ||
after=\stopnarrower] | after=\stopnarrower] | ||
+ | \setuphead[section][indentnext=yes] | ||
+ | \section{Test} | ||
\startexdent | \startexdent | ||
\input knuth \endgraf | \input knuth \endgraf | ||
Line 21: | Line 21: | ||
<context> | <context> | ||
\starttext | \starttext | ||
− | + | \setuplayout[scale=0.8,width=13cm] | |
\definestartstop | \definestartstop | ||
[exdent] | [exdent] | ||
Line 27: | Line 27: | ||
after=\stopnarrower] | after=\stopnarrower] | ||
+ | \setuphead[section][indentnext=first] | ||
+ | \section{Test} | ||
\startexdent | \startexdent | ||
\input knuth \endgraf | \input knuth \endgraf | ||
Line 33: | Line 35: | ||
\stoptext | \stoptext | ||
</context> | </context> | ||
+ | |||
+ | [[Category:Basics]] |
Latest revision as of 15:27, 8 June 2020
Paragraphs with hanging indention
If you want to indent paragraphs from the second line on, you can use this bit from Hans Hagen:
\starttext \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \setuphead[section][indentnext=yes] \section{Test} \startexdent \input knuth \endgraf \stopexdent \stoptext