<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Dan,<br>
<br>
One possible solution for the particular example you posted (see
below) is to allow line breaks at commas in inline maths. The
solution I use for this is:<br>
<br>
</tt>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><tt>\mathchardef\breakingcomma\mathcode`\,</tt></p>
<tt>
</tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>{\catcode`,=\active</tt></p>
<tt>
</tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>
\gdef,{\breakingcomma\discretionary{}{}{}}</tt></p>
<tt>
</tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>}</tt></p>
<tt>
</tt>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><tt><br>
</tt></p>
<tt>
</tt>
<p style="margin: 0px; text-indent: 0px;"><tt>\newcommand{\mathlist}[1]{$\mathcode`\,=\string"8000
#1$}<br>
</tt></p>
<p style="margin: 0px; text-indent: 0px;"><tt><br>
which I took from the answer by egreg to the following
stackexchange question:<br>
<br>
</tt></p>
<p style="margin: 0px; text-indent: 0px;"><tt><a class="moz-txt-link-freetext" href="http://tex.stackexchange.com/questions/19094/allowing-line-break-at-in-inline-math-mode-breaks-citations">http://tex.stackexchange.com/questions/19094/allowing-line-break-at-in-inline-math-mode-breaks-citations</a><br>
</tt></p>
<p style="margin: 0px; text-indent: 0px;"><tt><br>
You could use this as "Let the tuple $(\mathlist{X, Y, Z, A, B,
C, +, x, -, !, \#})$" in your example.</tt></p>
<tt>
</tt>
<p style="margin: 0px; text-indent: 0px;"><tt><br>
There are some other solutions in that post and the other it
links to.<br>
</tt></p>
<tt><br>
All my best,<br>
Conrad<br>
<br>
</tt><tt>On 12/16/2011 01:55 AM, Daniel Greenhoe wrote:</tt>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<blockquote
cite="mid:CAF=Ssq7HJQqiVM=j__BW_dEewsd0jYnFWn=zmOQvvopqcyMBjw@mail.gmail.com"
type="cite">
<pre wrap=""><tt>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
</tt></pre>
<tt><br>
</tt>
<fieldset class="mimeAttachmentHeader"></fieldset>
<tt><br>
</tt>
<pre wrap=""><tt>
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a>
</tt></pre>
</blockquote>
<tt><br>
</tt>
</body>
</html>