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

Is it possible to start your text right after the section or subsection title (without starting a new line)? Thank you. I hope the question is clear enough and does not need a MWE.

share|improve this question
It is always best to provide a MWE as it maximises the chance that (a) you supply enough information and that (b) the person answering tests their answer. In this case the answer probably depends on which class you are using, but you haven't said. – David Carlisle Feb 21 '13 at 0:36
up vote 9 down vote accepted

David has already provided the package-free solution; here's another option, using the titlesec package (simply selecting the runin predefined format):




\section{Test Section} 
\subsection{Test Subsection} 


enter image description here

share|improve this answer

In the default classes the run-in style is used for \paragraph and \subparagraph to change \section to use the same find it's defintion, in article it is

\newcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%

and you need to invert the sign of the 3/4th arguments as that is used as a switch to specify run-in style so

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {3.5ex \@plus 1ex \@minus .2ex}%

Also changed the 4th arg to specify 1em space after (rather than below) the heading, as for \paragraph

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.