Questions tagged [titlesec]

{titlesec} is a package providing an interface to {sectioning} commands.

is a package providing an interface to commands allowing selection from various title styles. Some uses include

  • changing the font of all headings with a single command,
  • placing titles or section headings in the margin,
  • changing the page style for a page of floats, and
  • assigning headers and footers to individual floats.

It also provides simple one-step page styles.

Frequently Asked Questions

  1. How can I change the size of the section (subsection, etc.) titles?
  2. How can I set the font for section titles?
  3. How can I start a new page for each section?
  4. How can I change the whitespace above/below a section heading?
  5. How can I change the fonts of a section heading?
  6. How can I create a space under a section title?
1511 questions
19
votes
1 answer

Latex IEEETran cls use titlesec package

How do I use the titlesec package if I am under \documentclass[conference]{IEEEtran} ? I got the following error: !Undefined control sequence. \subparagraph
koko
  • 293
12
votes
1 answer

My custom style doesn't work

It is my first experience with LaTeX. This may be some sort of dummy question. But anyway. I've spend a day with TeXLive on Fedora. And here is the problem. I have some file 1: \documentclass{book} \usepackage{vit} % it's my own vit.sty file…
dmigous
  • 183
12
votes
1 answer

Package titlesec Error: Entered in horizontal mode. \section{INTRODUÇÃO}

How can I solve this issue? \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{txfonts} \usepackage{indentfirst} \setlength\parindent{1.25cm} \usepackage{setspace} \singlespacing …
10
votes
1 answer

Shaded box around multiline section heading?

I'm using LaTeX to write up an assignment which comprises a number of questions. I'd like to break up the questions from my answers by placing the section headings inside a shaded box. I'm relatively new to LaTeX. So far, from searching around and…
9
votes
2 answers

Titlesec ignores odd and even page formatting for chapters

I am trying to format the appearance of the chapters depending if they appear on an even or odd page. Based on the documentation of titlesec it should work with the option page=even and page=odd. This works for sections but not for chapters. Here is…
Andrei
  • 113
9
votes
1 answer

Trouble understanding \titlelabel, \thesection, \thesubsection, \thetitle

I am reading the document for titlesec package. There is a command called \titlelabel{} and the document says: "Changes the label format in sections, subsections, etc. A \thetitle command is provided which is respectively \thesection,…
Xanh
  • 91
5
votes
1 answer

How can I use the `\nameref{}` command for starred sections using the `titlesec`-package?

I want to add subsubsections with alternative numbering (A1..A3, B1..B3, etc.) to my document. These subsubsections should be added to the ToC, but the native numbering should be suppressed, the alternative numbering should come onto the…
Gauwain
  • 131
5
votes
1 answer

Different titleformat style for different numberless chapters

I want each numberless "chapter" page to have a different style for the title. Please…
Lupen
  • 179
4
votes
2 answers

Remove the number before references

The following MWE puts number 2. before References which I am trying to remove. What appears in Chapter 1 and Chapter 2 are correct. \documentclass[a4paper, 12pt,…
4
votes
1 answer

Bad titleformat syntax

I need to make changes in my article and want to use any package to highlight the changes, therefore I use \usepackage{color,soul} and it resulted in errors. I use Texmaker and compile with XeLaTeX. The file contains over a hundred pages with math…
Rasa
  • 71
4
votes
2 answers

titlesec problems

I am trying to use the titlesec package to redefine some of my sections and subsections commands. I want the \subsection to have the text following it become wrapped but if it has a title define in it like \subsection{definitions} then it should…
heyjva
  • 89
  • 7
4
votes
1 answer

Don't separate section heading from its line

I have my sections format defined with titlesec like this: \documentclass{report} \usepackage{xcolor} \usepackage{titlesec} \definecolor{shadecolor}{HTML}{A3B9FF} \titleformat{\chapter}{}{}{20pt}{\bf …
4
votes
2 answers

Modifiying just the in titlesec pacakge

Good day. I'd like to add some space after each section. I'm using article class and I've looked in the titlesec package to customize this parameter. I've studied couple of questions and mostly people suggest using this…
t-my
  • 137
4
votes
2 answers

How can I align my title to be flush with margin and format contents?

I've had to alter my contents page to fit in with requirements for my thesis. I need my chapter headings to read X.0 "chapter name". e.g. 1.0 Introduction I've managed to do this using the title sec package, however it has caused a couple of new…
Suzanne
  • 43
3
votes
1 answer

number subsubsection

I have a problem formatting my subsubsection title using titlesec. From my code, I would have thought the Subsubsection title was numbered I.1.1 but I don't see any number on my resulting file: I noticed that by passing \documentclass{article}, the…
Nicolas
  • 1,023
1
2 3
8 9