Difference between revisions of "Command/definestartstop"
< Command
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: | ||
− | |||
− | |||
{{Reference | {{Reference | ||
|name=definestartstop | |name=definestartstop | ||
Line 6: | Line 4: | ||
}} | }} | ||
− | == [[Help:Reference|Syntax]] == | + | == [[Help:Reference|Syntax]] (autogenerated) == |
− | < | + | <syntax>definestartstop</syntax> |
− | + | <syntax>setupstartstop</syntax> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
Line 37: | Line 12: | ||
Used to define block level commands. | Used to define block level commands. | ||
+ | == Example == | ||
Example: Long Quotations | Example: Long Quotations | ||
− | < | + | <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]}] | ||
− | + | %Now the following commands are available: \startExtract and \stopExtract | |
− | + | \starttext | |
+ | The extract from D.Knuth | ||
+ | \startExtract \input knuth \stopExtract | ||
+ | \stoptext | ||
+ | </context> | ||
+ | == See also == | ||
+ | <!-- something like {{cmd|goto}} --> | ||
− | == | + | == Help from ConTeXt-Mailinglist/Forum == |
− | + | All issues with: | |
− | + | {{Forum|{{SUBPAGENAME}}}} | |
− | |||
− | |||
− | [[Category: | + | [[Category:Command/Miscellaneous|definestartstop]] |
Latest revision as of 08:58, 27 January 2020
\definestartstop
Syntax (autogenerated)
\definestartstop[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setupstartstop |
\setupstartstop[...,...][...=...,...] | |
[...,...] | name |
before | command |
after | command |
inbetween | command |
setups | name |
left | command |
right | command |
style | style command |
color | color |
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: