ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to set \lineskiplimit-\maxdimen
@ 2010-03-11 11:09 Steffen Wolfrum
  2010-03-11 11:50 ` Peter Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2010-03-11 11:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi,

controlling the lineskip in the old-fashoined way "\lineskiplimit-\maxdimen" doesn' work in mkiv anymore!

Please have a look at the example below. Attached you may find the resulting PDFs, set with mkii resp. mkiv.

Steffen

---

\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]

\setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen

\setuplayout[grid=tolerant]

\definestartstop[quotetest]
[before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]

\starttext

\input tufte \par

\startquotetest

\input tufte \par

\stopquotetest

\stoptext


--------



[-- Attachment #2: mkiv.pdf --]
[-- Type: application/pdf, Size: 16919 bytes --]

[-- Attachment #3: mkii.pdf --]
[-- Type: application/pdf, Size: 15243 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: how to set \lineskiplimit-\maxdimen
  2010-03-11 11:09 how to set \lineskiplimit-\maxdimen Steffen Wolfrum
@ 2010-03-11 11:50 ` Peter Rolf
  2010-03-11 12:05   ` Steffen Wolfrum
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Rolf @ 2010-03-11 11:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 11.03.2010 12:09, schrieb Steffen Wolfrum:
> Hi,
> 
> controlling the lineskip in the old-fashoined way "\lineskiplimit-\maxdimen" doesn' work in mkiv anymore!
> 
> Please have a look at the example below. Attached you may find the resulting PDFs, set with mkii resp. mkiv.
> 
> Steffen
> 
> ---
> 
> \usetypescript[postscript]
> \definetypeface[postscript][rm][serif][times][default]
> 
> \setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen
> 
> \setuplayout[grid=tolerant]
> 
> \definestartstop[quotetest]
> [before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]
>
Hi Steffen,

this works, but the \startlocal...\stoplocal combination is not used
very often in 'the source' (so there must be a better way).

\definestartstop[quotetest]
[before={\startnarrower\startlocal\switchtobodyfont[8pt]\setupinterlinespace[line=16pt]\setupwhitespace[0pt]\setupindenting[0em,yes]},after=\stoplocal\stopnarrower]

best wishes,

Peter

> \starttext
> 
> \input tufte \par
> 
> \startquotetest
> 
> \input tufte \par
> 
> \stopquotetest
> 
> \stoptext
> 
> 
> --------
> 
> 
> 
> 
> 
> ___________________________________________________________________________________
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: how to set \lineskiplimit-\maxdimen
  2010-03-11 11:50 ` Peter Rolf
@ 2010-03-11 12:05   ` Steffen Wolfrum
  2010-03-11 14:08     ` Peter Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2010-03-11 12:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.03.2010 um 12:50 schrieb Peter Rolf:

> Am 11.03.2010 12:09, schrieb Steffen Wolfrum:
>> Hi,
>> 
>> controlling the lineskip in the old-fashoined way "\lineskiplimit-\maxdimen" doesn' work in mkiv anymore!
>> 
>> Please have a look at the example below. Attached you may find the resulting PDFs, set with mkii resp. mkiv.
>> 
>> Steffen
>> 
>> ---
>> 
>> \usetypescript[postscript]
>> \definetypeface[postscript][rm][serif][times][default]
>> 
>> \setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen
>> 
>> \setuplayout[grid=tolerant]
>> 
>> \definestartstop[quotetest]
>> [before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]
>> 
> Hi Steffen,
> 
> this works, but the \startlocal...\stoplocal combination is not used
> very often in 'the source' (so there must be a better way).
> 
> \definestartstop[quotetest]
> [before={\startnarrower\startlocal\switchtobodyfont[8pt]\setupinterlinespace[line=16pt]\setupwhitespace[0pt]\setupindenting[0em,yes]},after=\stoplocal\stopnarrower]
> 
> best wishes,
> 
> Peter


Hi Peter,


it looks like you answered to thread "how to setup local interlinespace" ;o)

Yes, this works now. But this ...
\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen}

... does not work as it worked in mkii.

Just set line=8pt and run mkiv, next set line=7pt and run mkiv.
See the problem?!

Steffen
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: how to set \lineskiplimit-\maxdimen
  2010-03-11 12:05   ` Steffen Wolfrum
@ 2010-03-11 14:08     ` Peter Rolf
  2010-03-11 14:16       ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Rolf @ 2010-03-11 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2276 bytes --]

