[XeTeX] Discretionary hyphens don't work in paragraphed footnotes

David Carlisle d.p.carlisle at gmail.com
Thu Oct 8 14:01:37 CEST 2015

Here is a plain tex example, not quite as minimal as I'd like but out
of time for now.

This hyphenates with pdftex but not xetex





\newbox\FN at tempboxa
\newbox\FN at tempboxb
\newbox\FN at tempboxc

  \long\def\makefootnoteparagraph{\unvbox0 \makehboxofhboxes
    \setbox\FN at tempboxa=\hbox{\unhbox\FN at tempboxa \removehboxes}
    \unhbox\FN at tempboxa\par
  \def\makehboxofhboxes{\setbox\FN at tempboxa=\hbox{}%
      \setbox\FN at tempboxb=\lastbox
      \ifhbox\FN at tempboxb
      \setbox\FN at tempboxa=\hbox{\box\FN at tempboxb\unhbox\FN at tempboxa}%
  \def\removehboxes{\setbox\FN at tempboxa=\lastbox
      \FN at tempboxa{\removehboxes}%
      \unhbox\FN at tempboxa

\setbox0\vbox{XXXXXXXXXX just a few normal words to fill up the line
  up to my x x x zzzzzz\-zzzzz}

\global\setbox\FN at tempboxc\vbox{\hbox{XXX}\makefootnoteparagraph}%
\tracingonline1\showbox\FN at tempboxc

\unvbox\FN at tempboxc


More information about the XeTeX mailing list