New Members ⇒ Hello!
Hello!
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!
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
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Hello!
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}}Stefan
Re: Hello!
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.