setupdelimitedtext: linespacing in final quoted paragraph
What's the right way to workaround the following interaction between \setupdelimitedtext and TeX's paragraph building rules? In the example below, the last paragraph from knuth.tex has the linespacing of the regular text set in 12pt, rather than the intended, narrower linespacing of 8pt text. Uncommenting the negligible vertical space (\vskip1sp) fixes the discrepancy. Is it the best workaround? I also tried setting after={\vskip1sp} in the \setupdelimitedtext, but it had no effect. I'm using 2008.10.31, MkII. Thanks for any suggestions, which I'll wikify if the solution is interesting to more than just me. \setupdelimitedtext[blockquote][style={\switchtobodyfont[8pt]}] \starttext \startblockquote \input knuth %\vskip1sp \stopblockquote \input tufte \stoptext -Sanjoy
Thanks for the responses. I've wikified a short example, putting it at end of this page: http://wiki.contextgarden.net/Long_quotations_and_extracts Feel free to move or improve. Will LuaTeX's paragraph builder have the same restriction -- perhaps for compatability -- that linespacing be constant throughout the paragraph? -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb
Sanjoy Mahajan wrote:
Thanks for the responses. I've wikified a short example, putting it at end of this page:
http://wiki.contextgarden.net/Long_quotations_and_extracts
Feel free to move or improve.
Will LuaTeX's paragraph builder have the same restriction -- perhaps for compatability -- that linespacing be constant throughout the paragraph?
Maybe not (I am considering a mode where parameter changes are saved in nodes), but even so, that does not remove the need to insert \par's inbetween paragraphs. Cheers, Taco
Taco Hoekwater
...that does not remove the need to insert \par's in between paragraphs.
Right, although I think that the \par, or blank line, should go after the \stopdelimitedtext in some cases. I was imagining (and using) quotations within a single larger paragraph, for example: Blah, blah, blah says: Ideas A, B and C. But those ideas are nonsense. where the "Ideas A, B, and C." are indeed a paragraph but internal to the single surrounding paragraph, like a displayed equation would be. Then it could be typeset: Blah, blah, blah says: \startblockquote Ideas A, B and C. \stopblockquote But those ideas are nonsense. On to the next paragraph... Rather, it could be typeset that way if the TeX paragraph builder didn't have the constant linespacing restriction (or maybe with \vadjust). -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb
Sanjoy Mahajan schrieb:
What's the right way to workaround the following interaction between \setupdelimitedtext and TeX's paragraph building rules? In the example below, the last paragraph from knuth.tex has the linespacing of the regular text set in 12pt, rather than the intended, narrower linespacing of 8pt text.
Uncommenting the negligible vertical space (\vskip1sp) fixes the discrepancy. Is it the best workaround? I also tried setting after={\vskip1sp} in the \setupdelimitedtext, but it had no effect.
I'm using 2008.10.31, MkII. Thanks for any suggestions, which I'll wikify if the solution is interesting to more than just me.
\setupdelimitedtext[blockquote][style={\switchtobodyfont[8pt]}]
\starttext \startblockquote \input knuth
add a \par or an empty single line to make the paragraph builder happy.. the problem only occurs, when you insert the text from an external file. Best wishes, Peter
%\vskip1sp \stopblockquote \input tufte
\stoptext
-Sanjoy ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Peter Rolf schrieb:
Sanjoy Mahajan schrieb:
What's the right way to workaround the following interaction between \setupdelimitedtext and TeX's paragraph building rules? In the example below, the last paragraph from knuth.tex has the linespacing of the regular text set in 12pt, rather than the intended, narrower linespacing of 8pt text.
Uncommenting the negligible vertical space (\vskip1sp) fixes the discrepancy. Is it the best workaround? I also tried setting after={\vskip1sp} in the \setupdelimitedtext, but it had no effect.
I'm using 2008.10.31, MkII. Thanks for any suggestions, which I'll wikify if the solution is interesting to more than just me.
\setupdelimitedtext[blockquote][style={\switchtobodyfont[8pt]}]
\starttext \startblockquote \input knuth
add a \par or an empty single line to make the paragraph builder happy.. the problem only occurs, when you insert the text from an external file. ^^^^ *wrong*
just had an example where the text was embedded...
Best wishes, Peter
%\vskip1sp \stopblockquote \input tufte
\stoptext
-Sanjoy ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Peter Rolf
-
Sanjoy Mahajan
-
Taco Hoekwater