Difference between revisions of "Command/definestartstop"

From Wiki
Jump to navigation Jump to search
(remove obsolete manual syntax table, add autosyntax for setup)
 
Line 6: Line 6:
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>definestartstop</syntax>
 
<syntax>definestartstop</syntax>
 
+
<syntax>setupstartstop</syntax>
== [[Help:Reference|Syntax]] ==
 
<syntax>definestartstop</syntax>
 
 
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
  <tr>
 
    <td colspan="2" class="cmd">\definestartstop<span class="first" >[...]</span><span class="second" >[...,...=...,...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:before|before]]</td>
 
    <td>[[Command/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:after|after]]</td>
 
    <td>[[Command/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:style|style]]</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 valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:commands|commands]]</td>
 
    <td>[[Command/value:command|command]] </td>
 
  </tr>
 
</table>
 
  
  

Latest revision as of 08:58, 27 January 2020

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