[texhax] multiple pdfs from one dtx
heiko.oberdiek at googlemail.com
Mon Dec 27 14:54:22 CET 2010
On Mon, Dec 27, 2010 at 12:47:54PM +0100, Arno Trautmann wrote:
> Heiko Oberdiek wrote:
> > On Mon, Dec 27, 2010 at 11:48:31AM +0100, Arno Trautmann wrote:
> >> Heiko Oberdiek wrote:
> >>> On Sun, Dec 26, 2010 at 10:17:23PM +0100, Arno Trautmann wrote:
> >>>> Is it possible to start a second TeX-run from the first one without
> >>>> having to specify --shell-escape?
> >>> No.
> >> I guess even luaTeX won?t help here?
> > AFAIK no.
> >> Then I'll go the easy way and just split the pdf after generation ?
> > There are tools for splitting (pdftk, ghostscript). But
> > there are problems with links and you need to know the
> > page ranges.
> > IMHO it's easier to generate the two files in the first place.
> If it was a complex document, I'd agree. But as these packages are very
> simple, I rather thought about producing a small LaTeX-Dokument using
> pdfpages to split it correctly. In that document, the correct page
> numbers can be used. There are many ways to do this task, I was just
> looking for the one with the least number of steps and files. (A make
> file would also help etc. ?)
tex mypackage.ins or tex mypackage.dtx
pdflatex --shell-escape mypackage.dtx
Also you can put the commands in a batch script (.sh, .bat, .cmd, ...).
More information about the texhax