Text FormattingRemoving period/full stop in section titles

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jodles
Posts: 8
Joined: Fri Dec 31, 2010 3:07 pm

Removing period/full stop in section titles

Post by jodles »

I want the subsections and the subsubsections in my document to be numbered as (example):
a) subsection
(i) subsubsection
(ii) subsubsection

In the preamble (I'm using Lyx), I've put:
\renewcommand{\thesubsection}{\alph{subsection})}
\renewcommand{\thesubsubsection}{(\roman{subsubsection})}

But this produces the following output:
a). subsection
(i). subsubsection
(ii). subsubsection

How can I remove the dots? I often find myself moving into TexShop before finishing a document, so I'm not limited to Lyx!

Is there any document class that numbers the sections in that manner (if there's no way around it)?

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Removing period/full stop in section titles

Post by frabjous »

You can probably get around it by loading titlesec package in the preamble and using some of its commands, but it would help to know why you're getting these in the first place, since you wouldn't with the standard document classes. What document class/LyX template are you using as is?
jodles
Posts: 8
Joined: Fri Dec 31, 2010 3:07 pm

Re: Removing period/full stop in section titles

Post by jodles »

I see! I'm using the article (AMS). What are the standard classes?
jodles
Posts: 8
Joined: Fri Dec 31, 2010 3:07 pm

Re: Removing period/full stop in section titles

Post by jodles »

I checked a little by myself now, and what LyX calls simply "article" seemed to work fine. The fonts and layout is slightly different of course, but I might be able to stay with that for this paper...

I'll have to look closely at the titlesec package at some time! Seems like it comes around every time I'm stuck!:P
Post Reply