Am 11.03.2010 13:05, schrieb Steffen Wolfrum:
> 
> Am 11.03.2010 um 12:50 schrieb Peter Rolf:
> 
>> Am 11.03.2010 12:09, schrieb Steffen Wolfrum:
>>> Hi,
>>>
>>> controlling the lineskip in the old-fashoined way "\lineskiplimit-\maxdimen" doesn' work in mkiv anymore!
>>>
>>> Please have a look at the example below. Attached you may find the resulting PDFs, set with mkii resp. mkiv.
>>>
>>> Steffen
>>>
>>> ---
>>>
>>> \usetypescript[postscript]
>>> \definetypeface[postscript][rm][serif][times][default]
>>>
>>> \setupbodyfont[postscript,20pt]\setupinterlinespace[line=12pt]\lineskiplimit-\maxdimen
>>>
>>> \setuplayout[grid=tolerant]
>>>
>>> \definestartstop[quotetest]
>>> [before={\startnarrower\switchtobodyfont[8pt]\setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen},after=\stopnarrower]
>>>
>> Hi Steffen,
>>
>> this works, but the \startlocal...\stoplocal combination is not used
>> very often in 'the source' (so there must be a better way).
>>
>> \definestartstop[quotetest]
>> [before={\startnarrower\startlocal\switchtobodyfont[8pt]\setupinterlinespace[line=16pt]\setupwhitespace[0pt]\setupindenting[0em,yes]},after=\stoplocal\stopnarrower]
>>
>> best wishes,
>>
>> Peter
> 
> 
> Hi Peter,
> 
> 
> it looks like you answered to thread "how to setup local interlinespace" ;o)
>
my attempt to make this list a little more chaotic ;)

> Yes, this works now. But this ...
> \setupinterlinespace[line=7pt]\lineskiplimit-\maxdimen}
> 
> ... does not work as it worked in mkii.
> 
> Just set line=8pt and run mkiv, next set line=7pt and run mkiv.
> See the problem?!
>
yes, i see it. the interlineskip with line=7pt is bigger than the one
with line=8pt.

i looked for the definition of \lineskiplimit at

http://www.tug.org/utilities/plain/cseq.html#lineskiplimit-rp

[..]
IF the glue specified by \baselineskip brings two adjacent boxes in a
vertical list closer together than \lineskiplimit, then \lineskip glue
is placed between the boxes [78].
--

\def\checkgridsnapping
  {\lineskip\ifgridsnapping\zeropoint\else\normallineskip\fi}

so setting this value while using grid make not much sense. took me some
time (also grid beginner), but i guess the attached example is a
starting point. oh, and thanks to Wolfgang for his much nicer code
(assimilated).

Peter

[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 638 bytes --]

\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]

\setupbodyfont[postscript,20pt]

%\definegridsnapping[verytolerant] [maxdepth:1.3,maxheight:1.3,strut]
%\setuplayout[grid=verytolerant]
\setuplayout[grid=tolerant]

\definedelimitedtext
  [quotetest]
  [leftmargin=standard,
   before={\startgridcorrection\blank[medium]\switchtobodyfont[8pt]\setupinterlinespace[line=8pt]\setupwhitespace[none]},
   after={\blank[medium]\stopgridcorrection},
   grid=tolerant,
   indenting=no]


\starttext
\showframe
\showstruts
\showgrid

\input tufte \par

\startquotetest

\input tufte \par

\stopquotetest

\stoptext

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: how to set \lineskiplimit-\maxdimen
  2010-03-11 14:08     ` Peter Rolf
@ 2010-03-11 14:16       ` Wolfgang Schuster
  2010-03-11 14:38         ` Peter Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-03-11 14:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 11.03.10 15:08, schrieb Peter Rolf:
> \definedelimitedtext
>    [quotetest]
>    [leftmargin=standard,
>     before={\startgridcorrection\blank[medium]\switchtobodyfont[8pt]\setupinterlinespace[line=8pt]\setupwhitespace[none]},
>     after={\blank[medium]\stopgridcorrection},
>     grid=tolerant,
>     indenting=no]
>    
delimitedtext has no grid option

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: how to set \lineskiplimit-\maxdimen
  2010-03-11 14:16       ` Wolfgang Schuster
@ 2010-03-11 14:38         ` Peter Rolf
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2010-03-11 14:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 11.03.2010 15:16, schrieb Wolfgang Schuster:
> Am 11.03.10 15:08, schrieb Peter Rolf:
>> \definedelimitedtext
>>    [quotetest]
>>    [leftmargin=standard,
>>    
>> before={\startgridcorrection\blank[medium]\switchtobodyfont[8pt]\setupinterlinespace[line=8pt]\setupwhitespace[none]},
>>
>>     after={\blank[medium]\stopgridcorrection},
>>     grid=tolerant,
>>     indenting=no]
>>    
> delimitedtext has no grid option
> 
ah, thanks for the info. i guess this is the reason why i had to add the
grid correction. :)

Peter
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-03-11 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11 11:09 how to set \lineskiplimit-\maxdimen Steffen Wolfrum
2010-03-11 11:50 ` Peter Rolf
2010-03-11 12:05   ` Steffen Wolfrum
2010-03-11 14:08     ` Peter Rolf
2010-03-11 14:16       ` Wolfgang Schuster
2010-03-11 14:38         ` 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).