Command/definedelimitedtext

From Wiki
Jump to navigation Jump to search

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