Text Formatting ⇒ changing section title format
changing section title format
Anyone mind giving me a hand using the titlesec package to change the section title format?
Id like to have it so under (the next line) the title is a bunch of = signs. I know it sounds a bit weird but it will come in handy oddly enough.
So something like:
Section Title
========
Thanks
Id like to have it so under (the next line) the title is a bunch of = signs. I know it sounds a bit weird but it will come in handy oddly enough.
So something like:
Section Title
========
Thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
changing section title format
Hi martman,
you could use ulem or the soul package:
Stefan
you could use ulem or the soul package:
Code: Select all
\usepackage{titlesec}
\usepackage[normalem]{ulem}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{\uuline}
LaTeX.org admin
Re: changing section title format
double underline looks close, but I'd really like equal signs if possible. Besides from pdf output I also need text, and my convert cant handle uuline but should be able to use a equal sign easily.
Thanks
Thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
changing section title format
With ulem it's also possible to use equal signs, like:
Stefan
Code: Select all
\newcommand\equalsigns{\bgroup\markoverwith{\raisebox{-1.1ex}{=}}\ULon}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{\equalsigns}
LaTeX.org admin
Re: changing section title format
Hate to keep pushing my luck but is there a easy way to change that last one so there are 80 equal signs?
Thanks alot!
Thanks alot!
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
changing section title format
If you need a fixed number of equal signs you don't need ulem:
Stefan
Code: Select all
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{}[==== ... ====]
LaTeX.org admin