From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SCTxFdoLvmDWHAEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 14:06:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WLhlEdoLvmAuFgAAB5/wlQ (envelope-from ) for ; Mon, 07 Jun 2021 12:06:50 +0000 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 A562718400 for ; Mon, 7 Jun 2021 14:06:49 +0200 (CEST) Received: from localhost ([::1]:43806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqE1o-00009G-FH for larch@yhetil.org; Mon, 07 Jun 2021 08:06:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqE0V-00007O-Tn for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 08:05:27 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:43629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqE0U-0000g0-3W for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 08:05:27 -0400 Received: by mail-ed1-x52d.google.com with SMTP id s6so20010806edu.10 for ; Mon, 07 Jun 2021 05:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tPZJKlrxW0j9NCwYPLeNosXKaJJOrmEB2Eo6TW5RJRQ=; b=KKhstQ+pKeh2U+rfFw11VIz/8JQRmwZEqn3RqcEEpWxVLzTc+J+ujaLhXlK3B4IviQ PZzQGCQQ9OOx4BsL9D9cnwsRIKRXOhZWvhYjTAJZRpJY0N5RIKI/19EQo7m6aucaY9+O NbzCi1IV7YyFjhF3k2vJV8PqqcMpgsE0IQ8IcpPxaCoJZJVdK3s9odcxF7jCscHB4cN9 hFaLd0APuIFFCppYtc23j8BHHacX9tKhOqBnGJVRvba5Xbm3Uj8sQ/E4ekUGu65zcgEj m+LERgsxBV13Aq92Ja0t/4CAJBYqrdjn9cspcGNLREoGVjUY/lGbfWjgqgM/5ruNTUu0 Edyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tPZJKlrxW0j9NCwYPLeNosXKaJJOrmEB2Eo6TW5RJRQ=; b=M1gtGaXf1Or8HGxr4lXCmA9PFS9QHNKbQgR7uMCWh6W/Mu6RdA0oAL/ziYqeSJRLyj s4xDKKyRBlrVumd1L3VMR0D7UW1AipsgJqgI4vN83Uacf6JTy4dokWJvcP0FGszW/h07 B6vQjUcCs08kB6wgsu88teBH2xkOrWBtD161rIcIxbsHrCDd94dj1SRkAr3BbER795gz EiGG5MzQAZSbc5qUsnlCbevphZOU7d2+Q+1+Cxg/+dYzoOVrRVCz1/9knGwovG//wyrP mb1QC9VlVP6ki1hC1xPrG07aa3NQ5UcUKixn8STCRU3yfvNOulvBHjKVcWCSQP/DSw/j WAPw== X-Gm-Message-State: AOAM533XVcCHPCpD7oNZGn9CI2uLCcIH+JkpmEi4y92u4x9VwqBy9Ghp 9xt2TlbbMETf2WKFdFzTL4ucFvhALniNqUzIms9kvmve X-Google-Smtp-Source: ABdhPJwLAO1xeYaJW2FyTTUpVw/U+eUrTIaLuhYiRQ8Z1KvfoBsf7o8yQ7LW7wNTxX+ZHRkedSUVTeL3UR/b6iEuz7A= X-Received: by 2002:a05:6402:4414:: with SMTP id y20mr19662822eda.130.1623067523446; Mon, 07 Jun 2021 05:05:23 -0700 (PDT) MIME-Version: 1.0 References: <87mtsaasbh.fsf@gmail.com> In-Reply-To: <87mtsaasbh.fsf@gmail.com> From: =?UTF-8?Q?L=C3=A9o_Ackermann?= Date: Mon, 7 Jun 2021 14:05:12 +0200 Message-ID: Subject: Re: An org-latex face To: Timothy Content-Type: multipart/alternative; boundary="0000000000002e795d05c42bdb62" Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=leo.komba@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623067609; 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=tPZJKlrxW0j9NCwYPLeNosXKaJJOrmEB2Eo6TW5RJRQ=; b=V5yBAkG1/nM5xNVDMnq2sn3qLOu7pcHwE8LPgRaG5sEfkQJluNuwSuF34cWxfYwMtJkxeJ FFk2aNYOu0bamlrLwz9fWxQi1i6jCIGjHRjUyjvhuq94iJxwA0flQ+HD2JBeJjUrPOOZgg k9nIdtq0kE1JOh+4jbxhskTuwObohfM1NdFzZha9xG2rkd+/tIkG7Qj6u/oa5PJD1z/2yx kQ5TXbB6GievjlRKeymPDNpBr348SMXlwsFinzMx4FizgDviSHhtwP2oPvsijyn35A/Q6U HvD/Gf/8rAWlDvLLznX8ZbVly4xkoA016fyYFSE3tCFGhHvixAuzIo2bCs2jMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623067609; a=rsa-sha256; cv=none; b=WJ57ZdI9Qxh/uBospDEyx6fyPWs8TJSOxo8lYtfQcNEAs4MogZ+WkTBB7oE+UfmY2wkcdR V5Jidx0qK+T1i/NV+AzDIeBkyUUUgt3Fiv7rreZDWaRRfdpb5EolYIcftwgfz6BQhm9ZU4 VQUiKfN0D0vk4jOSyxGANI5yRkm1hD8YA6+w/0YFfkP0bc9t7B13rMmO0/pXduOliFJY3J yEEfgGrxuHoM1mV7//wt3jbbcDYmFJMh79P94bHnDGbtKVmKI3n1QvwEkglUBXte/H1c9t 6U8zsSoF8Vsqo7e6O0RnxD7BUZZsZD+Z8Nxiwa2VZMqVlBzgTRU1qvQZr68OPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KKhstQ+p; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KKhstQ+p; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A562718400 X-Spam-Score: -1.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: Rse28p/g9D0a --0000000000002e795d05c42bdb62 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi both! Thanks a lot for your answers, it looks pretty now :) Best, Leo Le mar. 1 juin 2021 =C3=A0 10:43, Timothy a =C3=A9crit= : > Hi L=C3=A9o, > > For what it=E2=80=99s worth, I currently make do with: > > (setq org-highlight-latex-and-related '(native script entities))(add-to-l= ist 'org-src-block-faces '("latex" (:inherit default :extend t))) > > All the best, > *Timothy* > > * From*: L=C3=A9o Ackermann <%22L=C3=A9o+Ackermann%22+%3Cleo.komba@gmail.= com%3E> > * Subject*: An org-latex face > * To*: "emacs-orgmode@gnu.org" > * Date*: Tue, 01 Jun 2021 14:04:47 +0800 > Hi, > > When it comes to preview inline LaTeX fragments within org-mode, the org > package applies the `org-block` face. It would be nice to *treat inline > latex block specially*, to make integration of the those preview-block > easier when surrounded by plaintext. This feature would allow to have a > theme that highlight blocks (source code, examples) without the backgroun= d > artifact you can see in attachment when previewing latex fragments. > It seems that a way to adress this is to add another `org-latex` face, as > we already have with `org-quote`. One could also change the > `org-src-font-lock-fontify-block` function to include a subroutine for > inline latex blocks. Nevertheless, the later seems to be harder to > customize... > What do you think of this ? > > Thank you for your job on this amazing program! > Have a nice day! > > Best, > Leo > --0000000000002e795d05c42bdb62 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi both!
Thanks a lot for your answers, it looks pretty= now :)

