auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: How to change the font color of "intertext".


From: Adam Johnson
Subject: [AUCTeX] Re: How to change the font color of "intertext".
Date: Mon, 28 Mar 2005 09:45:27 -0500

One trade-off is:

The font-size of super- or sub-scripts in the inline math environments inside "intertext" is as big as the normal text.
---------------------------------
e.g.   \intertext{Here $\boldsymbol{1}_{\{\cdot \}}$ denotes ...}
---------------------------------

The color of $\boldsymbol{1}_{\{\cdot \}}$ are same to a regular formula (brown in my case) and the colors of "Here" and "denotes" are same to regular texts (black in my case). However, {\{\cdot \}} is same size as \boldsymbol{1}. (It is still lower than \boldsymbol{1} to show that it is subscript. This is good. But it should have a smaller font-size to show that it is subscript, too.)

BTW: I'm using AUCTeX 11.55
                        MikTeX 2.4
                        CVS Emacs 21.3.50.1
                        Windows XP.
--------
Best Regards,
Adam
----- Original Message ----- From: "Adam Johnson" <address@hidden>
To: "Ralf Angeli" <address@hidden>
Sent: Monday, March 28, 2005 9:18 AM
Subject: Re: How to change the font color of "intertext".


Thanks, Ralf. I don't know whether I did the correct way or not. I'm using "C-h v" to customize it, which produces the following results:
----------------------------------------------
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
'(font-latex-user-keyword-classes (quote (("intertext" ("intertext") (:family "font-lock-type-face") (command 1))))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
)
----------------------------------------------
To my surprise, it give the same color inside "intertext" as the text parts.

BTW: I'm using AUCTeX 11.55
                        MikTeX 2.4
                        CVS Emacs 21.3.50.1
                        Windows XP.
--------
Best Regards,
Adam
----- Original Message ----- From: "Ralf Angeli" <address@hidden>
To: "Adam Johnson" <address@hidden>
Cc: <address@hidden>
Sent: Monday, March 28, 2005 2:44 AM
Subject: Re: How to change the font color of "intertext".


[Using new mailing list address in Cc.]

* Adam Johnson (2005-03-27) writes:

The font color inside the command "intertext" of AMS environment "align" is same to equation parts. However, it in fact should share the same color as
the text parts.  (This is reason it is called "intertext".)  How can I
change the color scheme?  Thanks.

Using normal text color together with normal fontification is not
possible.  You could add a new keyword user class by customizing
`font-latex-user-keyword-classes', add "intertext" to it and use
e.g. the face `font-lock-type-face' for it.  This will give you a
green color for the macro argument if you haven't changed the face.
It is currently not possible to use standard faces like `default' or
`bold' with `font-latex-user-keyword-classes'.  I am in course of
fixing this.

--
Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]