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 ms0.migadu.com with LMTPS id eISTBnXpVGKnnAAAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 04:52:37 +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 uCEOBHXpVGKogwEA9RJhRA (envelope-from ) for ; Tue, 12 Apr 2022 04:52:37 +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 81FC4353B7 for ; Tue, 12 Apr 2022 04:52:36 +0200 (CEST) Received: from localhost ([::1]:32810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne6du-0001gW-O8 for larch@yhetil.org; Mon, 11 Apr 2022 22:52:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne6d6-0001gC-QR for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 22:51:44 -0400 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]:38563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne6d3-0008PU-VT for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 22:51:44 -0400 Received: by mail-il1-x134.google.com with SMTP id b17so5719817ilq.5 for ; Mon, 11 Apr 2022 19:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o/HKkJN706zQxLbQ9r0tbk5Pf52xkRD2b2MHH8Tn/zA=; b=ip6Wlw7XloLH0yLDccRCa/m7bpHWSRgTm9I9X2G5EaGv1MWXIIEAuY1BmNbXEERjH4 o46z2RMo4qx7e57MGnobY0PPTRIqBPfiDFJyRreb/7+cACpnpbnajdLy0lAWDsiUXDYx /j6QXnuqkxmWGEPHz/KT3qKS88QfassRg17ZrnrbEymvOem3uLeoLvVAaR1k8AO1NpSf rLpqcbKYW++YjaIyKZ1mnGtFjOB2uxZpYP8RHrHQYXQbefCAaZNLGb5e8qPifZcMT0ZO vszMaSCumwdNkykuEGOtbU3wlNdZHSoWl4JaIrxmbjUTSmj1WmPSIqypWbTp0nNxSCIT wvcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o/HKkJN706zQxLbQ9r0tbk5Pf52xkRD2b2MHH8Tn/zA=; b=EnPx/xG+U6cJGrW0XvySecn7o68u6+a8J00+H8IEZ4lSJjucrwwVzYoRzhaHwKYGd+ Wi9e5unBfH1ipdKPcNYyExlsmVzgtgay4VtjeFEGB/tYv+Kzpa9kH9FTg8f5Oztx4LrZ uVG8utT9NVtaAIvzwiKokPF6mkn8MqxD/Zx+BHsouAo35QiVb3PANSVnN9S5a2NXDDvx Px+c+HvK0Sqc4ubSl6JhjY6iL7wnbJyTNeCssi+4Q9MVlYMRSDpCcTEmj29KP13QvhVO IKOtjDPs3cnY++ZQF5mwDZRSpmoDzYN7RwQfr9akvbumDA5l67yIMHHzoVf1GoBEL2M3 Ytwg== X-Gm-Message-State: AOAM5300PYMG3gRmdbnipXGain28RCv+tWVVt5VlbfUSxqKXfVn4iqBl QrYhDomHm9oAuRU5MzGI0fKsvdAJDeJi15U1D2c= X-Google-Smtp-Source: ABdhPJyyt1MTZwsNyBmEAbdPQofRp5O4gKgBb/bCm18c/Rjt2KowhEmFHgmTiYwMRr+0ijJ/nSnMfM+7R2CacgZLPhA= X-Received: by 2002:a92:d6c9:0:b0:2c7:aba1:6231 with SMTP id z9-20020a92d6c9000000b002c7aba16231mr14174050ilp.206.1649731900181; Mon, 11 Apr 2022 19:51:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Vikas Rawal Date: Tue, 12 Apr 2022 08:21:29 +0530 Message-ID: Subject: Re: #+latex_header blocks, or, managing lots of LaTeX headers To: William Denton Content-Type: multipart/alternative; boundary="000000000000e2908e05dc6c2395" Received-SPF: pass client-ip=2607:f8b0:4864:20::134; envelope-from=vikasrawal@gmail.com; helo=mail-il1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=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: , Cc: org-mode mailing list 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=1649731956; 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=o/HKkJN706zQxLbQ9r0tbk5Pf52xkRD2b2MHH8Tn/zA=; b=Ur3IBZv/zEIoke71WUeZ/5wrp3TEQwGsWhebu+lZJxFqyATkLgx5amcc7OcsDVV2Dm5V3y lx9hXzv5lx+0zuf4WT7VZjkof2Wu1hvULHQ+WQt/uPqDX11HHrofd2lJTIxvETX67yoSZj sO3At6HBubnXWfkq6Z5gMtXBgkasYkTL+Gw2EvoxW7ig91vSE71YCOfR1UU4tfjv2UXzip YxRc8f707qaiGHGa89xW0UXwHgUspOTeFAiXp+7d6odMDPL/FIusdzfBSgoXEOHTVNyydH yEQjlHvCqM2gT5aFaHtSE198BQakWQNemxvzFdTyh0Ttl2I7satodcnDFUaq7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649731956; a=rsa-sha256; cv=none; b=f8ysvWyVqFgTWd6OYUmL2oihhWEdCzsgJsG+hY2DLu5ZOKImi0F4nZkVObz1WgTTnrATwW OMvdScUOuU6S4wh8X9mobs51NvCeRgxMghIRfCBhV7q7+180lPclSoFARf27E0vKUM+Gq7 BJTbAtyRKn1/VmT5Dsb5HMYX8H4h4xPp+vjaDM0iA4RTDB2v642AKr2YQrSAJkidZVKMcm 1jzxCufBYqF5Hj1Ub6ibGvbUbQd+4sbBRh3AYnLJVwl0kLp4wNFuLymZFYWZiYonQMYPRH bMP6xQBfF9DjeXz5Z4Qfh3mtvmOG0GXdMh008QxnxhPx1E6V0YWQBFrS7cgSjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ip6Wlw7X; 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: -7.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ip6Wlw7X; 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: 81FC4353B7 X-Spam-Score: -7.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: MTl2AGjDryYu --000000000000e2908e05dc6c2395 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For a major project like this, I would just put these in a separate file, and include it using #+INCLUDE: Vikas On Tue, 12 Apr 2022 at 06:37, William Denton wrote: > I have another question related to managing a book I'm doing building for > export > to LaTeX: what do people do for managing all of the headers? > > I have about 30 #+latex_header lines in the project I'm working on, and > I'm > still just working on it as a basic article. When I'm ready to do more > formatting I'll use the memoir class and then there will be more > commands. I > imagine some of you have huge headers with custom commands and more. > > It would be great if there was a way to manage these lines as LaTeX, for > example > in a "#+begin_export latex" block, but as far as I can tell, there isn't = a > way > (unless once again I overlooked something). > > The idea came up about seven years ago, and Nicolas mentioned the > possibility of > a "#+begin_export latex :header t" implementation. > > https://lists.gnu.org/archive/html/emacs-orgmode/2015-05/msg00538.html > > It's possible to add a new class to the org-latex-classes variable, and i= n > the > documentation on it I see there are options ([NO-DEFAULT-PACKAGES], > [NO-PACKAGES], [NO-EXTRA]) that allow one to trim away all the default > headers. > That makes it easy to take away, but not to add in lines I want, short of > managing them in my init file. > > What sorts of practices do people have for managing lots of LaTeX headers= ? > Juan Manuel Mac=C3=ADas, you mentioned something like this---literate > programming in > Org to export LaTeX source---may I ask how you do it? > > Thanks, > > Bill > > -- > William Denton > https://www.miskatonic.org/ > Librarian, artist and licensed private investigator. > Toronto, Canada --000000000000e2908e05dc6c2395 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For a major project like this, I would just put these in a= separate file, and include it using #+INCLUDE:

