[texhax] multiple pdfs from one dtx

Arno Trautmann Arno.Trautmann at gmx.de
Mon Dec 27 14:49:32 CET 2010


Heiko Oberdiek wrote:
> 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 mypackage-A.drv
> pdflatex mypackage-B.drv
> 
> or
> 
> pdflatex mypackage.dtx
> pdflatex mypackage-B.drv
> 
> or
> 
> pdflatex --shell-escape mypackage.dtx

Yes, that's the way I'll go. Only using lualatex instead ;)

> Also you can put the commands in a batch script (.sh, .bat, .cmd, ...).

Sure, but that's one more file to distribute.

cheers
Arno

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/texhax/attachments/20101227/60a61972/attachment.bin>


More information about the texhax mailing list