Page LayoutGetting rid of section number but display subsection number?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
smtwtfs
Posts: 1
Joined: Mon Apr 30, 2012 9:21 pm

Getting rid of section number but display subsection number?

Post by smtwtfs »

Hi everyone,

I'm only using subsections. I want to display subsection number without showing the section number. For example

Code: Select all

\begin{document}
\subsection{First}
It displays
0.1 First
. I only want
1 First
. Is there a way I can get this done?

Thanks!

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
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Getting rid of section number but display subsection number?

Post by Juanjo »

Put this somewhere in the preamble:

Code: Select all

\renewcommand{\thesubsection}{\arabic{subsection}}
Anyway, I can't figure out why you are not using sections, which is the natural way to go in an article-like document class.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply