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.

Are there some magic lines to be placed in the preamble that would, like in CSS, specify how each generic section or subsection in the whole document should be formatted?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

You can use the titlesec package for this.

A short example would be \titleformat*{\section}{\itshape} to change the style of \section to \itshape. See the package manual for more details.

See also:

What's the right way to change display of chapter headings?

How to format the chapter heading?

Formatting a \paragraph to look like a \section

or questions tagged with .

share|improve this answer

there are a lot of packages which support customizing titles and headers:

http://mirror.ctan.org/help/Catalogue/bytopic.html#title

share|improve this answer

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.