From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kIA4KtaaqGI5iwAAbAwnHQ (envelope-from ) for ; Tue, 14 Jun 2022 16:27:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8JNHKtaaqGIn0gAA9RJhRA (envelope-from ) for ; Tue, 14 Jun 2022 16:27: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 0E8413EA94 for ; Tue, 14 Jun 2022 16:27:34 +0200 (CEST) Received: from localhost ([::1]:47192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o17W1-0002Ln-35 for larch@yhetil.org; Tue, 14 Jun 2022 10:27:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o17VC-0002KU-1d for emacs-orgmode@gnu.org; Tue, 14 Jun 2022 10:26:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o17V9-0006EW-TR for emacs-orgmode@gnu.org; Tue, 14 Jun 2022 10:26:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7615C240026 for ; Tue, 14 Jun 2022 16:26:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1655216795; bh=bcO1mgkUs69R8dLD48ZenXxL+vvTFcENkDSI+0iPZIw=; h=Date:Subject:To:Cc:From:From; b=YV7//Fg0aXRij+JyLIBYl4S35BrCb/vpZ1OWbbt036wOZKkcVfLM/tZ+jFgWFtWHS H+TfJlksmPwO3BxD8/TfTlbmPZQJGRpqKI+SF7gJU0VEL5U5dgKjfSfpzg3Mm9ulTw iQlg6jmxjcyrIhfSilWvLnKDqVCup773lTCvh+EPl3dc/B3xZkDd6ZrFMww1fefk0/ NaeRQXDFKrMrIDy19cwnFhWMu6I2tiKXaWz1AKq6F051lwsi1NmHhL3kJk3k5L+Kje ju576Tjg9KSFXHMCbrZol/GlEZM3a1VtdLAXKK0qMKzdyKOPAXKIH41GGE/QEsX6Ge Zli0pGldlxskQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LMrNB66jwz6tmR; Tue, 14 Jun 2022 16:26:34 +0200 (CEST) Message-ID: <7fbcc96f-3b15-5f74-b1ff-2a2f3ed1303d@posteo.eu> Date: Tue, 14 Jun 2022 14:26:34 +0000 MIME-Version: 1.0 Subject: Re: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES Content-Language: fr To: Ihor Radchenko Cc: emacs-orgmode References: <08a42351-1f4f-b0ed-ae68-63d08d9f7c06@posteo.eu> <87sfo7wfce.fsf@localhost> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <87sfo7wfce.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; 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, 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: , Reply-To: sebastien.miquel@posteo.eu 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=1655216854; h=from:from:sender:sender:reply-to: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=IInDIxtyCFmPbHsaXEuzMDzXDPcyjGqaXuGYxpshNEI=; b=mtCzLxXMl1ysqyM8tSaiWzZqsbMP6fuV640cMRowagwliSTF+OkkDt/bMTUkRDEDbZV41x 71mM/AcPLLFmC4eB7ZHwyFq6AWvQTUwVj6P/S87AhqkYm/YhEKY9Iy0X5tIFrvA3tVJOkA ZTmSxSv+l4AQs42jE54BwsehyVai8DkYJaH5aEnOs0Ymi2GKH4Aw4xrRUKn7MR2gCiH+DX NIUyOiLEMFE+K8tT5+5WmMkiowhTdUU7VZRSt28K7cFpgI2cM77Q5C/Gj8s9I444mGEN+y qHlA45L9UpiKY8pyvFZ1vn6N1SSMPOwsgggu3TB0YPcMMMpwv6zFj4AqFBGJGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655216854; a=rsa-sha256; cv=none; b=qC3npe2alXNOucooVPh1WGt8CMTFOfTk00SGUO1xLbtvwNkSH/MH+8AJG8hiZ0hyc2HYtd oBhkVkbbfyR/dMe5Xvm47Iuev5t1Kmp1EvczrceSWEjJOityA0Srjze4o02/W/1pV7pwmu zEN3LB7yLHkLBXDgQClfjJPBXWm5RhpiJZ5uY//O3P7rsPAhhlFJxFfqkFksb+rN6pIDH4 PzUadbc1CvyIf5wAY1QQSpW1k4wbb/Hm2G8TnYl4PHtPV/N6NZ2lPuquH9mjGmdqCm+HMB DBKgHo9kdvX1n6TQMriHznT4uTexV4rwsvFxVgiDVDkPqsRST6Hi8nLL/rIrJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b="YV7//Fg0"; dmarc=pass (policy=none) header.from=posteo.eu; 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.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b="YV7//Fg0"; dmarc=pass (policy=none) header.from=posteo.eu; 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: 0E8413EA94 X-Spam-Score: -2.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: m/T25HjHEEbK Hi, Ihor Radchenko writes: > We actually have 2 options here: > 1. Change the docstring > 2. Change the template > > Can moving [PACKAGES] up break the existing configs? It might. > I am inclined to change the docstring instead. Thanks for having a look at this. It makes more sense for a package in PACKAGES to depend on a DEFAULT-PACKAGE than vice versa. =org-latex-packages-alist= and =org-latex-classes=' are two important docstrings. People are likely to have crafted their configuration by reading these documentation. I've also just checked that by default, for document export, DEFAULT-PACKAGES are inserted before PACKAGES --- the default templates from =org-latex-classes= do not include =DEFAULT-PACKAGES= nor =PACKAGES=, and in this case, =org-splice-latex-header= adds both default packages and packages at the end, with default packages coming first. =org-format-latex-header= is only used to generate images for preview, and in some cases by ob-latex to compile a document from a LaTeX src block. Regards, -- Sébastien Miquel