From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YAA9JhEiq2LeMgEAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 14:29:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cNf2JREiq2KkRgAAauVa8A (envelope-from ) for ; Thu, 16 Jun 2022 14:29:05 +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 54C92209A6 for ; Thu, 16 Jun 2022 14:29:05 +0200 (CEST) Received: from localhost ([::1]:46082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1ocS-00077W-1Y for larch@yhetil.org; Thu, 16 Jun 2022 08:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1oRy-0003uL-2J for emacs-orgmode@gnu.org; Thu, 16 Jun 2022 08:18:14 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:44981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1oRw-0007Sg-Dn for emacs-orgmode@gnu.org; Thu, 16 Jun 2022 08:18:13 -0400 Received: by mail-pf1-x429.google.com with SMTP id s37so1345540pfg.11 for ; Thu, 16 Jun 2022 05:18:12 -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=me5ZMkZYbbXP+C3LHxjvMK916EydrnLuSjrg3qjoJlY=; b=cApPOr37QjLRWplDvoine5JhvbDOjbpP5nvKzs3KQLYQhgml6F1lHocTxN5x+SX++8 p6msIlCnA6fpTDI7+be95mN70uYVwcooD3BZLOHIHv+nQ9GhrUA0Qvzh46WFV5+f9yyp o2bYj/x4N4hukaC9dgF2JBcfuVwZKxKIBsOQwCLYzzc/yl8UwD7my3H0hhD2qGNd2K7U O+cWAqkKz1Ds0CRYQtBeXwURfptZ8qSCtz2DyIKbOxJsMx0p97SWiCUQKnQmMHSI3xDg MRuSxwn0oedruQU6Z+2Q9Z7zlS/YQuX4FvE6Hp3xDGYMNPP4z+SsnasdY5FUWMebfr0h GdhQ== 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=me5ZMkZYbbXP+C3LHxjvMK916EydrnLuSjrg3qjoJlY=; b=1Bw9lZ59vXNPGil/CxfLKb7RwcvrFz8OxKxFuQIu2pZED6R0O4IS5Pxx8y+hz177WB 8acpsjrJQooO5Ae3JpULIFJJhuDN5G+vhqV03s0YUVwaC76QSBOtPw+fdiwc9xfgEHv0 ZeiHnv7ZmP/uTkUG/ZfJw1YYEsfXyHQJ1Piqj34jBBv0wrrgnpaX/6XHbOnTfCVcT6Hu 8fmfoRnXKLeEPwE1dqq9/uePas9BmGeH/QyaG1NzMIO3iVl78ZBIV/fRaEnU5YSnYCMi YqTzC+hxos2LrM0QRhvUSpXnoXvq1ZpzzC3RJ6ZunZO3EJg9pFv0nwNzxJUMC5w0H/6S vorg== X-Gm-Message-State: AJIora8TIwQDINCqv5Shr/4Y06+GP1TjytxVx+7PK7S9Tkv4OurBkOSs xyHqbJRMCx8NyJGLtzbscaw= X-Google-Smtp-Source: AGRyM1u6bKyWCRQylYarrPRoioSt5qvTYd1Jm8ZNYGZYTYO5kSJkXGe6gBWal/EssbhHy/dyKPg+yQ== X-Received: by 2002:a05:6a02:11a:b0:3fe:ab7:32fb with SMTP id bg26-20020a056a02011a00b003fe0ab732fbmr4248220pgb.543.1655381891027; Thu, 16 Jun 2022 05:18:11 -0700 (PDT) Received: from localhost ([173.254.200.134]) by smtp.gmail.com with ESMTPSA id p9-20020a63ab09000000b00408a9264b36sm1669797pgf.3.2022.06.16.05.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 05:18:10 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES In-Reply-To: <7fbcc96f-3b15-5f74-b1ff-2a2f3ed1303d@posteo.eu> References: <08a42351-1f4f-b0ed-ae68-63d08d9f7c06@posteo.eu> <87sfo7wfce.fsf@localhost> <7fbcc96f-3b15-5f74-b1ff-2a2f3ed1303d@posteo.eu> Date: Thu, 16 Jun 2022 20:19:18 +0800 Message-ID: <877d5gg5rt.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::429; envelope-from=yantar92@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1655382545; 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=me5ZMkZYbbXP+C3LHxjvMK916EydrnLuSjrg3qjoJlY=; b=HOAdyDLgTnuSI8obdIhA/PYnr4DPsDiMZkjDovza2mC4MZ3PUk8/y9n/q9+MGNgmCSqAgF VrfcCtTIEWZofiDGgFPkAoAFxwH2blKtcX7iVew5XrmCQR/sYMo9dDgR50txgE5w8/yEfr FiPX+7pl+T79xTPbyKGriUI9szHu4W/1vpYDv1qcknpr8LjIQb4xxtYFTjr/pJASD4nW5H NOGoUymA3xPd/QjXZXIS/Ck5sPzGWz1x80qONHuJbkrCsXmZZHEe3sKLm/sxLdWNjnaCWp P9lG22JYaWiEyLVZ1fNsPBjtL8UN9HHSt4qxH2trruiIT1MsSRt1HySf4SUDDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655382545; a=rsa-sha256; cv=none; b=oCQ7bYjzIKgCmQ06SGje42Lsw8+u/POkxxUE0IzLHmeNDUdVIOpfyY9P40t0PxS9VmZ6QN yH9L9GH+QGu38T3COs1OlAREqLNOGM2YIHh+yUQ0NHacvUuW+HUVDkQhjFgKburbVHCS+X duq91ukbKLESTaH69d/VLNAPG3fLDVRlcR+rqOv1RYYRp0SKW+qO5MkbbZfHHpw091hD2L hr0gfDe58I8F/JIOSI+5PC+RUdf4hFyMydIlZiEECykpZ97o/oMy0TlrVBLFLbr1QgPweS abyL9PpLbc/klMzGHEVPjycWn9+I8u7Oyy4HRJYWueIkRjuAXePXdjDGH5BpSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cApPOr37; 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: -5.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cApPOr37; 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: 54C92209A6 X-Spam-Score: -5.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0fEly7X1Jik/ S=C3=A9bastien Miquel writes: > 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. > ... > I've also just checked that by default, for document export, > DEFAULT-PACKAGES are inserted before PACKAGES --- the default > templates from =3Dorg-latex-classes=3D do not include =3DDEFAULT-PACKAGES= =3D > nor =3DPACKAGES=3D, and in this case, =3Dorg-splice-latex-header=3D adds = both > default packages and packages at the end, with default packages coming > first. > > =3Dorg-format-latex-header=3D is only used to generate images for preview, > and in some cases by ob-latex to compile a document from a LaTeX src > block. Thanks for the clarification! Now, your patch makes much more sense. Can you update the commit message explaining the above shortly and linking to this thread? Best, Ihor