[XeTeX] Overfull \hbox when using inline math scripts

Daniel Greenhoe dgreenhoe at gmail.com
Fri Dec 16 02:55:19 CET 2011


I have a rather long document involving mathematics that sometimes has
the "Overfull \hbox" problem when I use inline mathematical scripts.
Before I go hacking up the document with newline and \raggedright
commands, is there any more elegant solution currently available?
Below (see also attachment) is an example:

\documentclass[12pt]{book}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{geometry}
\geometry{
  xetex,centering,twoside,noheadfoot,nomarginpar,
  paper=a4paper,margin=20mm,
  showframe
  }
\setmainfont{texgyrepagella-regular.otf}
\setmathfont{xits-math.otf}
\setlength{\parindent}{0pt}
\begin{document}%
\thispagestyle{empty}%
%\sloppy
%\raggedright
Theorem 1.1 (The Theorem That Has This Rather Long Title)
Let the tuple $(X, Y, Z, A, B, C, +, x, -, !, \#)$
be some useful mathematical structure.
Then, \ldots
\end{document}%

Many thanks in advance,
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathover.pdf
Type: application/pdf
Size: 7631 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111216/204b9e88/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathover.tex
Type: application/x-tex
Size: 761 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111216/204b9e88/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: missfont.log
Type: application/octet-stream
Size: 32 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111216/204b9e88/attachment.obj>


More information about the XeTeX mailing list