Long quotations and extracts

From ConTeXt wiki
Revision as of 09:37, 5 October 2008 by Wolfgang Schuster (talk | contribs) (Define long quotations with \definedelimitedtext)
Jump to navigationJump to search

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]}]