Difference between revisions of "Shaped paragraphs"

From Wiki
Jump to navigation Jump to search
m (→‎Paragraphs with hanging indention: Reduced width of page for prettier output)
(Indentnext)
Line 12: Line 12:
 
   after=\stopnarrower]
 
   after=\stopnarrower]
  
\setuphead[section][indentnext=first]
+
\setuphead[section][indentnext=yes]
 
\section{Test}
 
\section{Test}
 
\startexdent
 
\startexdent

Revision as of 18:19, 5 April 2010

< Visuals |

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