ousia / from-pandoc-to-context

Environment to parse XHTML from pandoc with ConTeXt
http://www.from-pandoc-to-context.tk
GNU General Public License v2.0
13 stars 3 forks source link

blockquote styling #8

Closed juh2 closed 9 years ago

juh2 commented 9 years ago

Blockquote are mapped like this:

\startxmlsetups xml:blockquote 
     \blank\startnarrow\xmlflush{#1}\stopnarrow\blank
\stopxmlsetups

I don't see how to style this in the styling environment.

AFAICS there is no ConTeXt equivalent to \begin{quote}\end{quote} in LaTeX. So what can be done?

ousia commented 9 years ago

http://wiki.contextgarden.net/Command/setupnarrower is the ConTeXt equivalent.

What do you need for block quotes?

juh2 commented 9 years ago

As there is a vertical space before and after the quote I'd remove identation of the first line in the first paragraph.

ousia commented 9 years ago

Just added the element (commit 7bdb51c04b881e1b377747e61411d856bdbebd7c) :

You may want to set it up with the following code:

\setupstartstop
    [blockquote]
    [before={\startnarrow\setupindenting[yes,next]},
     after={\stopnarrow}]
ousia commented 9 years ago

I close this issue, @juh2.

Reopen if you have problems handling the <blockquote> element in ConTeXt.