[NTG-context] Pull quotes

mathew meta at pobox.com
Thu Apr 28 18:27:39 CEST 2011


On Wed, Apr 27, 2011 at 15:08, Pontus Lurcock <pont at talvi.net> wrote:
> Why not just put it in a float?

OK, after some fiddling around, a combination of a framed text in a
float seems to work.

Definitions:

\definefloat[pullquote][pullquotes] % Define a new type of float
\setupcaption[pullquote][location=none] % Set it to have no captions
\defineframedtext[pullquote][frame=off] % Define a new type of framed
text with no visible frame

Usage:

\placepullquote[right]{}{
\startpullquote[width=4cm]
\tfc “All work and no play makes Jack a dull boy.”
\stoppullquote}

The {} in the \placepullquote is the text for the caption, which in
this case is set up to be invisible. Obviously you could use the
caption feature to cite the source of quotations.

Added to the wiki.


mathew
-- 
<URL:http://www.pobox.com/~meta/>


More information about the ntg-context mailing list