Difference between revisions of "Quotes"
(Narrower example) |
(Stuff.) |
||
Line 6: | Line 6: | ||
Quotation marks and formatting are language dependent. | Quotation marks and formatting are language dependent. | ||
− | ; single quotes : | + | ; single quotes : {{cmd|quote|{some text}}} |
− | ; double quotes : | + | ; double quotes : {{cmd|quotation|{some text}}} |
− | ; long quote sections : try | + | ; long quote sections : try {{cmd|startquote}} or {{cmd|startquotation}} etc. |
Line 36: | Line 36: | ||
right={\symbol[rightquotation]}] | right={\symbol[rightquotation]}] | ||
− | + | \quotation{A long quotation in which one character says, | |
\quotation{Eh? What am I supposed to say? Something like, \quotation | \quotation{Eh? What am I supposed to say? Something like, \quotation | ||
− | {Quotations in this sentance are nested}?}} | + | {Quotations in this sentance are nested}?}} |
</context> | </context> | ||
Line 46: | Line 46: | ||
The following may serve as a guide to others in formatting long quotations or extracts: | The following may serve as a guide to others in formatting long quotations or extracts: | ||
− | ===Long quotations defined with | + | ===Long quotations defined with {{cmd|definestartstop}}=== |
In body text: | In body text: | ||
Line 79: | Line 79: | ||
</texcode> | </texcode> | ||
− | ===Long quotations defined with | + | ===Long quotations defined with {{cmd|definedelimitedtext}} === |
In body text: | In body text: | ||
Line 109: | Line 109: | ||
</texcode> | </texcode> | ||
− | ==Example using | + | ==Example using {{cmd|setupdelimitedtext}}== |
Here is how to get indented quotations set in small type: | Here is how to get indented quotations set in small type: | ||
Line 122: | Line 122: | ||
</texcode> | </texcode> | ||
− | The | + | The {{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 nine-point text. |
− | Using | + | Using {{code|1=style=small}} does not work as well as <code>style={\setupbodyfont[9pt]}</code> or <code>style={\setupbodyfont[10pt]}</code>, because {{code|small}} shrinks only the font size but not the linespacing. |
Revision as of 13:18, 6 July 2012
< Visuals
Contents
Basic commands
Don't try to type quotation marks, but use logical markup! Quotation marks and formatting are language dependent.
- single quotes
- \quote{some text}
- double quotes
- \quotation{some text}
- long quote sections
- try \startquote or \startquotation etc.
Nested quotations
The following commands can be used to automatically nest double and single quotes.
\setuppapersize[A5] \setupdelimitedtext [quotation] [1] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] \setupdelimitedtext [quotation] [2] [left={\symbol[leftquote]}, right={\symbol[rightquote]}] \setupdelimitedtext [quotation] [3] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] \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}?}}
Long quotations and extracts
The following may serve as a guide to others in formatting long quotations or extracts:
Long quotations defined with \definestartstop
In body text:
\defineblank[extractdistance][3pt] \definestartstop[extract][ before={\blank[extractdistance] % [extractdistance,force] causes spurious % overfull \hbox warnings \setupnarrower[left=1.5pc,right=1.5pc] \startnarrower[left,right] \noindent}, after={\stopnarrower \blank[extractdistance] \indenting[yes]}]
In footnotes:
\defineblank[footenoteextractdistance][2.7pt] \definestartstop[fnextract][ before={\blank[footenoteextractdistance] \setupnarrower[left=1.5pc,right=1.5pc] \startnarrower[left,right] \noindent}, after={\stopnarrower \blank[footenoteextractdistance] \indenting[yes]}]
Long quotations defined with \definedelimitedtext
In body text:
\defineblank[extractdistance][3pt] \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [spacebefore=extractdistance, leftmargin=1.5pc, before={\setupindenting[next]}]
In footnotes:
\defineblank[footenoteextractdistance][2.7pt] \definedelimitedtext[fnextract][blockquote] \setupdelimitedtext [fnextract] [spacebefore=footenoteextractdistance, leftmargin=1.5pc, before={\setupindenting[next]}]
Example using \setupdelimitedtext
Here is how to get indented quotations set in small type:
\setupdelimitedtext[blockquote][style={\setupbodyfont[9pt]}] Hello \startblockquote \input knuth \par \stopblockquote Hello
The \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 nine-point text.
Using style=small
does not work as well as style={\setupbodyfont[9pt]}
or style={\setupbodyfont[10pt]}
, because small
shrinks only the font size but not the linespacing.