New MembersHello!

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
Post Reply
HabermanZ
Posts: 2
Joined: Sun Nov 06, 2011 9:20 pm

Hello!

Post by HabermanZ »

Hey there,
my name is Zachary and I am from Washington State, US. I ran across these forums while looking for a solution to the following problem, and thought you guys could definitely help:
I want to include the \S symbol before each section number, but not include it with any subsections.
Example would look something like:
\S 1 Introduction
[Introduction text]
1.1 [Subsection]

Note: This is an article.
Thank you!

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Hello!

Post by Stefan Kottwitz »

Hi Zachary,

welcome to the board!

You could redefine the presentation of both counters, such as:

Code: Select all

\renewcommand*{\thesection}{\S\arabic{section}}
\renewcommand*{\thesubsection}{\arabic{section}.\arabic{section}}
For further questions please use the appropriate subforum.

Stefan
LaTeX.org admin
HabermanZ
Posts: 2
Joined: Sun Nov 06, 2011 9:20 pm

Re: Hello!

Post by HabermanZ »

Stefen,
About 10 minutes after I submitted this, I tried out almost exactly what you did, and it worked out well. I guess I needed a little more time.
Regardless, thank you! I have ran across these boards a few times with my searches and they have proven very helpful.
Post Reply