Discussion:
[AUCTeX] Font size of TABLE-OF-CONTENTS or RefTex Select
163 mail
2018-01-04 03:01:37 UTC
Permalink
Hi, I am using the auctex package and find it amazing.
Thank you.

I am wondering that does there exist some settings of
the font size of TABLE-OF-CONTENTS (C-c =) or the RefTex
Buffer(C-[ Ret), Since in many times I think I do not need
such a big font size for these buffers, and I just use these buffer for reference.

Thank you very much. I am looking forward for your replay.

Best,
Bruce Wang
Arash Esbati
2018-01-04 13:39:45 UTC
Permalink
Post by 163 mail
I am wondering that does there exist some settings of
the font size of TABLE-OF-CONTENTS (C-c =) or the RefTex
Buffer(C-[ Ret), Since in many times I think I do not need
such a big font size for these buffers, and I just use these buffer for reference.
Hi Bruce,

according to RefTeX manual[1], there is

User Option: reftex-section-heading-face

Face name for section headings in toc and selection buffers.

which is set to `font-lock-function-name-face' per default. Try to
customize `reftex-section-heading-face' acc. to your needs. HTH.

Best, Arash

Footnotes:
[1] https://www.gnu.org/software/auctex/manual/reftex.html#IDX365
Arash Esbati
2018-01-05 22:07:54 UTC
Permalink
Thank you for your replay.
Hi Bruce,

you're welcome. For future mails to the list, please use the "reply to
I tried to customize "font-lock-function-name-face”, But all the font
related to the function part are changed, including "\begin{equation},
\section{balabala}”, Since I just want to make the font size in “toc”
smaller, do you know how to customize `reftex-section-heading-face’
only? Thanks.
It is hard to help with this issue or give a hint as you provide no
information about the Emacs version you're using and your OS etc.
Please provide more information.

Until then, a wild guess is: Customize (M-x customize-face RET)
`font-lock-function-name-face' and let it inherit from default; maybe
that helps.

Best, Arash
163 mail
2018-01-06 03:25:38 UTC
Permalink
Hi,

Thank you. I’ve tried to customize `font-lock-function-name-face’
But all the face related to it will be changed. Now I am using the
Emacs 25.3.1 in the MacOS (10.13.2). I am wondering does there
Has a way to just customize the reftex-section-heading-face?

Best,
Bruce
Post by Arash Esbati
Thank you for your replay.
Hi Bruce,
you're welcome. For future mails to the list, please use the "reply to
I tried to customize "font-lock-function-name-face”, But all the font
related to the function part are changed, including "\begin{equation},
\section{balabala}”, Since I just want to make the font size in “toc”
smaller, do you know how to customize `reftex-section-heading-face’
only? Thanks.
It is hard to help with this issue or give a hint as you provide no
information about the Emacs version you're using and your OS etc.
Please provide more information.
Until then, a wild guess is: Customize (M-x customize-face RET)
`font-lock-function-name-face' and let it inherit from default; maybe
that helps.
Best, Arash
Arash Esbati
2018-01-06 15:06:56 UTC
Permalink
Post by 163 mail
Thank you. I’ve tried to customize `font-lock-function-name-face’
But all the face related to it will be changed. Now I am using the
Emacs 25.3.1 in the MacOS (10.13.2). I am wondering does there
Has a way to just customize the reftex-section-heading-face?
Hi Bruce,

you cannot customize `font-lock-function-name-face' like a normal face
as it is defined as:

(defcustom reftex-section-heading-face 'font-lock-function-name-face
"Face name for section headings in toc and selection buffers."
:group 'reftex-fontification-configurations
:type 'symbol)

I'm not on MacOS, so I can't tell. But my suggestion would be to try 2
things:

1) Do `M-x list-faces-display' and choose a face you like, then
customize `reftex-section-heading-face' to that face and see if that
works.

2) Put something like this in your init file and see if this works:

(defface my-reftex-section-heading-face
'((t :inherit font-lock-function-name-face :height 75))
"My RefTeX section heading face.")

(setq reftex-section-heading-face 'my-reftex-section-heading-face)

I consider 2) as last resort, maybe other MacOS users could try what you
describe and see if they face the same problem.

Best, Arash
163 mail
2018-01-08 10:35:42 UTC
Permalink
Thanks. I’ve achieved all the settings.

Best,
Bruce
Post by Arash Esbati
Post by 163 mail
Thank you. I’ve tried to customize `font-lock-function-name-face’
But all the face related to it will be changed. Now I am using the
Emacs 25.3.1 in the MacOS (10.13.2). I am wondering does there
Has a way to just customize the reftex-section-heading-face?
Hi Bruce,
you cannot customize `font-lock-function-name-face' like a normal face
(defcustom reftex-section-heading-face 'font-lock-function-name-face
"Face name for section headings in toc and selection buffers."
:group 'reftex-fontification-configurations
:type 'symbol)
I'm not on MacOS, so I can't tell. But my suggestion would be to try 2
1) Do `M-x list-faces-display' and choose a face you like, then
customize `reftex-section-heading-face' to that face and see if that
works.
(defface my-reftex-section-heading-face
'((t :inherit font-lock-function-name-face :height 75))
"My RefTeX section heading face.")
(setq reftex-section-heading-face 'my-reftex-section-heading-face)
I consider 2) as last resort, maybe other MacOS users could try what you
describe and see if they face the same problem.
Best, Arash
Loading...