
我讀過的文檔字體更改 xetex。它說\hangpun
font-change-xetex 指令提供了一種使用懸掛標點符號的方法。所以我嘗試了一下,但沒有成功。
這是我的測試文件:
\input font-change-xetex
\hsize3.4in
\myfont{Adobe Caslon Pro}{11}{}\hangpun
\noindent Some people are for using hanging punctuation,
and some against. In the end, it is a matter of personal
choice. He said, “I use hanging punctuation.”
“But does it really lead to better text justification?”
asked Joe.
\bye
然後它顯示以下變暖
! Missing number, treated as zero.
<to be read again>
U
\setprotcode ...\XeTeXprotrudechars =1\rpcode #1 U
"0021 226\rpcode #1 U"002C...
\hangpun ... {\capsslbf }{}\setprotcode {\fiverm }
{}\setprotcode {\fiveit }{...
l.4 \myfont{Adobe Caslon Pro}{11}{}\hangpun
?
我該怎麼做?
答案1
您應該使用 , 設定文檔字體\myzfont
,\myfont
僅適用於本地變更:
\input font-change-xetex
\hsize3.4in
\myzfont{TeX Gyre Heros}{11}{}
\hangpun
\noindent Some people are for using hanging punctuation,
and some against. In the end, it is a matter of personal
choice. He said, “I use hanging punctuation.”
“But does it really lead to better text justification?”
asked Joe.
\bye