Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-17 Thread Taco Hoekwater


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
___
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
___


Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-17 Thread Sanjoy Mahajan
Taco Hoekwater t...@elvenkind.com wrote:

 ...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
___
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
___


Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-16 Thread Sanjoy Mahajan
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
___
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
___


[NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-12 Thread Sanjoy Mahajan
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
___
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
___


Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-12 Thread Peter Rolf
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
 ___
 

___
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
___


Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-12 Thread Taco Hoekwater


Sanjoy Mahajan wrote:
 What's the right way to workaround the following interaction between
 \setupdelimitedtext and TeX's paragraph building rules? 

Adding a newline, I think.

Best wishes,
Taco
___
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
___


Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-12 Thread Peter Rolf
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
 ___
 

___
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
___