使列表项适合页面宽度

使列表项适合页面宽度

图块溢出了页面,因此其内容丢失了。我怎样才能让它断线并继续下面的操作?

这是我的代码:

\documentclass{article}

\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{amsmath}

\begin{document}

{\large % This what causes the overflow, I guess

\begin{description}
  \item[1) Papadopoulou's SPIE 2014 paper] \hfill \\
  p.4: Voronoi diagram encodes proximity information of the input sites. It can be constructed in
$O(n\log{n})$ time. We have developed the L$\infty$ segment Voronoi diagram in the CGAL environment;10, 25 the code is currently under review for inclusion in the library. Below we list some references.
\begin{description}
  \item[1.1) Implementing the L$\infty$ segment Voronoi diagram in CGAL and applying in VLSI pattern analysis] \hfill \\
  P. Cheilaris, S. K. Dey, M. Gabrani, and E. Papadopoulou, in Proc. 4th International Congress on Mathematical software (ICMS’14), Lecture Notes in Computer Science 8592, 198–205, Springer (2014).
\end{description}

  \item[2) Implement it ourselves] \hfill \\
  Implement an algorithm if a library does not meet our requirements (needs research).
\end{description}
}

\end{document}

这是我得到的输出(可以看到“在 VLSI 模式分析中”没有显示): 在此处输入图片描述

答案1

如果需要编号,最好使用enumerate。但是,您也可以使用enumitem, 和使用

\begin{description}[style=unboxed,itemindent=!]

如果你想坚持下去。

\documentclass{article}

\usepackage{graphicx}
%\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{enumitem}

\begin{document}

{\large % This what causes the overflow, I guess

\begin{description}
  \item[1) Papadopoulou's SPIE 2014 paper] \hfill \\
  p.4: Voronoi diagram encodes proximity information of the input sites. It can be constructed in
$O(n\log{n})$ time. We have developed the L$\infty$ segment Voronoi diagram in the CGAL environment;10, 25 the code is currently under review for inclusion in the library. Below we list some references.
\begin{description}[style=unboxed]
  \item[1.1) Implementing the L$\infty$ segment Voronoi diagram in CGAL and applying in VLSI pattern analysis] \hfill \\
  P. Cheilaris, S. K. Dey, M. Gabrani, and E. Papadopoulou, in Proc. 4th International Congress on Mathematical software (ICMS’14), Lecture Notes in Computer Science 8592, 198–205, Springer (2014).
\end{description}

  \item[2) Implement it ourselves] \hfill \\
  Implement an algorithm if a library does not meet our requirements (needs research).
\end{description}
}

\end{document}

在此处输入图片描述

另一方面,如果您使用,style=nextline您也可以避免\hfill\\标签后的所有内容。

\documentclass{article}

\usepackage{graphicx}
%\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{enumitem}

\begin{document}

{\large % This what causes the overflow, I guess

\begin{description}[style=nextline,itemindent=!]
  \item[1) Papadopoulou's SPIE 2014 paper]
  p.4: Voronoi diagram encodes proximity information of the input sites. It can be constructed in
$O(n\log{n})$ time. We have developed the L$\infty$ segment Voronoi diagram in the CGAL environment;10, 25 the code is currently under review for inclusion in the library. Below we list some references.
\begin{description}[style=nextline,itemindent=!]
  \item[1.1) Implementing the L$\infty$ segment Voronoi diagram in CGAL and applying in VLSI pattern analysis]
  P. Cheilaris, S. K. Dey, M. Gabrani, and E. Papadopoulou, in Proc. 4th International Congress on Mathematical software (ICMS’14), Lecture Notes in Computer Science 8592, 198–205, Springer (2014).
\end{description}

  \item[2) Implement it ourselves]
  Implement an algorithm if a library does not meet our requirements (needs research).
\end{description}
}

\end{document}

相关内容