Thanks Will. This is helpful. I think we need one more step tho.
Instead of outputting pages 7-10, say, as a separate document, we want to
output the contents of a \chapter or \section as a separate document.
any idea how to do that? and, as you recognize, the solution has to be
scriptable given how often we do builds.
Gary
On Sun, 2 Mar 2008, Will Lowe wrote:
On 2 Mar 2008, at 2:50, Gary King wrote:
unfortunately, running latex another time doesn't help; we just haven't yet
figured out how to both have the latex referencing working properly and the
parts compiled separately. its a bit complicated with vignettes and all.
we're looking into it.
You could cheat and simply pull the relevant vignette pages out of the larger
document. Acrobat will do this sort of thing, but here's a scriptable
solution using the pagesel.sty package:
---------------
\documentclass{article}
\usepackage[2]{pagesel} %% just output page 2, or [2-7], etc.
%% For the old school
%% \documentstyle[selectp]{article}
%% \outputonly{2}
\begin{document}
\section{First Section}\label{sec:1}
The first section's text. There will be more text in section~\ref{sec:2}.
\newpage
\section{Second Section}\label{sec:2}
The second section's text. There was more text in section~\ref{sec:1}.
\end{document}
---------------
To make the \ref and \label bits work properly, first _comment out_ the
\usepackage statement and compile until the references work (that's the
complete document done), then _uncomment_ the \usepackage statement, and
compile again (that's section 2 only done). The second (and subsequent) runs
use the .aux files from the first part.
Clearly this should be scripted, but I assume you already have a makefile or
somesuch that can trigger the preprocessing sequence, move the output pdf
files, etc.
Apologies if you've already considered this route,
Will
Gary
On Sun, 2 Mar 2008, Emilio Luque wrote:
> Dear all,
>
> Wouldn't the question marks in Zelig's Installation PDF section calls
> mean
> that it needs another LaTeX run?
>
> Best,
> Emilio
>
> --
> Emilio Luque
> Dir. Investigación IUED
> [C/Juan del Rosal, 10, Fac. Psicología, Despacho 0.17, 913986685]
> Prof. Medio Ambiente y Sociedad; Director Adj. Postgrado en Juventud y
> Sociedad
> [Dep. Sociología II, C/Obispo Trejo, s/n, Despacho 3.14, 913988354]
> UNED 28040 Madrid (España)
>
> ATACD EU Project partner:
http://atacd.net