TeX 對行與行之間的距離有最小限制。這個限制的基礎是字型的「高度+深度」(height+depth)。您可以在 \p 樣式中找到這個數值。請注意,這個數值可能遠大於字型的點數(point size)。例如,Awami 字型在設定為 11pt 時,其高度為 19.3pt,深度為 7pt!
如果字型的高度加深度大於行距(linespacing)的 1.75 倍,TeX 就會假設行距等於高度加深度。更精確地說,限制值是該樣式的 baselineskip 加上主要行距的 0.75 倍。
您可以在底層透過將 \lineskiplimit 設定為某個足夠大的負值來改變這一點。目前的預設值是 -0.75 * linespacing。但請務必在您清楚知道自己在做什麼,且確實需要讓行距更緊密時才這樣做。
一旦達到這個限制,您就別想再透過 \baselineskip 來控制行距了,系統會在行與行之間插入一個新的值 \lineskip(0pt)。
範例
假設您想在 11pt 下使用 Awami 字型,但您非常希望行距為 14pt,且不介意行與行重疊(幾乎肯定會重疊)。我們首先查看 \p 樣式的定義,發現該字型的上伸部(ascent)為 19.3pt,下伸部(descender)為 7pt,總計 26.3pt。
TeX 計算行間間隙為 baselineskip - (height+depth),即 14-26.3 = -12.3pt。因此,我們需要將 lineskiplimit 設定為 -12.3pt 或更低的值。lineskiplimit 的預設值是 -0.75*linespacing = -10.5pt,這太高了,所以我們需要修改 lineskiplimit。我們在 `ptxprint-mods.tex` 中透過如下的一行來執行此操作:
```
\lineskiplimit=-12.5pt
```
(-12.5pt 給我們一點緩衝空間)。
請注意,這很容易導致行與行相互碰撞。如果您弄得一團糟,後果需由您自行承擔!
TeX has a limit on how close it will let lines be together. The basis for this is the height+depth of the font. You can find this by looking at the font size in the \p style. Notice this can be a whole lot more than the point size of the font. Awami for example has a height of 19.3pt and a depth of 7pt when set at 11pt!.
If the height plus depth of the font is greater than 1.75 x the linespacing, TeX will work as if the linespacing is equal to the height plus depth. More precisely the limit is the baselineskip of the style + 0.75 the main linespacing.
You can change this under the hood by setting \lineskiplimit to some suitably large negative value. Currently it is -0.75 * linespacing. But only do this if you know what you are doing and you really do need to get lines closer together.
Once you hit this limit, you can kiss goodbye to any control via \baselineskip and a new value \lineskip (0pt) gets inserted between lines.
Example
Let's say that you wanted to use Awami at 11pt but you really want the line spacing to be 14pt and you don't care if lines collide (which they would almost certainly do so). We start by looking at the \p style definition in which we see that the font has an ascent of 19.3pt and descender of 7pt, for a total of 26.3pt.
TeX calculates the interline gap as being the baselineskip - (height+depth), which = 14-26.3 = -12.3pt. Thus we would need a lineskiplimit of -12.3pt or lower. The default value of lineskiplimit is -0.75*linespacing = -10.5pt which is too high and so we would want to change the lineskiplimit. We do this in `ptxprint-mods.tex` with a line such as:
```
\lineskiplimit=-12.5pt
```
(-12.5pt gives us a tiny amount of wiggle room).
Be aware that this can easily result in lines crashing into each other. On your head be it if you make a mess!
機器翻譯自 English