From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MLhDLivXZWA5xQAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 16:22:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2I0rKCvXZWDsWQAAB5/wlQ (envelope-from ) for ; Thu, 01 Apr 2021 14:22:35 +0000 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 5FC871D031 for ; Thu, 1 Apr 2021 16:22:34 +0200 (CEST) Received: from localhost ([::1]:42954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRyDQ-0000vx-4G for larch@yhetil.org; Thu, 01 Apr 2021 10:22:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyD1-0000vf-Ss for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 10:22:07 -0400 Received: from mout01.posteo.de ([185.67.36.65]:46139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyCv-0003L7-Pa for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 10:22:07 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8A2A716005C for ; Thu, 1 Apr 2021 16:21:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1617286917; bh=vD7YKHXr9sfY/bjmBkBizwkkTjVGkYdsZY6IsaKWgaA=; h=From:To:Cc:Subject:Date:From; b=Rdzs6mp/4pArLYVSQUFoSl9AiuV6b0On51l0nrcVvVp5x4e+pJlTZftIv089Ek4mX 3k5pOKcoit1ZCGtSAEsy3RPL/PWhoei5JFRamYziEoRfPdykTreuT86F5AWwQXjIWk IizLFvhbeAMrSzZAIbvKB0IvQ9aHk0eZXFDdFS61+uWpTOro+qpF1EWZH6jGGQkN7c LB3wfna0kYccAj57v5p24FHtePJ45ZVcMbtW2nfPIPxPBaKOOMqUjz7GITaEKmPXHC 8fWgf/YtbfTDAIYb2vo7DZ9YQMotv/g/k8QU/xtN6BYdiNIB5D/Xbc8v6klC7UoduJ gwVCVGKjxdM5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FB53S5kjsz9rxM; Thu, 1 Apr 2021 16:21:56 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Eric S Fraga Subject: Re: About exporting References: <88a3facd-2f95-42b7-135a-d2ec6a730ba7@gmail.com> <86tuosdfh6.fsf@login.ifi.uio.no> <86pmzgd7zm.fsf@login.ifi.uio.no> <87o8f0wsr5.fsf@posteo.net> <87pmzfhcep.fsf@ucl.ac.uk> <864kgrch4a.fsf@login.ifi.uio.no> <8735wacx8b.fsf@ucl.ac.uk> Date: Thu, 01 Apr 2021 16:21:54 +0200 In-Reply-To: <8735wacx8b.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 01 Apr 2021 07:52:52 +0100") Message-ID: <87lfa2axvh.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617286955; 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=ZzwzRWMNU9VkJAtiVMrbwiV7ptoI2R+eIBW9BWDs1Ag=; b=uUOUz68iNW1xM+ebXgqz2br8sZeWybcJeusIAqAFy6pO5a9obRzBz+ZwaZBl5wEzthxFuQ VpdpJ2U4nc4ItmlF2XPwcIJ86EH6BvobYI1WbkcZYuY941cBVsunFYkhtBl1gchyHU4vGB Q/6UKH5FNRs33fIZ3uftrsLFXKDfKQNlC2AEJ7EaifATe/DZcbctrb10X68A7sdLNl7QJC XN/N1fPVJxN4K9P3i7FmOiXqSbgmpyWFnjykmf0u9RMAuashzKsS3ZotUEAuXKcw277Lbu yr5bjuxlhXOJiYw6RLDySNa44knaePPr/6Q2UJMkp/WGmvVwvz/2VW8oqSJ4dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617286955; a=rsa-sha256; cv=none; b=sX2xp0uvtsMbp4OzPLe12RM6KiFqZRhqoZxm0WOsKzVDh7mG/sgDK93p+S8vi8HDgrHIoQ Uql595F+UyVtSl6yHrs24iAIgzfPtadppiYrFqaVDBGVSEzdM4HGb0lRgVgZw3dWQw4beP vsQctwNV1Ox8C1MAEy8Fn+edWIOzsxq0o6mo1qhT5KZpK+ywH9UjhLJ0p4kZZfPK5kcZHL sZXgg7VOt63oO5EYdWNKn0RfhPX7WplphsN0AcTaH7DcnAGq3r/Ssb/VfOS5v2oSFQW5YX ADhfmC0ec9W8UFyxz7EE+t9cUyvMi7Sd5TYC4dCWyKW12+sl25TNQ5Tn2h9JWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Rdzs6mp/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Rdzs6mp/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5FC871D031 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: cB3NPeVBUXdy Eric S Fraga writes: > On Wednesday, 31 Mar 2021 at 20:28, Martin Steffen wrote: >> And there is a final thing which (for me) seem to work better in >> latex-mode compared to org. That's jumping to the ``next error'' with >> some key stroke. That's important, LaTeX's own error output it quite >> poor, but jumping to error locations is vital. > > Yes, this is an issue I have as well. And the fact that the error > messages are for the LaTeX lines, not the org lines, so you end up > sometimes having to look at the LaTeX code and then go back to the org > file. This definitely adds friction! These days I'm working on a book (a dictionary) of over 1000 pages. The preamble contains 1813 lines of code (+/-), and is written separately in a Org document, through literary programming. Contains: a) A lot of (La)TeX code written (or perpetrated) by me, b) some Lua functions to control certain parts of the process, c) all the configuration for Xindy (the indexes) in Common Lisp (inside a filecontents* environment). Everything, of course, ordered by sections. With this cocktail it seems that something can go wrong at some point :-) However I find it very easy to debug having things well separated. And I can always tangle different versions of the preamble... As I have already mentioned, I use Org Publish intensively. Some parts of my Org Publish setup for this project are: [...] :base-directory "~/Git/DHTC/libro/org/" :base-extension "org" ; *.tex files and output :publishing-directory "~/Git/DHTC/libro/tex/" :publishing-function org-latex-publish-to-latex :body-only t :exclude "DHTC-master\\.org\\|bibli-dhtc\\.org" Each part of the book is an *org document that I export to *tex using Org-Publish (:body-only t). And each document only includes at the beginning: #+SETUPFILE: diccionario.setup #+INCLUDE: "elisp" (that is, a setup file and a file that I have named `elisp' where I include functions and filters). And then I have a master document, as simple as possible, where the preamble and the subdocuments are added through '\input{...}'. I have defined this macro: #+MACRO: input (eval (if (org-export-derived-backend-p org-export-current-backend 'latex) (concat "@@latex:\\input{@@" $1 ".tex" "@@latex:}@@") $1)) And, with a simple Elisp function, I compile the final document (or parts of it) using latexmk (with `start-process-shell-command'). I add an argument so that a dedicated buffer is generated with the output of latexmk. As latexmk runs in interactive mode, every time I do a change in a subdocument and call Org-Publish again, latexmk rebuilds everything automatically. The latexmk output is very neat and warns of possible errors. Also I always have an alternative branch in the repository to do tests when I put 'experimental' code. By all this I mean that using LaTeX from Org (but without stopping using LaTeX) gives me a pretty productive and organized workflow. I recommend try it out for large books. Best regards, Juan Manuel