I'm using the book
document class and the babel
package with the spanish
option, I have a ToC like this:
- CHAPTER NAME
1.1. SECTION NAME
1.1.1. Subsection name
1.1.1.1. Subsubsection name
How can I remove the dot after sections numbers, tables numbers on LoT and figure numbers on LoF?.
P.S.: The Chapter number should have a dot.
Here a MWE
\documentclass{book}
\usepackage[spanish,es-lcroman]{babel}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\makeatletter
\def\@seccntformat#1{\csname the#1\endcsname\quad}
\makeatother
\begin{document}
\tableofcontents
\listoftables
\listoffigures
\chapter{CHAPTER NAME}
\section{SECTION NAME}
\subsection{Subsection name}
\subsubsection{Subsubsection name}
\begin{table}
My table
\caption{Table}
\end{table}
\begin{figure}
My figure
\caption{Figure}
\end{figure}
\end{document}
Note that I'm using the code:
\makeatletter
\def\@seccntformat#1{\csname the#1\endcsname\quad}
\makeatother
to remove the dot after sections number in the document.