Difference between revisions of "Command/definestartstop"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
(9 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definestartstop</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 +
<syntax>definestartstop</syntax>
 +
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
Line 14: Line 19:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:before|before]]</td>
+
     <td class="cmd">[[Command/keyword:before|before]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:after|after]]</td>
+
     <td class="cmd">[[Command/keyword:after|after]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:style|style]]</td>
+
     <td class="cmd">[[Command/keyword:style|style]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small|small]] ... [[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small|small]] ... [[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:commands|commands]]</td>
+
     <td class="cmd">[[Command/keyword:commands|commands]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 39: Line 44:
  
 
<context source="yes">
 
<context source="yes">
 +
\setuppapersize[A5]
 +
 
\defineblank[ExtractDistance][3pt]
 
\defineblank[ExtractDistance][3pt]
 
\definestartstop[Extract][
 
\definestartstop[Extract][
Line 58: Line 65:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definestartstop]]
+
[[Category:Command/Miscellaneous|definestartstop]]

Revision as of 14:39, 15 November 2019

\definestartstop

Syntax (autogenerated)

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


Syntax

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


\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: