From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OCoJMO6X5mbzXQEAqHPOHw:P1 (envelope-from ) for ; Sun, 15 Sep 2024 08:16:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OCoJMO6X5mbzXQEAqHPOHw (envelope-from ) for ; Sun, 15 Sep 2024 10:16:46 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=psR88swz; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726388206; 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=QgdVpq1pgPc0YVe4Y4OaOOdX0H8ZmkqjJyESL/1cRCw=; b=CjFUEraWDrUSsKJgmjviWq58G6GYScVSWuytjNXrk4kftN6p/TslpGfLdF22U5KH3ymX3J h4yVY2+yHHn5xVnMVx8MHDKmtwOlavZPTNEK8pCMqYLIH7QQJ5VGJ6nJCc1TSFwhqHQA7B ORM1Bf/sl0bL+czJM96zr2irzsx6Vsiy25wfWrXV79BqVkT+427jqn0FVVfYQQR+B4NNm5 rXz8smD/LAsEr9hOOwQbEo5ghbRlT395L4bc7xtdR6gTdCxNgGKC/SajtjcsMxu9lvn3nK OIDs85uvC7n/zbqlO3LcfxxdUJAk1j8Fs4TJIvjuj4ZbCDGxJ5cKC/vGjhYnyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726388206; a=rsa-sha256; cv=none; b=eUtxuFeXO0JzYL/1L6RW3G2j2HyY8E6uF2bDmHHOTXySNkK2YnnrkiL3qxNjdPmpxZ3PJl XoxfcsZQM6kogCJKeoO0n+ZCkd3UY5/k02NX4qXr21SeFXdJl+41IagSi0cm8HGsaLYljf iuNp08sEAicQjhlNklshk50vBJcJX2rirxaxQZUrxoiT5LlY4YdkOScH1WlnSdsQ32ljm2 HUIo+UEi4CZpQdRO0OFQzkO2/hb5ebEo3Hqlx4Lt6D7AaI08pxStczCocY0my5JM/jBEZZ vkvafO8vDlQY+l0KGBUjgzQzgUL8QOHGvqy4iLJHd1Um4Pj537v/mQL7xf6uhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=psR88swz; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 6BE677291A for ; Sun, 15 Sep 2024 10:16:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spkQH-0003hS-Pg; Sun, 15 Sep 2024 04:15:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spkQE-0003XO-3H for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 04:15:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spkQB-0000RP-LN for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 04:15:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 57C15240027 for ; Sun, 15 Sep 2024 10:15:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726388149; bh=5sUcZPvce9bV07G6y2mmm2IVAZuzKpS3nAJYCIDuAMg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=psR88swzQFnJRKWgj25H1WGU2d4IvlHAfZiXGe97ah8JqBY0FZy9jbNPdMBSw5yW6 tOYd2SnTz0CP7JpyS3JBzuHGCwtej95n4To/yteqMNI7vQFu1gQP5xVSgD9MxgEscN NgQ/smmiF+jIgmf7hbTgMro5R8BigIPf9wT6g3uMPSyV7LwuctUfzfolVoIPlrzkeh bhw60nFBGg8hEzgE0pr6C5DsfXKV0TGe5lnV2ZOpYbNjPSARbmyaXWxHKl7MIUWxBG UysvhHEh1jp6zZAr9XM7fLjzV8H5B9bU96kcXqduQ+m1Xi5icBqL32EL+lRkm1X4zh LErswuASUD8uQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X618461VLz6tm4; Sun, 15 Sep 2024 10:15:48 +0200 (CEST) From: Ihor Radchenko To: Pedro Andres Aranda Gutierrez Cc: Org Mode List Subject: Re: [DISCUSSION]: LaTeX - include the xcolor package in the packages list In-Reply-To: <113128B8-EC80-4C8C-89C1-0E2384CE7958@gmail.com> References: <878qw2rqqu.fsf@localhost> <87mskhqs3p.fsf@localhost> <87h6apqnad.fsf@localhost> <113128B8-EC80-4C8C-89C1-0E2384CE7958@gmail.com> Date: Sun, 15 Sep 2024 08:17:23 +0000 Message-ID: <87ed5l72lo.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: 6BE677291A X-TUID: zLuZeKqjT4Rs Pedro Andres Aranda Gutierrez writes: >> I guess that you are referring to >> >> When using listings, you also need to make use of LaTeX package >> "listings". The "color" LaTeX package is also needed if you >> would like color too. These can simply be added to >> org-latex-packages-alist, using customize or something like: >> >> (require 'ox-latex) >> (add-to-list 'org-latex-packages-alist '("" "listings")) >> (add-to-list 'org-latex-packages-alist '("" "color")) > > A first step would be to use xcolor here. It gives just much more control over colors, if and when you need it. I do not see any downside changing our recommendation from using color to using xcolor in the docstrings. >> We can indeed include color package, but I do not see why we should do >> it by default. We may instead include it conditionally, only when >> listings backend is selected by the user. >> Just as it is done for engraved. > > I would say that we include graphicx by default, even when we are not going to use it in many documents. In my case it is a 50/50 of using graphics vs- pure text documents ;-) My stance is to minimize the number of loaded packages to the bare minimum. If something is not strictly necessary, we do not load it. Loading a bunch of extra LaTeX packages increases export time. In the future, when we have the new LaTeX preview branch [1] merged, we will cut the number of loaded LaTeX packages even more, only loading the packages that are necessary to export the specific document contents. For example, if the exported Org file does not contain images, no image-related packages will be used during Latex export. [1] https://list.orgmode.org/87lek2up0w.fsf@tec.tecosaur.net/ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at