TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. I wanted to change the way the section headers looked like to make it look better.

So, I want to be able to change the font and font size, style etc. I would also like to add horizontal lines to give it more style. It would roughly look like this:


Well something with more decoration than the default style atleast.

Can anyone tell me how can I make these changes? I would also be useful if I can find some already implemented section styles.

share|improve this question
Your university thesis template is the article document class!? Is this a Master's thesis? Because for a PhD thesis, article class is a bad idea... – Seamus Oct 31 '10 at 21:28
@Seamus yah its a Masters thesis template. – sfactor Oct 31 '10 at 21:29
up vote 11 down vote accepted

The titlesec package or secsty might have the resources you need.

If it's a longer project, look at the memoir document class, which has more options, but will involve more work to conform to university guidelines.

Here's a very quick sectsty version of what you want.


And to do roughly the same thing with titlesec do the following:


I think I prefer the titlesec version, because titlesec is a better overall package, in my opinion. If you want to change the thickness of the titlerules here, the second one breaks if you add an argument to it. So put \newcommand{\trule}{\titlerule[1pt]} or whatever thickness you want between the \usepackage and the \titleformat commands. Then replace each \titlerule with \trule.

As for a memoir version? Work it out yourself! The memoir documentation is excellent.

share|improve this answer

Have a look at the titlesec package. It comes with quite many features that are definitely useful for you. Also, if I remember correctly, there are examples of usage in the appendix of the documentation.

share|improve this answer

Your Answer


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.