Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am running Emacs 23 with AUCTeX for editing LaTeX source files. I'd like to be able to customise the font head and size of the section name.

To make things absolutely clear, the font inside the \section{} command, becomes slightly bigger in size and into a font head different from the rest of the buffer. Is it possible to customize this behaviour?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Put the cursor inside the curly brackets in \section{} (with some words inside the curly brackets), then type

M-x customize-face RET RET

and you will see the set of customisations for that face. In my emacs they are

enter image description here

You need to change the scale in height to make it bigger/smaller, and you can change the colour in foreground. Don't forget to save for future sessions and to save your options so your customisations won't be lost.

Another two useful commands to customise faces in Emacs are

M-x list-faces-display

which lists all faces in the display and

M-x customize-group RET font-latex-highlighting-faces RET

to customise the latex-related faces.

share|improve this answer
    
Thank you so much! :) –  kan Dec 15 '12 at 8:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.