From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +SIII0jztWCYQgEAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 10:43:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oIrzHUjztWCmCAAAbx9fmQ (envelope-from ) for ; Tue, 01 Jun 2021 08:43:52 +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 DC9E6144DC for ; Tue, 1 Jun 2021 10:43:50 +0200 (CEST) Received: from localhost ([::1]:46604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo004-0007dr-FW for larch@yhetil.org; Tue, 01 Jun 2021 04:43:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnzzg-0007cC-1y for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 04:43:24 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:46694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnzzd-0006Vx-9l for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 04:43:23 -0400 Received: by mail-pg1-x530.google.com with SMTP id n12so6930733pgs.13 for ; Tue, 01 Jun 2021 01:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=3ELY5wqjANdaEq/6GEZHLCV54WMwNjSYevk2u8egR4I=; b=E/nI/WqnEfQCPvpXDFaqf0cJPEA6iTSouUGjM6YbT8TCDlAmW7eymWpc7N1cPZvf/Z cNSgrK/M3ClKvuM2eNlk/WaadZ4udhWq6fe7P9trflH0wj7rtGHgU29OvdYz+aDPSVJY A0I4DRoSDB6L69a+56/zEficVTfdQuyXPl3z82p56t82lTqm1LsQ1tZzig3M/6xr3LKJ oj6dZPlQzzAOxps/spvR8bSWbxVDDxr7AnO4qPzKvIhgkll91y3wt46DP+vOgPJ0tons 73aahjKHyYToiG5eAbsVNDKt5ExV0VPpbzi/fjSbliGnl8poB/oYoJTTCDhDxl6yZNXg fCwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=3ELY5wqjANdaEq/6GEZHLCV54WMwNjSYevk2u8egR4I=; b=WOyXsawPF5CzvodZae+nRD5bUjI5c7eobfgFzt3DIJQ9adLe12d2sE9Oz9nsMM663M 2epCQ25vyFldQnhDSlD/ieEHy5KhI7ecMlT6jwzqSu/hkpbuKJuosWQ0wRRuObzP32qv 2ecfEwpd9oyLZoXT6J1Ky2JMnjKDrpyhq5d3Hiv0YqOSh+Kk4kbin/3DapBhJeqfg4iz 3taoV5gnoMLZ3Id8VJthFADobpFGVafF0p8aN3jLSA1zIxQgQwa6YdpEbOlSx0SO5eLC /x3gwHTuvNGrH5GHmLcegO97Gq7r3sLXNpmjMfcZXQK5uK6ZTE9wMI/Os/l67GevH/KH jdvw== X-Gm-Message-State: AOAM5338DpRbmbRbdFCTS0WVXDUPX6wx7bgL6mZnN7pnh7CHhUrx5ENz Eacmum+7itBzrHnkjwHiQG8= X-Google-Smtp-Source: ABdhPJwjFHBhoYoWLR2y9yKXl2zgMoQgg8MHyqvuC8YpzKg1/K7oIQQrndVOcG6lyhHO5+JHqY18ZQ== X-Received: by 2002:aa7:8b0d:0:b029:2e9:857e:c1d1 with SMTP id f13-20020aa78b0d0000b02902e9857ec1d1mr16358381pfd.33.1622536999102; Tue, 01 Jun 2021 01:43:19 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id k21sm13809324pgb.56.2021.06.01.01.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 01:43:18 -0700 (PDT) From: Timothy To: =?utf-8?Q?L=C3=A9o?= Ackermann Subject: Re: An org-latex face Date: Tue, 01 Jun 2021 16:42:27 +0800 References: User-agent: mu4e 1.4.15; emacs 28.0.50 In-reply-to: Message-ID: <87mtsaasbh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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=1622537031; 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=3ELY5wqjANdaEq/6GEZHLCV54WMwNjSYevk2u8egR4I=; b=eYJ6Kbe+2gFLnLUxwztNiL0mOSF/Am9faa4XTKPq2CzyBEXRVltfTG1Z7dwI4sXqmCEUlg 3U7dnrW4ynTAmpScYhRrE4RCsml35jciSnfl0cGtYhUQoTnENFZbjR2MZRq8b45JEIsKe1 XhWKPBd9Fgb61daWzCNWmrJNJdevyVaDrrSEkSXHZU0RaYT5ZJPGzwesFTH/hhBo1O9SNE B5BiFj23MS6shV7ZqCv48P/ITRTXqy3Dls5u/WZMvs6eZh8k4QtFIlgpxGXU9sz8IaHsGt fhKuvOZSVdd43BmZf9djEdmCkqpXp6Wfo16XYIFBzzOLzuKA+Wrykrr36NHPVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622537031; a=rsa-sha256; cv=none; b=JXMVUDrsuHuSv9mi6GDaDWQM4QSzWLxTtDtzr++9OKEqYBTmnli1dkXTn+pJOEKCdM3glC NaqLyQZfc/EzBun4yOkFttUVUli9MrZCyr5dypluztyYWfoxdNrXO9PZ11jUwHQ1J9QAkl VRmwxTCGpxUq9cDELLObJTflXh+6CzWHAbQUoqRKynbx77A69CI5gOnKDfQEcLo+1pPd59 cH2CyS/B6SzXfCMe7WHlK1eYH97k0N4DiC0ZfOSluVdIoy0lL5Xv84Aatiu5Nb/XOtXTGF lXu1gntB+mOcPbcBg1q5qAWsBs0wb0BqWorIcBmCo754/It0TYQhRunZd23TKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="E/nI/Wqn"; 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: -2.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="E/nI/Wqn"; 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: DC9E6144DC X-Spam-Score: -2.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: IH/4Cb2I5WQl --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi L=C3=A9o, For what it=E2=80=99s worth, I currently make do with: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (setq org-highlight-latex-and-related '(native script entities)) =E2=94=82 (add-to-list 'org-src-block-faces '("latex" (:inherit default :ex= tend t))) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 All the best, *Timothy* --=-=-= Content-Type: text/html; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

Hi L=C3=A9o,

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

(setq org-highlight-latex-and-related=
 '(<=
/span>native script entities))
(add=
-to-list 'org-src-block-faces '((:inherit default :extend t)))

All the best,
Timothy

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

Hi,

When it comes to preview inline La= TeX fragments within org-mode, the org package applies the `org-block` face= . It would be nice to *treat inline latex block specially*, to make integra= tion of the those preview-block easier when surrounded by plaintext. This f= eature would allow to have a theme that highlight blocks (source code, exam= ples) without the background artifact you can see in attachment when previe= wing latex fragments.
It seems that a way to adress this is to ad= d 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 sub= routine 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
--=-=-=--