Difference between revisions of "Command/definestartstop"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Category Miscellaneous. Narrower example)
Line 39: Line 39:
  
 
<context source="yes">
 
<context source="yes">
 +
\setuppapersize[A5]
 +
 
\defineblank[ExtractDistance][3pt]
 
\defineblank[ExtractDistance][3pt]
 
\definestartstop[Extract][
 
\definestartstop[Extract][
Line 64: Line 66:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definestartstop]]
+
[[Category:Command/Miscellaneous|definestartstop]]

Revision as of 14:18, 2 July 2012

\definestartstop

Syntax

\definestartstop[...][...,...=...,...]
[...] name
before command
after command
style normal bold slanted boldslanted type cap small ... command
commands command


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: