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
\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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to