Discussion:
font-latex-title-*-face color on light background terminals
Dan Nicolaescu
2005-03-02 06:40:14 UTC
Permalink
font-latex-title-[123]-face are defined to have the foreground
yellow. On light background terminals (like white) it is hard to read
these faces.
Different colors could be used for dark and light backgrounds. For
example blue for light backgrounds (no particular reason to choose
that, use whatever you like). Like so:

--- font-latex.el Tue Mar 1 22:19:59 2005
+++ ../auctex/font-latex.el Tue Mar 1 13:16:37 2005
@@ -163,7 +162,8 @@
(number-to-string num) ".")
:group 'font-latex-highlighting-faces)))
(eval `(defface ,face-name
- '((((type tty pc) (class color)) (:foreground "yellow" :weight bold))
+ '((((type tty pc) (class color) (background dark)) (:foreground "yellow" :weight bold))
+ (((type tty pc) (class color) (background light)) (:foreground "blue" :weight bold))
(t (:height 1.2 :inherit ,(intern (concat
"font-latex-title-"
(number-to-string (1+ num))
Ralf Angeli
2005-03-02 09:13:53 UTC
Permalink
Post by Dan Nicolaescu
font-latex-title-[123]-face are defined to have the foreground
yellow. On light background terminals (like white) it is hard to read
these faces.
Different colors could be used for dark and light backgrounds. For
example blue for light backgrounds (no particular reason to choose
Thanks for the suggestion. When looking at the definitions I noticed
that there got something lost on the way to their current state. For
terminals it was originally tried to simulate the fontification with
different heights on windowing systems by giving the sectioning
commands different colors. I think this does more harm than good as
it might confuse a user. Now all sectioning commands have the same
color on terminals; yellow on a dark background and blue4 on a light
one.
--
Ralf
Loading...