这是我正在使用的匿名列表。有没有办法消除其中的空白?
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage[inline]{enumitem}
\newlist{mylist}{description*}{4}
\setlist[mylist]{align=left,leftmargin=0em}
\begin{document}
\begin{mylist}
\item[XXXX XXXXX XXX] XXXX XXXXXX XXXXXXXX XXXXX XXXXXXXXXXX XXXXXXXX XXX XXXXXXXXXX
\begin{mylist}
\item [X XX]
\begin{mylist}
\item[XXX] XXXXX XX XXXXXXX XXXXXX XXX [XXXXXXXXXX XX XXXXXXXX XXX XXXXXXXXXXXX XXXXXXXXXX] XXX XXXXXXX XXXX XXXXXX XXXXXXXXXXX
\end{mylist}
\item[X XXX] XXXXXXXXXX
\begin{mylist}
\item[XXX] [X]XX [XXXXXX] XXXXX XXXXXX XXX XXX XXXX XXXXXXXX
\end{mylist}
\item[X XX] XXXXXXXXXX
\begin{mylist}
\item[XXX] XXX [XXXXXXX XXXX XXXXXX X]XXXXXXXXX XXXXX XXXXXXXX XXXXXX XX XXX XXXXXX XXXXXXXXXXX XXXXXXXXX XXX XXXXXXXX XXXXXXXXX [] XXXXXXXX XX XXX XXXXXXXX XX X XXXX XXXXXX XXXXXXXXXX[]
\end{mylist}
\end{mylist}
\end{mylist}
\end{document}
PS:align=parleft
解决了问题但是标签与项目重叠。
PS2:在序言中增加了
\usepackage[english]{babel} % set the applicable language module
\hyphenation{saddle-point break-through}
PS3:回答有关不连字符的批评。
\begin{mylist}
\item[Jaw. Ahem. XYZ] AHEM PIZZAS JAZZLIKE JOCKEY BACKPACKING JAZZLIKE MIX BLACKJACKS
\begin{mylist}
\item [X 12]
\begin{mylist}
\item[(X)] jockey ok jacuzzi pizzas mix [blackjacks ok jazzlike unpublicized blackjacks] mix jacuzzi ahem pizzaz oxygenizing
\end{mylist}
\item[X 123] BLACKJACK.
\begin{mylist}
\item[(a)] [M]ix [jockey] jockey pizzas mix mix ahem jazzlike
\end{mylist}
\item[X 12] blackjack.
\begin{mylist}
\item[(a)] mix [jacuzzi ahem pizzas b]lacksjacks jockey jazzlike pizzas ok mix pizzas backpacking jukeboxes mix jazzlike jukeboxes[] jazzlike ok mix jazzlike ok z ahem pizzas blackjacks[]
\end{mylist}
\end{mylist}
\end{mylist}
答案1
我猜你想要mode=unboxed
。
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage[inline]{enumitem}
\newlist{mylist}{description*}{4}
\setlist[mylist]{align=left,leftmargin=0em,mode=unboxed}
\begin{document}
\begin{mylist}
\item[Jaw. Ahem. XYZ] AHEM PIZZAS JAZZLIKE JOCKEY BACKPACKING JAZZLIKE MIX BLACKJACKS
\begin{mylist}
\item [X 12]
\begin{mylist}
\item[(X)] jockey ok jacuzzi pizzas mix [blackjacks ok jazzlike unpublicized
blackjacks] mix jacuzzi ahem pizzaz oxygenizing
\end{mylist}
\item[X 123] BLACKJACK.
\begin{mylist}
\item[(a)] [M]ix [jockey] jockey pizzas mix mix ahem jazzlike
\end{mylist}
\item[X 12] blackjack.
\begin{mylist}
\item[(a)] mix [jacuzzi ahem pizzas b]lacksjacks jockey jazzlike pizzas ok mix
pizzas backpacking jukeboxes mix jazzlike jukeboxes[] jazzlike ok mix
jazzlike ok z ahem pizzas blackjacks[]
\end{mylist}
\end{mylist}
\end{mylist}
\end{document}