From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eHqHK4Oo3mYzHgEA62LTzQ:P1 (envelope-from ) for ; Mon, 09 Sep 2024 07:49:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eHqHK4Oo3mYzHgEA62LTzQ (envelope-from ) for ; Mon, 09 Sep 2024 09:49:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=baNI2UiA; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725868163; 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=X4cj6vWJW45BxCmSKQUABT1oy7f1K435Hrn9g5HYS2o=; b=tk8+ZbE/XU4Yo22Xx26Bqg3kQGjNOvvSF7MUVOT/UkmAYzYz/qb8KbZmMzysIGUH0zm+hP ZOvnBLkvLgWiV4vt7izY7Dxv5OnhTELTAy00S+gTuVICg7xqZpU846jEYSQTMiwPkci8Cj rYXo1lWkoYuLZPi3G/VjLd5rkykmq3JRTV20CWd0J8THx3IqZw+VKhM5XvxdgaBff+wqxf uP+946EGNWr7mqar3XJyuhcJeLNEUZSf3lr9y9Lu2dP6G5+s5Isah+BJhyLc/disnKCsVo MHYkyBswGiT7LHer22ycSTe1DrOs8WddwY5A3bP67m14x8K+m6nwlYsFVU+1BQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=baNI2UiA; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725868163; a=rsa-sha256; cv=none; b=M2DTQgOmHEKiNvTfpPvHOkZ35KuACvHoQL4BLZeeo/jz5DDYV9RdjM4hxL3+8IHYjZVSU6 UVu4qLVkEedxCe+2wp7nl104UJxiKAfw/wwFlHNJLqAysVOzKaLhTJ3F/HdoMLK/cR7kOj cRA5Q2M+g4Bzzf0kQq9jMDrjL5TxyFSrv/kIIpGTgaG+4FxRVSUNrS+lZjfQ8uN4BXTDZs sdbdQwWIZ8p2F/ZRvHCUos2Xy4/wLMxSq/BeqbpzBGfx98i33aBI4S9Z9Wc1KJ+cbaAlDa lBKOWiET64rygSgbedxyIgVuejWnaQEsoo11LidYqbbKcZp8Ixit/gUuxcRa8w== 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 724B775D7A for ; Mon, 09 Sep 2024 09:49:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snZ8T-0006iQ-Le; Mon, 09 Sep 2024 03:48:33 -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 1snZ8S-0006i2-1L for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 03:48:32 -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 1snZ8P-00043E-Su for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 03:48:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9B68924002A for ; Mon, 9 Sep 2024 09:48:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725868103; bh=C9iV+aF9era7KmWjMdPt0AmCHAfyO+a7QSCIcIhsYRg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=baNI2UiAxFVAPjnejiyd8b8VToOA2QfiltwqJ+ecOAbkfHlRwD3FuuRvkRCYwvTWv jgMr5C523fE5qu0yqt2jWWD6ya8aDiHHiAtmlGX+HV42555kpnRdfMOmNItzpf3GL+ bhbiGFxF6SqzA2MT//rH5rNfNIDYv9FIqsFNq2vzwYKCiNwxD9veswFlI8r3yZNw9J NShX1TpPMMp9NuzSbkUW9tnJYktg2kcUX7Z1SaK2LWPUQNOgBj5APUCEV1SFWuiOWE q9zigvZ8BYDIivJMraUUiUnMv77n8cD67NRmZi8hH/8mKukI67OvV4TAjqJNMfAjMQ WbZ5cbzVV2KBQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X2JqB6M0Rz9rxP; Mon, 9 Sep 2024 09:48:22 +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: References: <878qw2rqqu.fsf@localhost> <87mskhqs3p.fsf@localhost> Date: Mon, 09 Sep 2024 07:49:46 +0000 Message-ID: <87h6apqnad.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Spam-Score: -9.71 X-Migadu-Queue-Id: 724B775D7A X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.71 X-TUID: MSW+Eecrb6ys Pedro Andres Aranda Gutierrez writes: > Ahh, sorry... > > Look at the docstring for `org-latex-engraved-preamble', for example. That's not relevant. When engraved is used, we automatically include xcolor. > ... And > then, there are other places where it is not mentioned explicitly, but not > including it may result in a compilation error > (`org-latex-listings-src-omit-language', > for example) May you elaborate? > It could also help a lot in `org-latex-src-block-backend': there we ask to > load package color... why not xcolor to get a richer control of colours? 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")) 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at