I'm an absolute newbie to TeX. I'm trying to get the section numbers of a section to be at the end of the title. In other words, something like "Question 4.2". Instead I get "4.2 Question 4.2" which is not great. Also, the numbers should follow with indentation. For example:

Question 4.2
  4.2.1 ....
  4.2.2 ....

Any ideas how I can accomplish this?


You can change the format of the sections using the titlesec package. The indention of the subsections can also be done with it. However, I'm not 100% sure what you exactly mean with Also, the numbers should follow with indentation.



\titleformat{\section}{\normalfont \Large \bfseries}
{Question\ \thesection}{2.3ex plus .2ex}{}






  • Thank you. One more question, is it possible to make 1.1.1 not a subsection but something like a "enumerate" with items? – sduplooy Mar 27 '11 at 10:58
  • @sduplooy: You can redefine the labels of enumerate to include the section number as described in Include section number in list number. – Martin Scharrer Mar 27 '11 at 11:02
  • In addition to the answer above, which is certainly great, one could add \renewcommand\thesection{\Roman{section}} so that the numbering is in Roman number. Hope this is helpful for people. – zyy Mar 20 '17 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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