From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8CvjBcqQkWJ8YgAAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 05:02:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uGToBMqQkWJEhQAAG6o9tA (envelope-from ) for ; Sat, 28 May 2022 05:02:34 +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 9EF23A681 for ; Sat, 28 May 2022 05:02:33 +0200 (CEST) Received: from localhost ([::1]:41956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1numim-0001N2-EZ for larch@yhetil.org; Fri, 27 May 2022 23:02:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1numiC-0001Mf-AF for emacs-orgmode@gnu.org; Fri, 27 May 2022 23:01:56 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:36481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1numiA-0008Bi-CH for emacs-orgmode@gnu.org; Fri, 27 May 2022 23:01:55 -0400 Received: by mail-pg1-x52c.google.com with SMTP id h186so5435428pgc.3 for ; Fri, 27 May 2022 20:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=tNwvK0bV3Qi/8/luVdRnbRqUN1s9zWz1Fm4URexYIUg=; b=TNXFzCfvsJSCk50/+Pvx2grUqiweXD/98pRJwYQyaS04EmfOs1MBWDjeCT6yueZaXT pyZUDOjXohSaKMVMsEiFVw/+MRqKxsryNCYU8frufHIvMsG9GnsLx8fypxt9gkBKrzvQ GmdiIoEUrNssgBMVcJEZAvIOxltbbvuOrdjG2w0Se/SnsAH93L7HIpZoIggi/Oa0rEB9 qA8DYPbj3/a4WGQ1VnQavaYznLa0kQ1GrYXQlY/ARMpuK//b5yNIGPO3IcL5L16Yq5vN hFItlXW00jk9AcMwQkjVDwKONG5m6owp7he+rEbfV/zJioFiwz4mEIy16GP8PVP+avhf LFug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=tNwvK0bV3Qi/8/luVdRnbRqUN1s9zWz1Fm4URexYIUg=; b=I868qSdK4VhcwDIijeFGia5ZVgPE7U+XU59SJpQoCMhA7B2mddN6JL0VruAa3gLsq1 Ssrk9P4nOOC/WC3reoIGb1TfqHhuVoOMBKWO7ARHg4/duw7DBz/K6P0Eey9keMMXYKo9 YAmkuyY2E8wMx42X8oIjOPKKyx4etd7YU/PS865Ftxnv0tXD2qXHnuNZTq6EF20yKejX UtaktRZKv/h1x9FRelsKe8hfL0VGZJTWxbm15ol/AAqjdAGM+3TwrsKjT6xTHuMaI/Bt zcZ7Q2nPElJWZPfIwdcsvLrO49pn4a+JmERvmVrfcyKgQ72LveqkjOaTm9XQoNfSQ2NZ tQSg== X-Gm-Message-State: AOAM533ZFqZ3NQhwmPhcThAGWjb72sFfeApLer7pPyI2Zd9aYJ30RXsY bofmMKx/vuT+Xj1ATMM+T/I= X-Google-Smtp-Source: ABdhPJy5geXGVne3uoeSnQ7vZEGXh5OSXD9cXo+nKWA6EmMwVUAF//R4b1Jbapx22l+/1yhJLBGXXA== X-Received: by 2002:a63:441e:0:b0:3fa:247b:29de with SMTP id r30-20020a63441e000000b003fa247b29demr26459504pga.467.1653706912896; Fri, 27 May 2022 20:01:52 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id p12-20020a17090a748c00b001d840f4eee0sm2317347pjk.20.2022.05.27.20.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 20:01:52 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [tip] org-publish to work with (very) large books In-Reply-To: <87pmjzmcg6.fsf@posteo.net> References: <87y1yovcip.fsf@posteo.net> <87a6b4pil3.fsf@christianmoe.com> <87a6b4zbew.fsf@localhost> <87tu9cv1yw.fsf@posteo.net> <87y1yntxob.fsf@localhost> <87pmjzmcg6.fsf@posteo.net> Date: Sat, 28 May 2022 11:02:32 +0800 Message-ID: <871qwee4vr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1653706953; 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=tNwvK0bV3Qi/8/luVdRnbRqUN1s9zWz1Fm4URexYIUg=; b=FjPpIFgZ3dthCox6D/uycsiXmEWcqiInQIdKIu1DijaBnScj/tCJBB9QWV1YFdvi6gp2zo de+cjWSh+5klY2dPf96Bl+7IuIAUyRyDJofas4Vsugh+xpEfmKmLU21nbsGe/A/ugrdqnZ jmq7YD3yKwZBROlqI2JSoyNIjzCdKAoejY/t+5k5RaYjK0Umq3lHMlgrmZNum190obrPNz 2kX+Nxplw2xv3UWNVvYCcZahXEkMMlu1U9eiLmvwk+wt2bdRtQE01ljenmP1VHIrDxnjwn 8usyPRlZYOWWdnT3cz61PmxZdBzmHFmpqbZ7GAzNf/K9DJHl3csx2zMI6pskLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653706953; a=rsa-sha256; cv=none; b=el7YxhnDDbBNYARPWSzf6sY9O7aDfMjGIJ0jtd4lat8aRubeznKor4lAKX4f2A/foX5qHl Lk8p/za2sG6lePLHD+KrA79SsxieiSLNZcfr7u+rS4Dm/8afghrdFa7FK9XVh1WzG+T5UL ut5xc6mcqYNqN5dPjiK9bSueO5L2VtCFlKyrUqAcIcQuepvQEIA5ECk2jed2+Ve3IWfKmV 8oJ+PAnsnLnlQavt2QFAJkFrQXkhzfZwbqfewNo9yEiLCeP/OI9Lny0hzRLqy1EltSlb7A ajNumpcZ3zay1GcWmSVLo2AJMpSms7yiKuOuDTL/7SZ3L4WoHmJ0O+I940YtwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TNXFzCfv; dmarc=pass (policy=none) header.from=gmail.com; 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.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TNXFzCfv; dmarc=pass (policy=none) header.from=gmail.com; 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: 9EF23A681 X-Spam-Score: -2.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: iVw/vXn9hz4V Juan Manuel Mac=C3=ADas writes: > Ihor Radchenko writes: > >> I am not sure if I understand correctly. Do you mean that you only >> preview the book parts you are currently working on via latexmk -pvc? >> What kind of more control are you referring to? > > The -pvc flag means that if latexmk detects any modification to any > document involved in the current job (a subdocument, the .sty file, a > .bib file, or whatever), it reruns the appropriate builds to bring the > pdf up to date, and it only stops when everything is up to date. I can > focus that action on parts of the book by commenting or uncommenting > elements in the master file. > Anyway, as they say that a picture is worth a thousand words, I have > made this short example video. This is a dictionary I produced a year > ago. Each dictionary entry has its own separate bibliographic list, so I > had to manage more than 100 separate bib files. I have all these files > inside an Org document, and I create them using org-babel-tangle. The > video shows editing a field in a bib file. I've removed the build time > from the video, as the entire book is almost a thousand pages long. > > https://cloud.disroot.org/s/PiSaHqWZr25GfJY Thanks for the clarification! So, you are previewing the whole book with some \input statements commented out. It is an ok approach, unless you need cross-references between chapters. A more advanced approach would be using \include + \includeonly instead of \input: https://web.archive.org/web/20160627050806/http://www.howtotex.com/tips-tri= cks/faster-latex-part-i-compile-only-parts/ Also, FYI: https://web.archive.org/web/20160712215709/http://www.howtotex.com:80/tips-= tricks/faster-latex-part-iv-use-a-precompiled-preamble/ > The moment one breaks down a large piece of work into specialized parts, > one gains more control over that piece of work. And org-publish helps > manage all of that. It is about managing a large book as a website (via > org-publish). In short, the combination of org-publish, projectile and > latexmk is quite productive for me in this type of work. This is a bit confusing. You still keep the book in a single giant Org file. It indeed does not mean anything given that we can always narrow to subtree, but I fail to see where you break the book into specialized parts then (LaTeX performance trickery aside). Best, Ihor