I want my text to appear right after the call to \subsection{Name} but I can't find how to do it. I'm using the article class.

An example of command:

\subsection{a)} Blah blah bla...



Blah blah bla...

instead of what I want:

a) Blah blah bla...

Anything I could do?

  • Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Jan 31, 2012 at 16:42

5 Answers 5


Your specific example can be solved by using the enumerate environment (as mentioned by elcelista), but your general question can be answered by using the titlesec package. The titlesec package defines the \titleformat command which allows any sectioning command to be easily redefined. The syntax of the \titleformat command is


To eliminate the newline after a subsection heading, put the following in the preamble for your document:


Here is an example document and its output:


Blah blah bla...

Output of titlesec example


I don't know of any way to do that with (sub)section headings, but have you considered the enumerate environment? If you're trying to make an ordered list, you can do:

  \item Blah blah bla...
  \item Next one
  \item etc.

and you would get something like

a) Blah blah bla...

b) Next one

c) etc.

  • I did and I was using this before, but I needed a TOC entry, so wanted to keep (sub)subsections.
    – big_gie
    Sep 25, 2009 at 14:42
  • 1
    You can also add a TOC entry anywhere you want with something like \addcontentsline{toc}{subsection}{Name}
    – elcelista
    Sep 25, 2009 at 20:59

Just to add on the other answers, or maybe for other readers coming here:

If you just want some initial bold text, and suppress the newline, that is what \paragraph{My title} Here some text. would do. Also see here.

Maybe you also want to define your custom section type (\mysection{My title} ... or so). This would be via package titlesec and \titleclass command. See here for more.


Small addition to the first answer so you don't have to use for example \subsection*{a)}. You can reformat the subsection title using the \titleformat command and then modify the \thesubsection as you like separately. I have used something like this to format both section and subsection titles:

\renewcommand{\thesection}{Problem \arabic{section}}



\subsection{} Some more text here

this will give you:

code output


I'm not entirely sure that I understand you problem. I am assuming that your a) is meant to be the subsection numbering, and that "Blah blah blah" is mean to be the title, and that you have not exhibited the text of the subsection at all.

Subsection are numbered (lettered?) automatically, the argument is the title:

 \subsection{Blah blah blah}
 Then the text of the subsection...

will generate something like:

3.1 Blah blah blah

Then the text of the subsection...

where the c)

To change the formatting of the subsection header, you either hack the class definition or choose a more flexible class (like memoir).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .