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

How can I format with the titlesec package that I get somethine like this (this is a twocolumn document):

enter image description here

I do not know how to get the number to the left and the title in the center is this possible?

Thanks a lot!!!

share|improve this question
changed title to indicate that section number is flush left; ragged left means flush right. – barbara beeton Mar 25 '12 at 16:54
up vote 11 down vote accepted

You can put the title in a minipage with \centering inside it. This will allow long wrapped titles to wrap properly: (Thanks to egreg for making the centring code better.)


\section{A section}
\section{A very long section title to show that it will wrap correctly}

output of code

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.