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 4InyJZrQVGIHdQAAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 03:06: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 mp11.migadu.com with LMTPS id UMBnI5rQVGKWdQAA9RJhRA (envelope-from ) for ; Tue, 12 Apr 2022 03:06: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 D9A203288E for ; Tue, 12 Apr 2022 03:06:32 +0200 (CEST) Received: from localhost ([::1]:55980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne4zI-0000jv-2d for larch@yhetil.org; Mon, 11 Apr 2022 21:06:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne4g9-0005bw-L8 for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 20:46:46 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:63191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne4g7-0003sG-Eu for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 20:46:45 -0400 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 62C5F189EF8 for ; Mon, 11 Apr 2022 20:46:40 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type; s=sasl; bh=t07 2xUP+Y38isyIqaIXK4yPVcjaf6RBtYMV3VBbFTUk=; b=SUEtfl2dnnFLSjs+K/r c62etMMqM0QAULq9B64QcB+I4yi7NGvCTEVchEg3cNZQeL9AyqmAboGA9S8onwAh 5jNf2vneX7uYinky2cfJI8JJFDT5T56US8MHMQXnAJxUtwUwr+64AiuS6Gzo4nhI sadZGEYPz3BQGzTR+fMta7E8= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 536E7189EF6 for ; Mon, 11 Apr 2022 20:46:40 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id EDA52189ECE for ; Mon, 11 Apr 2022 20:46:37 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 6F4E2120B8F; Mon, 11 Apr 2022 20:46:36 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 6A36A120B02 for ; Mon, 11 Apr 2022 20:46:36 -0400 (EDT) Date: Mon, 11 Apr 2022 20:46:36 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: #+latex_header blocks, or, managing lots of LaTeX headers Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1741096510-256888359-1649724396=:78689" X-Pobox-Relay-ID: 02B2BE08-B9FA-11EC-8D4B-CBA7845BAAA9-56320186!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=wtd@pobox.com; helo=pb-smtp21.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=1649725594; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=E76p/JI0JGtGttcAMBuY23YhhYkgEUvew8XTTjG+qdg=; b=GTT+Y6ULXmDBnItvQrcLYCplYyIMjnqdbMCxiKsOopU2zidYEeQdIXt7dtjjjNX7Ky0qMM NlfeiFItZgvriO6c0vpKZuuL8sVZkoJjK1nxZXAtaZEmo3Cxp/KZ+4eUrXOxmakBdpPlDX ULNfJzprYlHohDUPUCD9OGquaCIEjCsGtagl9YVCtNxL/2TDIavP+oelz2BPuNbfu2WH5t XBQqiweOy9d2Hb3MTu7jAQXYuGy+7GwCHaSCz0kPS46T0Wwjlhx9uQwgc0WYHrCgtjXzB2 AObJ7kGu0JvsgZdJWW6sQAGK687IkOsIsGtaIg2c4ebNS2eXO6UUtlhPcTVyBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649725594; a=rsa-sha256; cv=none; b=MwyLQqGFoVe9Dn88+uI95rdJhNEBjCjZsgTRW/rMfDDW/5eAegFO3wIbSc07503Cg4Gbcv xKdhX8Q8iw7d7lS75wFpcYeitB1oO/1QGimLkNwb8LZ/DJQxbXJbuF2f9bhJkhrfkjCkUu 3JfJEmFsPstncGxKdeXZiWb9qa7Qj+89SFW7c46peI2riI+AhU27KZth54WTNOcmjRyvuL 4s9z8h9pfeaquEvxPcqZakUpVI16PxVcUykyjCd5vDI2eISfFqwoQJXtbVIQT7/lhjT9i+ Zc73JMQnwBJeAtLhJhBunt9sV8uF9tQiNFp7PQq0PAKXiacqUZIo7n0D+KjZPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=SUEtfl2d; dmarc=pass (policy=none) header.from=pobox.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: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=SUEtfl2d; dmarc=pass (policy=none) header.from=pobox.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: D9A203288E X-Spam-Score: -3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: wmKZK84JJ3lU This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1741096510-256888359-1649724396=:78689 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable I have another question related to managing a book I'm doing building for= export=20 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=20 still just working on it as a basic article. When I'm ready to do more=20 formatting I'll use the memoir class and then there will be more commands= . I=20 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=20 in a "#+begin_export latex" block, but as far as I can tell, there isn't = a way=20 (unless once again I overlooked something). The idea came up about seven years ago, and Nicolas mentioned the possibi= lity of=20 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=20 documentation on it I see there are options ([NO-DEFAULT-PACKAGES],=20 [NO-PACKAGES], [NO-EXTRA]) that allow one to trim away all the default he= aders.=20 That makes it easy to take away, but not to add in lines I want, short of= =20 managing them in my init file. What sorts of practices do people have for managing lots of LaTeX headers= ?=20 Juan Manuel Mac=EDas, you mentioned something like this---literate progra= mming in=20 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 --1741096510-256888359-1649724396=:78689--