Text Formatting\chapter command does not work

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
sudesham
Posts: 4
Joined: Thu Aug 23, 2012 4:52 pm

\chapter command does not work

Post by sudesham »

Hello everyone,
been using the \chapter{} command
and the output is not Chapter 1
but just plain text

here is a sample of the code:

Code: Select all

\documentclass[12pt] {article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage {Utopia}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{chapterbib}
\usepackage{tocloft}
\usepackage{longtable}
\usepackage{url}
\usepackage{booktabs}
\usepackage{float}

%\usepackage[style]{fncychap}
\usepackage[Sonny]{fncychap}

\doublespacing


\begin {document}
\chapter{testing 123}

\end {document} 
any assistance would be greatly appreciated
Last edited by Stefan Kottwitz on Thu Aug 23, 2012 5:39 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10361
Joined: Mon Mar 10, 2008 9:44 pm

\chapter command does not work

Post by Stefan Kottwitz »

Hi Sudesh,

welcome to the board!

The article class doesn't support chapters. You can use \chapter in the book or report class, for example.

So, change your first line for example into

Code: Select all

\documentclass[12pt]{report}
or use \section instead of \chapter.

Stefan
LaTeX.org admin
sudesham
Posts: 4
Joined: Thu Aug 23, 2012 4:52 pm

Re: \chapter command does not work

Post by sudesham »

Thanks, it worked.
Post Reply