emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Léo Ackermann" <leo.komba@gmail.com>
To: Timothy <tecosaur@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: An org-latex face
Date: Mon, 7 Jun 2021 14:05:12 +0200	[thread overview]
Message-ID: <CAFhsWEjjBPN2-ePFwDj7S-_ZTPQwm2txjeLk4d8fbpCB_QXb5g@mail.gmail.com> (raw)
In-Reply-To: <87mtsaasbh.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]

Hi both!
Thanks a lot for your answers, it looks pretty now :)

Best,
Leo

Le mar. 1 juin 2021 à 10:43, Timothy <tecosaur@gmail.com> a écrit :

> Hi Léo,
>
> For what it’s worth, I currently make do with:
>
> (setq org-highlight-latex-and-related '(native script entities))(add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t)))
>
> All the best,
> *Timothy*
>
> * From*: Léo Ackermann <%22Léo+Ackermann%22+%3Cleo.komba@gmail.com%3E>
> * 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 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 background
> 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
>

[-- Attachment #2: Type: text/html, Size: 5329 bytes --]

      reply	other threads:[~2021-06-07 12:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01  6:04 An org-latex face Léo Ackermann
2021-06-01  6:44 ` Sébastien Miquel
2021-06-01  8:21   ` Sébastien Miquel
2021-06-01  8:42 ` Timothy
2021-06-07 12:05   ` Léo Ackermann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFhsWEjjBPN2-ePFwDj7S-_ZTPQwm2txjeLk4d8fbpCB_QXb5g@mail.gmail.com \
    --to=leo.komba@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tecosaur@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).