[NTG-context] Umlaut causes footnotline to jump

Hans Hagen pragma at wxs.nl
Thu Mar 15 18:05:41 CET 2007


Steffen Wolfrum wrote:
> Sorry, I don't understand this.
> Please take a look at this more realistic, extended example:
>
> \usetypescript[postscript][\defaultencoding]
> \setupencoding[default=texnansi]
> \mainlanguage[de]
> \enableregime[mac]
>
> \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
>
> \definepapersize[MyPage][width=15.7cm,height=23.2cm]
> \setuppapersize[MyPage][A4]
> \setuplayout 
> 	[width=113mm,height=576pt,
> 	backspace=20mm,topspace=15mm,
> 	header=12pt,headerdistance=6pt,
> 	footer=42pt,footerdistance=0pt,
> 	location=middle,marking=on,grid=no]
>
>  \def\setnotebodyfont
>    {\let\setnotebodyfont\relax
>     \restoreglobalbodyfont
>    \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt]\parskip2pt}
>    
> \starttext
> Test 1.\footnote{BVerwGE 17, 306, 309; 65, 167, 174; {\em D�rig}, in: Maunz{|/|}D�rig, GG, Sonderdruck, Art.\,2~I Rn.\,48; auch heute wird dies noch z.\,T. so gesehen, z.\,B. bei {\em Arndt}, in: Steiner, BesVerwR, VII~B, Rn.\,131; {\em Sch�nemann}, in: Gro�Komm. UWG, Rn.\,A~65; auch das \"O OVG M�nster, NWVBl. 2005, 68, 70, scheint die grundrechtlich gesch�tzte Wettbewerbsfreiheit nicht als eine Auspr�gung der Berufsfreiheit zu sehen.}
>
> Test 2.\footnote{{\em R.~Schmidt}, �ff. Wirtschaftsrecht, AT, S.\,163; {\em Manssen}, in: v.\,Mangoldt|\,/\,|Klein|\,/\,|Starck, GG, Bd.\,1, Art.\,12 Abs.\,1, Rn.\,70; {\em Schliesky}, Offentliches \"O Wettbewerbsrecht, S.\,197; {\em Tsiliotis}, Wettbewerbsfreiheit, S.\,65, mit vielen weiteren Nachweisen.} 
> \stoptext
>
>
> What is the difference between footnote 1 and footnote 2, why does the \"O on footnote 1 fit in its line and not in footnote 2?
> There have both interlinespace[line=9.8pt] ...
>   
the height and depth of the line as calculated by tex based on the 
actual text; 9.8 pt lineheight is nog enough to squeeze the char with 
the most height and depth in so you need to choose a larger value than 
9.8pt (and maybe set lineskip to 0pt)
> Steffen
>
>
>
> On Thu, 15 Mar 2007 17:23:22 +0100, Hans Hagen wrote:
>   
>> no bug at all
>>
>> \usetypescript[postscript][\defaultencoding]
>> \setupencoding[default=texnansi]
>>
>> \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
>>
>> \starttext
>>
>> \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt]
>>
>> \dontleavehmode\setbox\scratchbox\hbox  {O}\copy\scratchbox :
>>    \the\ht\scratchbox,\the\dp\scratchbox,\the\htdp\scratchbox\crlf
>> \dontleavehmode\setbox\scratchbox\hbox{\"O}\copy\scratchbox :
>>    \the\ht\scratchbox,\the\dp\scratchbox,\the\htdp\scratchbox\crlf
>> line:\the\lineheight,ht:\the\strutht,dp:\the\strutdp,total:\the\htdp\strutbox\crlf
>>
>> \stoptext
>>
>> your lineheight is too small, andin this case the line with teh \"O 
>> has at least .5pt more height than assumed max ht, and sincethe lines 
>> touch then, will force an extra interlineskip of 1pt
>>
>> whether or not you observe this is a coincidence since in many cases 
>> lines have ht/dp < the max values
>>
>>
>> -- 
>>
>> -----------------------------------------------------------------
>>                                          Hans Hagen | PRAGMA ADE
>>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>>                                             | www.pragma-pod.nl
>> -----------------------------------------------------------------
>>
>>     


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list