[Tex/LaTex] Remove Chapter numbers, keeps Section numbers

chaptersnumberingsectioning

I do not know how to remove the Chapter numbers in front of each chapter (Chapter #), and in the same time keep the section numbers. So I need something like the following:

Chapter name

1.1 First section

1.2 Second section

Also, numbering of my photos is a little weird. Right now, I have Photo 2.1 (since the photo is in Section 2). I just want normal numbering such as Photo 1, Photo 2 etc.

Thank you for your help!

Best Answer

Here is a way to do it with titlesec (albeit there seems to be some problem with the latest version: I wouldn't have done it exactly this way with the previous version of titlesec):

\documentclass{book}
\usepackage[utf8]{inputenc} \usepackage{titlesec}

\titleformat{\chapter}[block]{\bfseries\Huge}{}{0em}{}
\titleformat{\section}[hang]{\bfseries\Large}{}{1em}{\thesection\enspace}

\begin{document}
\tableofcontents
\listoffigures
\chapter{First chapter}

\section{First section}

\begin{figure}
\caption{Dummy figure}
\end{figure}

\end{document}

enter image description here

Related Question