I am trying to typeset all of the (description) lists in my document without any of the surrounding text or figures (with the exception of desiring some context by way of section headings).

I thought that the preview package could help, and have a MWE working, but it typesets everything on individual pages. I can't see an option that would change this behavior.

Is there a way to do this type of parsing, but have all the content appear with pagination dictated by the traditional TeX methods?

The xcomment package (http://ctan.org/pkg/xcomment) almost does this, but doesn't appear to support allowing section headings through.



%% Use below code to get just an outline and description lists
\PreviewMacro[*[!]{\section} % Include Section headings
\PreviewMacro[*[!]{\subsection} % Include Subsection headings
\PreviewEnvironment{description} % Include description environments
\setlength{\PreviewBorder}{2ex} % Give a little bit of a border



\section{Short lists}
\section{Long lists}
\item[First] \blindtext
\item[Second] \blindtext


This gives separate pages...:


Side question:

When I remove the tightpages option, the lists are not all contained in the page. This is seen most obviously with the long lists, shown below. Is this normal? How is it fixed?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.