From: Arash Esbati <arash@gnu.org> Sent: Saturday, September 16, 2023 7:43:48 AM To: Jean Eid <jeid@wlu.ca> Cc: auctex@gnu.org <auctex@gnu.org> Subject: [EXTERNAL *] Re: Fontification of $ sign
Jean Eid <jeid@wlu.ca> writes:
> Anyway to turn off the fontification of math within $ signs?
IIRC that one is built in and cannot be turned off (I think this is
also documented somewhere in the manual but I didn't check). Therefore
you have to go through some more troubles (see Tassilo's message).
> The reason is that I use polymode with auctex and ess and when I have
> an inline R _expression_ with a dollar sign like so :
>
> the average salary is $\bar x=\Rexpr{mean(mydata$salary}}$
>
> the $ fontification bleed out.
The usual trick to fix this is to write something like this:
the average salary is $\bar x=\Rexpr{mean(mydata$salary}}$% $
You get misformed fontification, but you can limit it until EOL.
Best, Arash
* ⚠ Notice: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.