Vikas


On Tue, 12 Apr 2022 at 06:37, William Denton <wtd@pobox.com> wrote:
I have another question related to m= anaging a book I'm doing building for export
to LaTeX:=C2=A0 what do people do for managing all of the headers?

I have about 30 #+latex_header lines in the project I'm working on, and= I'm
still just working on it as a basic article.=C2=A0 When I'm ready to do= more
formatting I'll use the memoir class and then there will be more comman= ds.=C2=A0 I
imagine some of you have huge headers with custom commands and more.

It would be great if there was a way to manage these lines as LaTeX, for ex= ample
in a "#+begin_export latex" block, but as far as I can tell, ther= e isn't a way
(unless once again I overlooked something).

The idea came up about seven years ago, and Nicolas mentioned the possibili= ty of
a "#+begin_export latex :header t" implementation.

https://lists.gnu.org/archive/= html/emacs-orgmode/2015-05/msg00538.html

It's possible to add a new class to the org-latex-classes variable, and= in the
documentation on it I see there are options ([NO-DEFAULT-PACKAGES],
[NO-PACKAGES], [NO-EXTRA]) that allow one to trim away all the default head= ers.
That makes it easy to take away, but not to add in lines I want, short of <= br> managing them in my init file.

What sorts of practices do people have for managing lots of LaTeX headers? =
Juan Manuel Mac=C3=ADas, you mentioned something like this---literate progr= amming in
Org to export LaTeX source---may I ask how you do it?

Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
--000000000000e2908e05dc6c2395--