Difference between revisions of "Command/definedelimitedtext"
< Command
Jump to navigation
Jump to search
m (Correct syntax synopsis) |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
+ | == [[Help:Reference|Syntax]] (autogenerated)] == | ||
+ | <syntax>definedelimitedtext</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
− | <td colspan="2" class="cmd">\definedelimitedtext<span class="first" >[...]</span><span class="second" style="color:red;">[...]</span></td> | + | <td colspan="2" class="cmd">\definedelimitedtext<!-- |
+ | --><span class="first" >[...]</span><!-- | ||
+ | --><span class="second" style="color:red;">[...]</span><!-- | ||
+ | --><span class="third" style="color:red;">[...,...=...,...]</span><!-- | ||
+ | --></td> | ||
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
Line 16: | Line 22: | ||
<td class="cmd" style="color:red">[...]</td> | <td class="cmd" style="color:red">[...]</td> | ||
<td>''delimitedtext to inherit from''</td> | <td>''delimitedtext to inherit from''</td> | ||
+ | </tr> | ||
+ | <tr valign="top" class="third"> | ||
+ | <td class="cmd" style="color:red">[...,...=...,...]</td> | ||
+ | <td>see {{cmd|setupdelimitedtext}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 26: | Line 36: | ||
== Example == | == Example == | ||
− | <context source="yes"> | + | <context mode=mkiv source="yes"> |
− | % | + | % mode=mkiv |
− | \setuppapersize[ | + | |
+ | \setuppapersize[A6] | ||
+ | |||
+ | Here come the delimited texts! | ||
+ | |||
+ | \setupquotation[color=red] | ||
+ | \startquotation | ||
+ | Plain quotation | ||
+ | \stopquotation | ||
− | % | + | % Definition inherits, followed by setting up |
− | \ | + | \definedelimitedtext[qone][quotation] |
+ | \setupdelimitedtext[qone][left=«] | ||
− | + | \startqone | |
− | \ | + | Inheritance followed by setup |
+ | \stopqone | ||
− | % | + | % Definition inherits and sets up all in one step |
− | \ | + | \definedelimitedtext[qtwo][quotation][right=»] |
− | + | \startqtwo | |
− | + | Inheritance simultaneous with setup | |
− | + | \stopqtwo | |
− | |||
− | |||
− | + | The last form does not work in the MkIV on the wiki (\contextversionnumber), | |
− | + | but it works with ConTeXt 201200419 23:18 MkIV. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</context> | </context> | ||
== See also == | == See also == | ||
* {{cmd|setupdelimitedtext}} | * {{cmd|setupdelimitedtext}} | ||
+ | * [[source:core-mis.mkii|core-mis.mkii]], {{src|typo-del.mkiv}} | ||
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == | ||
Line 62: | Line 74: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Delimited text|definedelimitedtext]] |
Latest revision as of 21:43, 10 October 2019
\definedelimitedtext
Syntax (autogenerated)]
\definedelimitedtext[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setupdelimitedtext |
Syntax
\definedelimitedtext[...][...][...,...=...,...] | |
[...] | name |
[...] | delimitedtext to inherit from |
[...,...=...,...] | see \setupdelimitedtext |
Description
Define a new kind of delimited text (usually a quotation or blockquote) with an associated style.
Example
% mode=mkiv \setuppapersize[A6] Here come the delimited texts! \setupquotation[color=red] \startquotation Plain quotation \stopquotation % Definition inherits, followed by setting up \definedelimitedtext[qone][quotation] \setupdelimitedtext[qone][left=«] \startqone Inheritance followed by setup \stopqone % Definition inherits and sets up all in one step \definedelimitedtext[qtwo][quotation][right=»] \startqtwo Inheritance simultaneous with setup \stopqtwo The last form does not work in the MkIV on the wiki (\contextversionnumber), but it works with ConTeXt 201200419 23:18 MkIV.
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: