ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupdelimitedtext: linespacing in final quoted paragraph
@ 2008-12-12 14:39 Sanjoy Mahajan
  2008-12-12 14:45 ` Taco Hoekwater
  2008-12-12 15:11 ` Peter Rolf
  0 siblings, 2 replies; 7+ messages in thread
From: Sanjoy Mahajan @ 2008-12-12 14:39 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-12 14:39 setupdelimitedtext: linespacing in final quoted paragraph Sanjoy Mahajan
@ 2008-12-12 14:45 ` Taco Hoekwater
  2008-12-16 21:46   ` Sanjoy Mahajan
  2008-12-12 15:11 ` Peter Rolf
  1 sibling, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2008-12-12 14:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-12 14:39 setupdelimitedtext: linespacing in final quoted paragraph Sanjoy Mahajan
  2008-12-12 14:45 ` Taco Hoekwater
@ 2008-12-12 15:11 ` Peter Rolf
  2008-12-12 16:08   ` Peter Rolf
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2008-12-12 15:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-12 15:11 ` Peter Rolf
@ 2008-12-12 16:08   ` Peter Rolf
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Rolf @ 2008-12-12 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-12 14:45 ` Taco Hoekwater
@ 2008-12-16 21:46   ` Sanjoy Mahajan
  2008-12-17  8:54     ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Sanjoy Mahajan @ 2008-12-16 21:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-16 21:46   ` Sanjoy Mahajan
@ 2008-12-17  8:54     ` Taco Hoekwater
  2008-12-17 18:36       ` Sanjoy Mahajan
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2008-12-17  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setupdelimitedtext: linespacing in final quoted paragraph
  2008-12-17  8:54     ` Taco Hoekwater
@ 2008-12-17 18:36       ` Sanjoy Mahajan
  0 siblings, 0 replies; 7+ messages in thread
From: Sanjoy Mahajan @ 2008-12-17 18:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater <taco@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-17 18:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 14:39 setupdelimitedtext: linespacing in final quoted paragraph Sanjoy Mahajan
2008-12-12 14:45 ` Taco Hoekwater
2008-12-16 21:46   ` Sanjoy Mahajan
2008-12-17  8:54     ` Taco Hoekwater
2008-12-17 18:36       ` Sanjoy Mahajan
2008-12-12 15:11 ` Peter Rolf
2008-12-12 16:08   ` Peter Rolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).