Text FormattingThere's no line here to end

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Diebele
Posts: 2
Joined: Wed Mar 24, 2010 1:17 pm

There's no line here to end

Post by Diebele »

I wanted to centering my sections and subsections. What should I do?
So I did this:

Code: Select all

\begin{center}
\subsection{Some subsection}
\end{center}
And received an error: "There's no line here to end"

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

There's no line here to end

Post by gmedina »

Hi,

which document class are you using? I would suggest you to use the titlesec package (but if you are using some of the AMS document classes, it will not work).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Diebele
Posts: 2
Joined: Wed Mar 24, 2010 1:17 pm

There's no line here to end

Post by Diebele »

gmedina wrote:Hi,

which document class are you using? I would suggest you to use the titlesec package (but if you are using some of the AMS document classes, it will not work).
Hi!
I use Article. Is it in AMS document class? Will try it.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

There's no line here to end

Post by gmedina »

Diebele wrote:...I use Article. Is it in AMS document class? Will try it.
No. article is one of the standard document classes; you can use titlesec without problems.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply