Difference between revisions of "Command/definestartstop"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (cleanup)
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 25: Line 23:
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[[Reference/en/keyword:style|style]]</td>
 
     <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>
+
     <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>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 37: Line 35:
 
Used to define block level commands.
 
Used to define block level commands.
  
 +
== Example ==
 
Example: Long Quotations
 
Example: Long Quotations
  
<pre>
+
<texcode>
 
\defineblank[ExtractDistance][3pt]
 
\defineblank[ExtractDistance][3pt]
 
\definestartstop[Extract][
 
\definestartstop[Extract][
Line 50: Line 49:
 
       \blank[ExtractDistance]
 
       \blank[ExtractDistance]
 
       \indenting[next]}]
 
       \indenting[next]}]
</pre>
+
</texcode>
 
 
Then the following commands are available: <cmd>\startExtract</cmd> and <cmd>\stopExtract</cmd>
 
 
 
  
== Example ==
+
Then the following commands are available: <tt>\startExtract</tt> and <tt>\stopExtract</tt>
<!-- Please fill in an example if you can -->
 
  
 
== See also ==
 
== See also ==

Revision as of 15:34, 11 April 2010

\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

\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]}]

Then the following commands are available: \startExtract and \stopExtract

See also