Command/definestartstop

From Wiki
Jump to navigation Jump to search

\definestartstop

Syntax (autogenerated)

\definestartstop[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupstartstop


\setupstartstop[...,...][...=...,...]
[...,...]name
beforecommand
aftercommand
inbetweencommand
setupsname
leftcommand
rightcommand
stylestyle command
colorcolor



Description

Used to define block level commands.

Example

Example: Long Quotations

\setuppapersize[A5]

\defineblank[ExtractDistance][3pt]
\definestartstop[Extract][
   style=slanted,
   before={\blank[ExtractDistance]
      \setupnarrower[left=1.5pc,right=1.5pc]
      \startnarrower[left,right]
      \noindent},
   after={\stopnarrower
      \blank[ExtractDistance]
      \indenting[next]}]
%Now the following commands are available: \startExtract and \stopExtract

\starttext
The extract from D.Knuth
\startExtract \input knuth \stopExtract
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: