Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\documentclass{article}    
\begin{document}
\section*{Section1}

\subsection*{subsection1}
\subsubsection{Another layer of subsection}

\end{document}

I just want to show the subsubsection numbering, without the trailing section and subsection numbers in the front. In the output it appears as 0.0.1, I want it to appear as 1

Thanks

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

chngcntr will also disable the resetting of the number of your \subsubsection in a new subsection. As long as you using only the starred version of \subsection this doesn't matter. In other cases you probably should better redefine \thesubsubsection to change the representation of the counter:

\documentclass{article}
\usepackage{chngcntr}
%\counterwithout{subsubsection}{subsection}
\renewcommand\thesubsubsection{\arabic{subsubsection}}
\begin{document}
\section{Section1}

\subsection{subsection1}
\subsubsection{Another layer of subsection}

\subsection{subsection1}
\subsubsection{Another layer of subsection}



\end{document}
share|improve this answer
add comment

You could use the chngcntr package to remove the relationship between two counters.

\usepackage{chngcntr}
\counterwithout{subsubsection}{subsection}
share|improve this answer
add comment

Your Answer

 
discard

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.