From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yOsBE3C9j2J0NgEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 19:48:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yPYUE3C9j2KjYAAA9RJhRA (envelope-from ) for ; Thu, 26 May 2022 19:48:32 +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 E363C3DDF6 for ; Thu, 26 May 2022 19:48:31 +0200 (CEST) Received: from localhost ([::1]:37318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuHb4-0000Q2-VX for larch@yhetil.org; Thu, 26 May 2022 13:48:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuHaD-0000Ps-Bm for emacs-orgmode@gnu.org; Thu, 26 May 2022 13:47:37 -0400 Received: from mailer-211-145.hitrost.net ([91.185.211.145]:21039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuHaA-0004OB-FP for emacs-orgmode@gnu.org; Thu, 26 May 2022 13:47:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=christianmoe.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:In-reply-to:Subject:Cc:To:From:References:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KwfUpQVqsIncSUZKsSPUASnQoVoIqCRDWeZlKRxy77o=; b=CtSU2UdXWJVBcN+eet9526YlKs XejxP7NwspSHtPuzKfp7adyXRWs4d1pqebJ7rNxTgk3RFSJEZs0NgMNyV3MIhzLO47dlOSCY5VHXG fgq9FlbkXIKwP3tX4XXsFUo2fVoWhyNvUQGQP3XM+Y9GGwwmifN8Pm7vuV+Kl6N5J7KzMEVYrKlI7 XtxPfAWo3Ab5xZ4ciePXJB2r3W8XvgTvYZTxyJ52CBgNpkjXOj5mBs5songfgHxDDhU18QdYlu+8l 5NIxM9IFiI7/eUVgdl07s45F2WSADHaUAGZM9Ug3xj9Gu7uutt68Sjl6RaHYQAtBkAWcNFiCQkIyp 3po4p2qw==; Received: from 84-20-244-215.dynamic.telemach.net ([84.20.244.215] helo=Tauriel) by b1.hitrost.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nuHa4-000rh6-IY; Thu, 26 May 2022 19:47:28 +0200 References: <87y1yovcip.fsf@posteo.net> <87a6b4pil3.fsf@christianmoe.com> <87a6b4zbew.fsf@localhost> <87tu9cv1yw.fsf@posteo.net> User-agent: mu4e 1.2.0; emacs 26.3 From: Christian Moe To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Ihor Radchenko , Christian Moe , orgmode Subject: Re: [tip] org-publish to work with (very) large books In-reply-to: <87tu9cv1yw.fsf@posteo.net> Date: Thu, 26 May 2022 19:47:27 +0200 Message-ID: <877d68p4nk.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GeoIP: Country [IP], SI [84.20.244.215] X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-Authenticated-Id: mail@christianmoe.com Received-SPF: pass client-ip=91.185.211.145; envelope-from=mail@christianmoe.com; helo=mailer-211-145.hitrost.net X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1653587312; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KwfUpQVqsIncSUZKsSPUASnQoVoIqCRDWeZlKRxy77o=; b=vCgoFPrhn1ZnuuS6v0azAs12xBD8NovSAh4wXmYQyrA9CAw2nmKJw2X26d1oZFloM6n5Iv isT0mDcTUEeQ94zCPE6N2TCu04Um+/3dD3QsiIlUhnqUSGBl9T+JqKj9D3Jm2xmMNdy90o R+2ca52FItOa/vcVJB5A8AAbyk6JU155TXqd+EgqEeO5QwulYeV6qcpw0fSoErqJDs+fJ5 XbS922mb7eY3XcUuiVxt3NxnK+LyTV7hPqByntqzGija/Qg6RWeuw2EqpTtxz4vCNN9MYP bP7rpwutgEfk+ZPg7m+mJdFpw/0B64gXb38JTo0xhmkzHm+1keqkB8C+9WuRRw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653587312; a=rsa-sha256; cv=none; b=Rw5vlUu8fZBLkMqMIeMe51F32L2NlHHBvInG4sRXHoCx2kLiFXvagku1FS0ZoCGc23moy1 /F7a8/UnbSYjsgF9JxdNnYfL9hxb6b8RpbSGuO6gQbqCkgF3h8Dbdjp9ywXqs+qLz59aMD Lm2hcu2VznichvwM57OvZOiiHUdPSXiMKWsto8itHNF/7I/BOt96ceLllt4vQ2M8WaS17Q djUNwpM3NI8/SdiCU0uyELpnIq2YnPjtBN3y2TBm5054K3Ex5PKb104yGtyOHY2kI/wVys 8GJn/6EU1cVJuJPExH+t91Wm0QxkUy9kGTKsuf7dicHSCg2h7xiPiKytPEzRCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=CtSU2UdX; dmarc=none; 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: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=CtSU2UdX; dmarc=none; 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: E363C3DDF6 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: OrwaGGyWOYY0 Thanks, Juan! Yours, Christian Juan Manuel Mac=C3=ADas writes: > 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-i= nclude >> >>> 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=20