misc-codes/tex-and-texbook/ch6desc.md

50 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2024-12-22 23:21:33 +08:00
如果在tex cli界面輸入
```
\hsize=5in \input story
2024-12-22 23:22:40 +08:00
```
2024-12-22 23:21:33 +08:00
可以指定頁面的一行水平寬度為5inch再匯入TeX Ch6 範例檔案story的內容當然最後要加入\end原檔案沒有\end。
2024-12-22 23:38:20 +08:00
如果設定\hsize太小會出現警告訊息因為水平盒子無法把東西安放到固定寬度的範圍所以出現overfull警告和句尾的黑色實心方框
2024-12-22 23:21:33 +08:00
```
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
2024-12-22 23:39:29 +08:00
\tenrm he was at work type-|
```
2024-12-22 23:38:20 +08:00
```\hyphenation{gal-axy}```
強制指定自定連字號劃設規則。這是primitive指令。
```Underfull \hbox (badness 1521) in paragraph at lines 7--11```
2024-12-22 23:40:08 +08:00
可以設置參數:
```\tolerance=1600```
2024-12-22 23:38:20 +08:00
設定換行允許的badness不平整度比如太密或太疏程度