我想获取一个枚举列表,并将每个项目设为不同的页面。页面的高度应缩放,以便紧贴文本。宽度应保持不变。
\begin{document}
\begin{enumerate}
\item lots of text here that will make up the first page.
\item different amount of text here that will make up the second page.
\item page 3
\end{enumerate}
\end{document}
我见过这个例子: 自动生成适合的 pdf 这几乎就是我需要的。但我希望在 \item 中完成,而不是创建新环境。最终我实际上希望每个页面都是不同的 pdf 文件。
答案1
\documentclass[multi=myenum,border=2mm,varwidth=4in]{standalone}
\usepackage{enumitem}
\newlist{myenum}{enumerate}{1}
\setlist[myenum,1]{label=\arabic*,leftmargin=*}
\begin{document}
\begin{myenum}[series=myenum]
\item This is some item This is some item This is some item This is some item This is some item
\end{myenum}
\begin{myenum}[myenum]
\item This is some item This is some item This is some item This is some item This is some item
\end{myenum}
\begin{myenum}[myenum]
\item This is some item This is some item This is some item This is some item This is some item
\end{myenum}
\end{document}