Changes

Jump to navigation Jump to search
1,017 bytes added ,  19:01, 24 March 2013
Modified the example setting in small type.
Quotation marks and formatting are language dependent.
; single quotes : <{{cmd>|quote</cmd><tt>|{some text}</tt>}}; double quotes : <{{cmd>|quotation</cmd><tt>|{some text}</tt>}}; long quote sections : try <{{cmd>|startquote</cmd> }} or <{{cmd>|startquotation</cmd> }} etc.
The following commands can be used to automatically nest double and single quotes.
<texcodecontext source="yes">\setuppapersize[A5] 
\setupdelimitedtext
[quotation]
[left={\symbol[leftquotation]},
right={\symbol[rightquotation]}]
</texcode>
<texcode>Testing, \quotation{A long quotation in which one character says,
\quotation{Eh? What am I supposed to say? Something like, \quotation
{Quotations in this sentence sentance are nested}?}} testing</context>  ==Nested quotations in MkIV== <context source="yes">\enableregime[utf] \setuplanguage[cz][leftquotation=„, 1 rightquotation=“, 2 leftquote=‚, 3 rightquote=‘] \mainlanguage[cz] \starttextFollowing example is not correct. Typography rules for Czech language for quotes \quotation{of text in quotes define \quotation{nested inner} quotes}.</texcode> And now correct version. Typography rules for Czech language for quotes\quotation{of text in quotes define to \quote{nested inner} quotes}.
<context>\setupdelimitedtext [quotation:1][left={\symbol[leftquotation]},right={\symbol[rightquotation]}] \setupdelimitedtext[1quotation:2] [left={\symbol[leftquotationleftquote]}, right={\symbol[rightquotationrightquote]}] Automatic nesting. Typography rules for Czech language for quotes \quotation{of text in quotes define to \quotation{nested inner} quotes}.
\setupdelimitedtext [quotation:1][left=»,right=«] \setupdelimitedtext[quotation:2] [left={\symbol[leftquote]}, right={\symbol[rightquote]}]
Another type of quotes now. Typography rules for Czech language for French quotes \setupdelimitedtext [quotation] [3] [left={of text in quotes define to \symbol[leftquotation]quotation{nested inner} quotes},. right={\symbol[rightquotation]}]stoptext
Testing, \quotation{A long quotation in which one character says,
\quotation{Eh? What am I supposed to say? Something like, \quotation
{Quotations in this sentance are nested}?}} testing, 1, 2, 3.
</context>
 
==Long quotations and extracts==
The following may serve as a guide to others in formatting long quotations or extracts:
===Long quotations defined with <{{cmd>|definestartstop</cmd>}}===
In body text:
\definestartstop[extract][
before={\blank[extractdistance] %[extractdistance,force] causes spurious % overfull \hbox warnings
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]
</texcode>
===Long quotations defined with <{{cmd>|definedelimitedtext</cmd>}} ===
In body text:
</texcode>
==Example using <{{cmd>|setupdelimitedtext</cmd>}}==
Here is how to get indented quotations set in small type:
<texcodecontext source="yes">%\setupdelimitedtext[blockquote][style={\setupbodyfont[9ptsmall]}]\setupdelimitedtext[blockquote][style=\slx,before={\setupinterlinespace[line=2.4ex]}]
Hello
\startblockquote
\input knuth
%\par
\stopblockquote
Hello
</texcodecontextThe {{cmd|par}} inside the block quotation keeps TeX's paragraph builder happy. Otherwise the last paragraph in the block quotation gets the wider linespacing of the outside environment rather than the narrower linespacing appropriate to the smaller text; Alternately, one can add <code>before={\setupinterlinespace}</code>, as shown above.
The Using {{code|1=style=small}} does not work as well as <cmdcode>parstyle={\setupbodyfont[small]}</cmdcode> inside the block quotation keeps TeX's paragraph builder happy. Otherwise the last paragraph in or <code>style={\setupbodyfont[9pt]}</code>, because {{code|small}} shrinks only the block quotation gets font size but not the wider linespacing of . Alternately, by using <code>before={\setupinterlinespace}</code>, one can then use commands such as <code>style=\tfx</code>, setting the outside environment size relatively rather than the narrower linespacing appropriate to nine-point textabsolutely, advantageous for nestling and for inclusion in footnotes, for example.
Using <code>style=small</code> does not work as well as <code>style={\setupbodyfont[9pt]{Getting started navbox}</code> or <code>style={\setupbodyfont[10pt]}</code>, because <code>small</code> shrinks only the font size but not the linespacing.
148

edits

Navigation menu