Difference between revisions of "Command/ delimitedtext"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>delimitedtext</i>")
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\<i>delimitedtext</i></tt> are used for ...
+
The instances of  <tt>\<i>delimitedtext</i></tt> add markup around a (usually short) block of text.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 10: Line 10:
 
   </cd:sequence>
 
   </cd:sequence>
 
<cd:instances>
 
<cd:instances>
     <cd:constant value="quotation"></cd:constant>
+
     <cd:constant value="quotation">puts double quotation marks around the text inside the braces. The type of the quotation marks depends on the language setting</cd:constant>
     <cd:constant value="quote"></cd:constant>
+
     <cd:constant value="quote">Quote text using the 'single quote' style of the current language.</cd:constant>
 
     <cd:constant value="blockquote"></cd:constant>
 
     <cd:constant value="blockquote"></cd:constant>
 
     <cd:constant value="speech"></cd:constant>
 
     <cd:constant value="speech"></cd:constant>
Line 31: Line 31:
 
</cd:description>
 
</cd:description>
 
<cd:examples>
 
<cd:examples>
<!--  command example(s)
 
 
<cd:example title="">
 
<cd:example title="">
 +
<context source="yes">
 +
\language[en]
 +
\quotation{Hello world!}
 +
 +
\language[de]
 +
\quotation{Hello world!} 
 +
</context>
 +
</cd:example>
 +
<cd:example title="">
 +
<context source="yes">
 +
Getting quotation marks right can be quite \quote{hard}.
 +
</context>
 
</cd:example>
 
</cd:example>
-->
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>
Line 55: Line 65:
 
<cd:source file="typo-del.mkiv" originator="system"></cd:source>  
 
<cd:source file="typo-del.mkiv" originator="system"></cd:source>  
 
<cd:wikipage originator="system" page="Category:Language"></cd:wikipage>  
 
<cd:wikipage originator="system" page="Category:Language"></cd:wikipage>  
 +
<cd:wikipage page="Quotes"></cd:wikipage>
 +
<cd:wikipage page="Basics#Basics_of_ConTeXt_text_formatting|Basics of text formatting"></cd:wikipage>
 
</cd:seealso>
 
</cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 08:30, 21 August 2020


\delimitedtext

Summary

The instances of \delimitedtext add markup around a (usually short) block of text.

Instances

\quotationputs double quotation marks around the text inside the braces. The type of the quotation marks depends on the language setting
\quoteQuote text using the 'single quote' style of the current language.
\blockquote
\speech
\aside

Settings instance

\DELIMITEDTEXT[...]{...}
[...]language
{...}content

Description

Examples

Example 1

\language[en]
\quotation{Hello world!}

\language[de]
\quotation{Hello world!}

Example 2

Getting quotation marks right can be quite \quote{hard}.

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: