From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: exporting a big project in multiple files to both pdf and html Date: Thu, 01 Feb 2018 09:45:12 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehAUk-0000ha-H0 for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 03:45:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehAUg-00046H-GN for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 03:45:22 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:39919) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehAUf-00045D-WB for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 03:45:18 -0500 In-Reply-To: (Yasushi SHOJI's message of "Thu, 1 Feb 2018 11:17:27 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Yasushi SHOJI Cc: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2018-02-01 11:17, Yasushi SHOJI writes: > On Fri, Jan 26, 2018 at 2:37 AM, Alan Schmitt > wrote: >> I'm working on a project that is becoming too big to manage as a single >> file, so I'm looking at splitting it in several files. This would also >> have the benefit of generating several smaller html pages instead of a >> single huge one. > > Does Org support this? or do you just export each file? I was planning on exporting each file individually. (It's the main goal, actually, as exporting the whole thing is taking too long.) >> My question is about pdf export. Is it possible to take a document made >> of multiple org files and generate a single book from it? I'm worried >> that if I use a master org file that includes the other ones, the links >> between chapters would break. > > You can just use '#+INCLUDE' construct and Org will take care. My problem is links. To give a concrete example, here is the file I want to split in two: * A headline :PROPERTIES: :CUSTOM_ID: head1 :END: This is the first file. * Second headline The first headline is number [[#head1]] How do I change the link in the second headline so that I can split the second headline into its own file and export it by itself? Right now it cannot resolve the link. Maybe a solution would be to create a custom link with different ways to export it=E2=80=A6 > In the html-master.org, you use links to connect. And > in the pdf-master.org, you can just #+INCLUDE your files. This is the plan, if I find out how to deal with links. > BTW, I don't think we have direct pdf exporter. So, you must be talking = about > the latex exporter, right? Yes, sorry for the confusion. Best, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2017-12: 406.82, 2016-12: = 404.42 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAlpy05kACgkQBA0KO07S 5cfI2gf+IYpdI1oFq+p96JF2Vsc5qav5/Y+pKmSv/d3svmxTyAW8LRVzExBT4dBC sto6mWgVJWOdvi+R7u2iHyA9YSoUgIFwK+WZ0Hhf/m2hWz+74inPOIATFo9i2xC8 mc7NlsrFzd+oSOC/AT5k21RX1j/uTx7V3YTFHh8W7K/Jv+AK0qaAVQX2S6bbnn8R ZpSsYdw9NQpkHoxprDeWtUKX0KTOBhriQOTbkhfEFNMmpmaKqcbPXvKOdCI8xcgn CrgsNaEMWLnsSNFrp84fMMwKPmiueG7yj5MSWUrfFeEh2JR35SaqHDPJuCjBjAjz lcphny6T2Q3qIuCZRAjil1T4M97egg== =GKvb -----END PGP SIGNATURE----- --=-=-=--