Wie verwende ich den Befehl \hangpun unter xetex?

Wie verwende ich den Befehl \hangpun unter xetex?

Ich habe das Dokument gelesen vonSchriftart ändern-xetex. Es heißt, dass der \hangpunBefehl font-change-xetex eine Möglichkeit bietet, hängende Satzzeichen zu verwenden. Also habe ich es versucht, aber es funktioniert nicht.

Dies ist meine Testdatei:

\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

und dann zeigt es folgende Erwärmungen

! 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

? 

und wie mache ich das?

Antwort1

Sie sollten die Dokumentschriftarten mit einrichten \myzfont, \myfontdient nur für lokale Änderungen:

\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

verwandte Informationen