Go to the first, previous, next, last section, table of contents.

Inserting Font Specifiers

Perhaps the most used keyboard commands of AUC TeX are the short-cuts available for easy insertion of font changing macros. They all put the font change inside a TeX group, a practice that help preventing subtle errors. The most significant advantage of using these command instead of typing it in yourself, is that the braces will always match correctly.

If you give an argument (that is, type C-u) to the font command, the innermost font will be replaced, i.e. the font in the TeX group around point will be changed. The following table shows the available commands, with -!- indicating the position where the text will be inserted.

C-c C-f C-r
Insert roman {\rm -!-} text.
C-c C-f C-b
Insert bold face `{\bf -!-}' text.
C-c C-f C-i
Insert italics `{\it -!-\/}' text.
C-c C-f C-e
Insert emphasized `{\em -!-\/}' text.
C-c C-f C-s
Insert slanted `{\sl -!-\/}' text.
C-c C-f C-t
Insert typewriter `{\tt -!-}' text.
C-c C-f C-c
Insert SMALL CAPS `{\sc -!-}' text.
C-c C-f C-d
Delete the innermost font specification containing point.

Command: TeX-font arg
(C-c C-f) Insert template for font change command.

If replace is not nil, replace current font. what determines the font to use, as specified by TeX-font-list.

User Option: TeX-font-list
List of fonts used by TeX-font.

Each entry is a list with three elements. The first element is the key to activate the font. The second element is the string to insert before point, and the third element is the string to insert after point. An optional fourth element means always replace if not nil.


Go to the first, previous, next, last section, table of contents.