Best,
Leo

Le=C2=A0mar. 1 juin 2021 =C3=A0=C2=A010:43, Timo= thy <tecosaur@gmail.com> a = =C3=A9crit=C2=A0:

Hi L=C3=A9o,

For what it=E2=80=99s worth, I currently make do with:

<=
span style=3D"color:rgb(81,175,239)">(setq org-highlight-la=
tex-and-related '<=
span style=3D"color:rgb(197,123,219)">(native script entities))
(add-to-list 'org-src-block-faces '("latex"=
 (:inherit default :extend t)))

All the best,
Timothy<= /b>

From: L=C3=A9o = Ackermann
Subject: An org-latex face
To: "em= acs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Date: Tue, 01 Jun 2021 14:04:47 +0800

Hi,

When it comes to preview inline LaT= eX fragments within org-mode, the org package applies the `org-block` face.= It would be nice to *treat inline latex block specially*, to make integrat= ion of the those preview-block easier when surrounded by plaintext. This fe= ature would allow to have a theme that highlight blocks (source code, examp= les) without the background artifact you can see in attachment when preview= ing latex fragments.
It seems that a way to adress this is to add= another `org-latex` face, as we already have with `org-quote`. One could a= lso change the `org-src-font-lock-fontify-block` function to include a subr= outine for inline latex blocks. Nevertheless, the later seems to be harder = to customize...
What do you think of this ?

<= div>Thank you for your job on this amazing program!=C2=A0
Have a = nice day!

Best,
Leo
--0000000000002e795d05c42bdb62--