Indent

From Wiki
Revision as of 06:36, 15 April 2011 by DecebalICT (talk | contribs) (Created page with "On this page I will put some info about using indent. Standard no indentation is used: <context source=yes> \starttext \input knuth \stoptext </context> When you want indent...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

On this page I will put some info about using indent.

Standard no indentation is used:

\starttext

\input knuth

\stoptext


When you want indentation you use:

\setupindenting[yes,medium]

\starttext

\input knuth

\stoptext


When you do not want indentation on the first paragraph you use:

\setupindenting[yes,medium,next]

\starttext

\input knuth

\stoptext


The only problem is that the paragraph after a blank is not seen as a first paragraph:

\setupindenting[yes,medium,next]

\starttext

\input knuth

\blank

\input knuth

\stoptext


This can be solved in the following way:

\setupindenting[yes,medium,next]

\usemodule[fancybreak]

\definefancybreak[myblank][indentnext=no]

\starttext

\input knuth

\myblank

\input knuth

\stoptext