I use XeTeX
, Version 3.1415926-2.4-0.9998
(TeX Live 2012/W32TeX).
I want to create a nested list without hyphenation. I am using the sloppypar
environment with hyphenation
command to turn off hyphenation. This creates issues when used with a nested numbered list created using enumerate. In the MWE below, the second item in the outer list is not numbered, while the first item in the second inner list has the combined number 2(a). The nested list works fine without sloppypar as the second section below shows.
\documentclass{article}
\usepackage{ragged2e}
\usepackage{polyglossia}
\begin{document}
\section{Nested list with sloppypar}
\begin{enumerate}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\begin{enumerate}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\end{enumerate}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\begin{enumerate}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\item \begin{sloppypar}\justifying\hyphenrules{nohyphenation}Blah blah blah.\end{sloppypar}
\end{enumerate}
\end{enumerate}
\section{Nested list without sloppypar}
\begin{enumerate}
\item Blah blah blah.
\begin{enumerate}
\item Blah blah blah.
\item Blah blah blah.
\end{enumerate}
\item Blah blah blah.
\begin{enumerate}
\item Blah blah blah.
\item Blah blah blah.
\end{enumerate}
\end{enumerate}
\end{document}
polyglossia
package, in particular, have evolved quite a bit over the past three years.