From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YE98AZSFj2LsAAEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 15:50:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CJpxAJSFj2LPXAEAG6o9tA (envelope-from ) for ; Thu, 26 May 2022 15:50:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56AA13AA87 for ; Thu, 26 May 2022 15:50:11 +0200 (CEST) Received: from localhost ([::1]:52620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuDsQ-0005Gc-9n for larch@yhetil.org; Thu, 26 May 2022 09:50:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDrP-0005GT-Se for emacs-orgmode@gnu.org; Thu, 26 May 2022 09:49:07 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDrK-0004Jm-Eg for emacs-orgmode@gnu.org; Thu, 26 May 2022 09:49:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C4FFA240107 for ; Thu, 26 May 2022 15:48:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653572939; bh=o7KULOmHa+nD47quqLXZWKCTeozUg8FGN0jGisPbrVo=; h=From:To:Cc:Subject:Date:From; b=MomV/An2YBDR4rIPJztmLlUVdj1w4hEVvmTSVwWqMZWlWYBPTy1TD5OrVyKGvKus2 0hjum+O3G0ComtTcIEFt3ilLuNZpWWIVVQwv0BvqoKYmj/V6r2LgjuZ3nU1KgfNKOo NKxeDpgtIbegBnMymz2utQ2ioZYUPUnShkbZKrtJW6bixsSYHLIKKKoRirIA5pDOHO SjKmtELvtPrCy8Rsnx5LJG4OU2DgIwPndTDMJEMaWT7//GrBSt8RNyGndzmhngTZde rZ7E51IGH0loTI9v4Qhvqc0sfvgTywQP9mLXUSLxFOO9553C3nn/+fbAsF2LoBPdz+ Fn7SXUHhelLWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L88RZ0d2fz6tmX; Thu, 26 May 2022 15:48:57 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Christian Moe , orgmode Subject: Re: [tip] org-publish to work with (very) large books References: <87y1yovcip.fsf@posteo.net> <87a6b4pil3.fsf@christianmoe.com> <87a6b4zbew.fsf@localhost> Date: Thu, 26 May 2022 13:48:55 +0000 In-Reply-To: <87a6b4zbew.fsf@localhost> (Ihor Radchenko's message of "Thu, 26 May 2022 21:11:19 +0800") Message-ID: <87tu9cv1yw.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653573011; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VAz/rPnQvBKRnJXa+y7ltmiCmimbGOtS6JKifPkPObA=; b=QPZeci0URvwRNZrjeX1RRwriljH/TTDJXWZRk9m3WKdcap6/8C0dAXW92dPrET1bF+K/Kr Jc1E5CEEeNipcGAfDUxRhBOcEX7H52n8Ibr8zSHD8S53B1WLlYcMqFIMdUZGTRNmfSKwCb 4TnLq9W0a1lOBA5zvvV47LaOsYZO7OsuBOlpX2jmMrjN5Iqi4Eln/tjO6q+n8cmsupo6VQ FiqOE1NeJXEXL0bXM6pJCh0FZYI3km/C5Frbec2a0foOdXxn3mm3RY6Wt+t1N5wca3cz0m xPxtFW9wqG0S8K4vQvgRbJRAcc1flSk+MKAYBBMjBxzzBFCFKQJgpWAg9zCM3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653573011; a=rsa-sha256; cv=none; b=mhF5S5gxsnp3Nw8+2iDgGx5q9l9UdSj9NDhQJ3UzKMmUDMSDIpcZzvJ81CEjrdQgKyMKuf BXosMeSVmqlgKYcZqLoialdD2FtAc3qpltW+in79/t0hIthcKlXyN9EeJqRID6cbNnLJDM B+xsb6NWBTrwMmJrdZuxn9Vpjog2Z4s73GvuxDSuPDJAg5/JH1kxBjBqlMN1baC26YauOV wRPLQtMQc9eCUR5QZBk6pn2IZMdmMZ2OPtqqMJixGQTTfjlpQWrPVmvGpgt1aaqnH5jshC zKarPcsGa0Nz2H5f75x8ZPXwJpcGwRPeAR75PbgJTRdZ7+93p20vJz7RoZzmgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="MomV/An2"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="MomV/An2"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 56AA13AA87 X-Spam-Score: -9.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: fmGCPS571uGn Hi Ihor and Christian, Ihor Radchenko writes: > Christian Moe writes: > >> Do I understand correctly that the main advantage of this approach (over >> #+INCLUDE) is the ability to continuously update preview of the whole >> book with latexmk -pvc even if you only re-export one chapter from >> Org-mode? > > I am not sure why Juan did not use include. Include would not require > LaTeX to re-compile unchanged files. See > https://tex.stackexchange.com/questions/246/when-should-i-use-input-vs-include > >> I couldn't find the :body-only publishing option in the docs ...? > > See [[info:org#The Export Dispatcher][org#The Export Dispatcher]] > > Best, > Ihor > Sorry for not explaining the \input part in more detail. I think the essential part here is that all the .tex files (the subdocuments) are already created by org-publish before I compile the master document. The master document simply stores all the subdocuments: I use \input{subdocument.tex} instead of the org #+INCLUDE directive (not the LaTeX \include command). The master document calls ready-made TeX files, not Org files. And it is independent of the whole org-publish process, which is responsible for creating only the parts of the book. This procedure, apart from being able to compile parts of the book in real time with latexmk -pvc, allows me to have more control over these parts. But it makes more sense to use it when dealing with very long books. The first time I used it was in a book of more than 1000 pages :-) The skeleton of the process is that subdocuments are produced with org-publish (as uncompiled tex files) and the master document is exported to tex from org and then compiled with latexmk inside /tex directory. Best regards, Juan Manuel