Difference between revisions of "Command/definestartstop"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
(remove obsolete manual syntax table, add autosyntax for setup)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=definestartstop
 
|name=definestartstop
Line 6: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>definestartstop</syntax>
  <tr>
+
<syntax>setupstartstop</syntax>
    <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">[[Reference/en/keyword:before|before]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:after|after]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/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>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:commands|commands]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
  </tr>
 
</table>
 
  
  
Line 37: Line 12:
 
Used to define block level commands.
 
Used to define block level commands.
  
 +
== Example ==
 
Example: Long Quotations
 
Example: Long Quotations
  
<pre>
+
<context source="yes">
 +
\setuppapersize[A5]
 +
 
 
\defineblank[ExtractDistance][3pt]
 
\defineblank[ExtractDistance][3pt]
 
\definestartstop[Extract][
 
\definestartstop[Extract][
Line 50: Line 28:
 
       \blank[ExtractDistance]
 
       \blank[ExtractDistance]
 
       \indenting[next]}]
 
       \indenting[next]}]
</pre>
+
%Now the following commands are available: \startExtract and \stopExtract
  
Then the following commands are available: <cmd>\startExtract</cmd> and <cmd>\stopExtract</cmd>
+
\starttext
 +
The extract from D.Knuth
 +
\startExtract \input knuth \stopExtract
 +
\stoptext
 +
</context>
  
 +
== See also ==
 +
<!-- something like {{cmd|goto}} -->
  
== Example ==
+
== Help from ConTeXt-Mailinglist/Forum ==
<!-- Please fill in an example if you can -->
+
All issues with:
 
+
{{Forum|{{SUBPAGENAME}}}}
== See also ==
 
<!-- something like [[cmd:goto|\goto]] -->
 
  
[[Category:Reference/en|definestartstop]]
+
[[Category:Command/Miscellaneous|definestartstop]]

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: