misc-codes/tex-and-texbook/ch6desc.md
2024-12-22 23:40:08 +08:00

50 lines
No EOL
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

如果在tex cli界面輸入
```
\hsize=5in \input story
```
可以指定頁面的一行水平寬度為5inch再匯入TeX Ch6 範例檔案story的內容當然最後要加入\end原檔案沒有\end。
如果設定\hsize太小會出現警告訊息因為水平盒子無法把東西安放到固定寬度的範圍所以出現overfull警告和句尾的黑色實心方框
```
Overfull \hbox (1.34123pt too wide) in paragraph at lines 7--11
[]\tenrm Once upon a|
Overfull \hbox (0.50793pt too wide) in paragraph at lines 7--11
\tenrm time, in a dis-tant|
Overfull \hbox (5.50797pt too wide) in paragraph at lines 7--11
\tenrm galaxy called []O^^?o^^Xc,|
Overfull \hbox (3.31345pt too wide) in paragraph at lines 7--11
\tenrm there lived a com-|
Overfull \hbox (4.70236pt too wide) in paragraph at lines 7--11
\tenrm puter named R. J.|
Overfull \hbox (13.81348pt too wide) in paragraph at lines 12--16
[]\tenrm Mr. Drofnats---|
Overfull \hbox (27.81349pt too wide) in paragraph at lines 12--16
\tenrm pre-ferred to be called---|
Overfull \hbox (7.56346pt too wide) in paragraph at lines 12--16
\tenrm was hap-pi-est when|
Overfull \hbox (15.03568pt too wide) in paragraph at lines 12--16
\tenrm he was at work type-|
```
```\hyphenation{gal-axy}```
強制指定自定連字號劃設規則。這是primitive指令。
```Underfull \hbox (badness 1521) in paragraph at lines 7--11```
可以設置參數:
```\tolerance=1600```
設定換行允許的badness不平整度比如太密或太疏程度