Text FormattingFormat of Section and Subsection Number

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
davidfall
Posts: 14
Joined: Thu Aug 11, 2011 4:11 pm

Format of Section and Subsection Number

Post by davidfall »

Hi!

I'm quit new to latex but finds it good so far. However, I have a few questions on the formating on headings...

I need to change the formating on the numbering of sections and subsection from (3,3.1,...) to (3,3-1,...). Have been googling half a day but not finding anything usefull. Is there a simple way?

Furthermore I want the font size to keep constant over the headings. I.e. if I use 12pt I want the heading to be 12pt as well. Is it possible?


Thanks in advance,

D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Format of Section and Subsection Number

Post by Stefan Kottwitz »

Hi David,

welcome to the board!

Yes, there's a simple way:

Code: Select all

\renewcommand{\thesection}{\thechapter-\arabic{section}}
Regarding the size of the headings, that depends on the document class you are using. Which one is it?

Stefan
LaTeX.org admin
davidfall
Posts: 14
Joined: Thu Aug 11, 2011 4:11 pm

Format of Section and Subsection Number

Post by davidfall »

Thanks Stefan!
Stefan_K wrote:Regarding the size of the headings, that depends on the document class you are using. Which one is it?
I am using article...
Post Reply