From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114309 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How to create multiple PDFs from one TeX file? Date: Sat, 29 Jan 2022 14:47:16 +0000 (UTC) Message-ID: <484672734.1654434.1643467636028@mail.yahoo.com> References: <484672734.1654434.1643467636028.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9125148540725261042==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 29 15:57:44 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDpAe-0002hS-2u for gctc-ntg-context-518@m.gmane-mx.org; Sat, 29 Jan 2022 15:57:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ECF0728979D; Sat, 29 Jan 2022 15:47:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0ZxjXh3wL1lX; Sat, 29 Jan 2022 15:47:23 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D59702897A5; Sat, 29 Jan 2022 15:47:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6CCD0289796 for ; Sat, 29 Jan 2022 15:47:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LsoMNsa8g9TI for ; Sat, 29 Jan 2022 15:47:19 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.134.123; helo=sonic315-13.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com (sonic315-13.consmr.mail.bf2.yahoo.com [74.6.134.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CBD1728979D for ; Sat, 29 Jan 2022 15:47:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643467637; bh=lOBg+kR5J/efeE0uY9L2Zs2K8Zdfr3uB9qOjTrT1DrI=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=IgYx9+DeXPdsB9n4/rh/SC4G0Iqk3XyfxmrVT/N34qiiXeAyUOxc4OnTJhwLeboZFr/GPDvxBU+dibf5gC/Ay4BWeIeugpIIhtYHUSeLep3HbHGQN4vrw9Z9mowo3D1nXo8+D5O2r03phcirfdbEJPHz1JssZWHD6EfMABszCCaF6NP2pvLGwsQiRwbYubl6EtB3QxaF4ZrosYCcrYd5Gp75QkCl8UW7cljNElZKsb8BI+ZQzE3D0t2KVA37z7Dvi4gQvEWjFiLTo63D+4Faayby29HmFhAGoIIxYTk8NlCX5tnpbkEpvR+cEQcOJ/RLwWoLxmP+vF8BkyNR06QUTA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643467637; bh=ZSQye3d4nHMRmZ3mwPbBRff/35qQqnfIm/98SYEM5Dk=; h=X-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n4n.4a8OwQ7fpZ954Vz0q1qWziZ9wQnc.OPVR63nMNM7mw0eY 3KIB0ALckLp2znUSoUNQx3omLPl2.XzDPd.TyZI.j3.LTcRHnSLyMEisMmdRU.A50Xx1su1sBJqs 18T3LqYZu6ypfiLSg.AxEqcyr7Ogg7D7Vl09orpYw7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Sat, 29 Jan 2022 14:47:17 +0000 X-Mailer: WebService/1.1.19615 YMailNorrin X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114309 Archived-At: --===============9125148540725261042== Content-Type: multipart/alternative; boundary="----=_Part_1654433_1799396260.1643467636027" ------=_Part_1654433_1799396260.1643467636027 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I have several books in a set that have many things I'd like to have linked together, such as page references, shared indexes, shared glossaries, etc. One solution I see is putting all the files together, then using a tool like pdfjam to seperate the pages later, but I'm wondering if ConTeXt can already produce multiple files, or a split in the PDF, already? I tried this code below, as I hoped it would create two PDFs, but it only rendered everything between the first set of `\starttext` and `\stoptext`. --Joel Minimum example: \starttext This is document 1. \input knuth \stoptext \starttext This is document 2. \input knuth \stoptext ------=_Part_1654433_1799396260.1643467636027 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
I have several books in a set that have many things I'd like to have linked together, such as page references, shared indexes, shared glossaries, etc.

One solution I see is putting all the files together, then using a tool like pdfjam to seperate the pages later, but I'm wondering if ConTeXt can already produce multiple files, or a split in the PDF, already?

I tried this code below, as I hoped it would create two PDFs, but it only rendered everything between the first set of `\starttext` and `\stoptext`.

--Joel

Minimum example:

\starttext

This is document 1.

\input knuth

\stoptext

\starttext

This is document 2.

\input knuth

\stoptext

------=_Part_1654433_1799396260.1643467636027-- --===============9125148540725261042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============9125148540725261042==--