views:

663

answers:

3

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...

produces:

a)

Blah blah bla...

instead of what I want:

a) Blah blah bla...

Anything I could do?

Thanx a lot!

+1  A: 

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).

dmckee
+3  A: 

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:

\renewcommand{\labelenumi}{\alph{enumi})}
\begin{enumerate}
  \item Blah blah bla...
  \item Next one
  \item etc.
\end{enumerate}

and you would get something like

a) Blah blah bla...

b) Next one

c) etc.

elcelista
I did and I was using this before, but I needed a TOC entry, so wanted to keep (sub)subsections.
big_gie
You can also add a TOC entry anywhere you want with something like\addcontentsline{toc}{subsection}{Name}
elcelista
+4  A: 
las3rjock
Thanx a lot, this is exactly what I was looking for :)I formated the subsection's name to bold with:\titleformat{\subsection}[runin]{\bfseries}{}{}{}[]
big_gie