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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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