Questions tagged [titlesec]
{titlesec} is a package providing an interface to {sectioning} commands.
1,352
questions
0
votes
0
answers
9
views
Creating a document header with titlesec
I am making a small document and want to add a smaller header at the top of the first page as opposed to making a title page. I have some simple design ideas in mind; however, I'm not sure how to ...
0
votes
0
answers
33
views
Changing the fontsize of \large
I want to change the size of the font of \large. I tried a lot but everything removes Arial or even everything.
\documentclass[11pt]{scrartcl}
%Change font to Arial
\usepackage{fontspec}
\setmainfont{...
1
vote
1
answer
17
views
Section number not appearing
Disclaimer: Essentially none of the code is original to me; I got it from various places online (for example, the nice looking TOC was from this answer.)
My problem: The section number is not ...
0
votes
1
answer
21
views
New Section Above Part Crashes When Adding Bookmarks: Missing Action
I'm having an issue creating a \book section above \part. All goes well — ToC is beautiful — until I add the bookmark package and then it crashes with a "Missing Action" on the first use of ...
0
votes
0
answers
24
views
How deep Is it possible to control colour font in subsections?
I am using this suggestion How to add an extra level of sections with headings below \subsubsection to use more level of sections and I would like to control the font colour as well.
I tried this so ...
1
vote
0
answers
24
views
Should titlesec commands be inserted after \usepackage{polyglossia}?
EDIT:
I solved the problem, by inserting the below-mentioned command after \usepackage{polyglossia} and it works. Therefore I am changing the question title and the answer I am looking for.
I ...
0
votes
1
answer
23
views
Titletoc appears to truncate part of the title label defined by titlesec
I have the following MWE where I'm adjusting how my sections are rendered using the titlesec package. Based on this question, I came up with the following:
\documentclass{article}
\usepackage{titlesec}...
0
votes
3
answers
54
views
scrbook redefining sections without titlesec package
I am editing a package (which I did not write myself) where the titlesec package was used in combination with the scrbook document class. This produces an error, as explained in this post: Conflict ...
0
votes
0
answers
27
views
Removing the Part Description from Part [duplicate]
I'm trying to got my part headings to just have the part name, without the "Part" prefix. I've been fiddling with the titlesec package, but without success.
Any suggestions?
MWE:
\...
1
vote
2
answers
43
views
Adding horizontal line under chapter number but before chapter title, without adding the line to the table of contents
I'm trying to format my report chapter titles to have a horizontal line under the chapter number but above the name of the chapter such that it reads
Chapter
'horizontal line'
Name of Chapter
I can do ...
0
votes
1
answer
46
views
Underfull \vbox (badness 10000) warnings in Book with no floats or math, just simple headings (Part and Chapter) and text
So I have this relatively simple-coded book document.
When I try to compile it, I get a lot of Underfull \vbox (badness 10000) has occurred while \output is active warnings (though there's only one ...
0
votes
3
answers
30
views
How to change the suffix of a section
What I want:
What I have:
I know it doesn't look nice but I need it like this. I'm using titlesec and \subsection{A section} to write this. Thanks!
0
votes
1
answer
44
views
LyX: Index title does not align with section titles
When adding an index in a LyX document, the title "Index" (or its modified name) does not vertically align with other section titles in the output. There is more vertical space above it. ...
0
votes
1
answer
25
views
Spacing between in section heading between number and text
Hi I'm new to LaTeX and am slowly going insane trying to format my document to spec.
The things I am trying to achieve are fairly simple. I have this type of section heading now:
What I am trying to ...
1
vote
2
answers
36
views
How to remove the empty space of a non-prefix titlesec
How can I remove the space in the first "Conflicto"?:
I want the first "Conflicto" to have the same indent or horizontal space as the second.
In the first, I'm using \subsection{...
2
votes
3
answers
162
views
Start sections on a new page, excepting the first one
So, I've seen this, but I need sections to start on a new page only after the first one
And I've been trying many different methods, and I was thinking that I could make an if statement somewhere that ...
0
votes
0
answers
14
views
titletoc: nested subsections with titlerules
I wish that my TOC looks like this:
1. Section 1 (Subsection 2, Subsection 3) ...................... 8
2. Section 2 (Subsection x, Subsection y) ...................... 12
To do so, using titletoc's ...
0
votes
1
answer
34
views
LaTeX error: Package titlesec Error: Entered in horizontal mode
I have an annoying error that is appearing at line 7.
\documentclass{article}
\usepackage{sectsty}
\usepackage{titlesec}
\titleformat*{\section}{\normalfont\sffamily\large\bfseries\sectionrule{0pt}{...
0
votes
1
answer
35
views
Table of contents hyperlink refers to the wrong page when the section starts at the top of the page, when using usepackage{titlesec}
long but accurate title. When I include the titlesec package (even without really using it), and when a section start at the top of a new page, the table of contents links to the previous one.
Here is ...
0
votes
0
answers
10
views
Configure titlespacing for a multiline heading using titlesec
I'm using the titlesec package and would like to configure the location of the section headings relative to a custom text box environment I'm using.
The problem I have is dealing with different ...
0
votes
0
answers
39
views
Enable left skip only on pages with section heading
I want to change the layout of pages which contain a \section heading (and also the \tableofcontents) so that the body text is over to the right-hand side of the page. Using \leftskip and titlesec I ...
1
vote
1
answer
14
views
Changing section colors: Undefined control sequence. \sectionfont
I know there are several questions with answers out there, but none of them worked for me.
Trying to change the color of all sections of my document with the xcolor package creates an error statement: ...
0
votes
2
answers
48
views
titletoc: How to match the numbering format in the table of contents to that of the section titles?
In a document class, I edited the numbering format (with color gray and Euler font) of sections and subsections using titlesec. However, I don't know how to apply the same style to the labels in table ...
0
votes
1
answer
39
views
How to increase the space between a section/subsection title and a theorem
I would like to add some space between a theorem and the preceding line.
I used titlesec and amsthm to customise the spacing but when the theorem is just after a subsection, the required spacing ...
0
votes
2
answers
42
views
`titlesec` package - uneven marginal section numbers
I am using book class and have made the section numbers appear in the right margin with the titlesec package. Whenever there's a \noindent command, the marginal section number seems to shift to the ...
1
vote
2
answers
36
views
Chapter number above name and centered - not centering correctly
Puzzling over this one..
I want something like this:
However with the MWE below I am getting this
(ignore the variation on font and colour for the moment)
The MWE is
\documentclass[a4paper,10pt,...
0
votes
1
answer
39
views
How to change the numbering in toc and titles?
I am preparing a template for the PhD thesis at our institute. The thesis includes published papers as chapters and regular book chapters. I am building on the book.cls. I also have different ...
0
votes
1
answer
43
views
Vertical skip after ToC heading using tocloft with titles option
I'm using titlesec to control the appearance of headers (\section and friends) in a larger document, and I'm now investigating tocloft to adjust the appearance of the table of contents (ToC) as well. ...
0
votes
3
answers
66
views
Why has my 'references' page title disappeared on my bibliography?
I cannot for the life of me find the answer to this.
Here is a full summary of my main.tex:
\documentclass[12pt,twoside]{report}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[...
0
votes
2
answers
81
views
How can i get this chapter page style?
that's my first post here. Can anyone help me to understand how to get this?
Thanks <3
0
votes
1
answer
34
views
titlesec smallcaps not working with the Lato font
MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[default]{lato}
\usepackage[sc]{titlesec}
\begin{document}
\...
0
votes
1
answer
44
views
Why is there a blue rectangle at the top of my TOC?
I am using a solution provided by @egreg to put a background around my section titles. However, there is a blue rectangle appearing at the top of the TOC. Does anyone know how to remove this?
A ...
1
vote
2
answers
54
views
Centering one section, titlesec
Every once in a while I need to be able to center a section heading to place emphasis on it. Unfortunately there seems to be a conflict with \centering and the titlesec package which I use. I cannot ...
0
votes
2
answers
64
views
Two different chapter styles in main body and TOC
In my thesis I have two chapter styles. One is numbered style like - CHAPTER N - INTRODUCTION. For this style I have defined the style in the preamble and write in the main body as
\chapter{...
1
vote
0
answers
38
views
Color Box for Section Title : Titlesec or others soluce explained/commented for beginners
I try to do with LateX some layout I usually do really easily on Word because I would like to use 100% LaTeX (I would currently describe myself as low intermediate LaTeX user). Here is what I aim to ...
1
vote
1
answer
61
views
Center uppercase chapter title with titlesec!
I would like three things:
uppercase title and label,
not bold, and
centered.
I put the respective commands in the {label} section of the \titleformat command but nothing is happening. Both label ...
0
votes
0
answers
36
views
Error using \edtext in \eledsection with titlesec
When using titlesec with reledmac, it appears an error if one tries to add an \edtext to a chapter or section command. It says "\edtext outside numbered paragraph".
\documentclass{memoir}
\...
1
vote
1
answer
31
views
Disappearing footnote when the titlesec package loaded
I want to write some footnotes in headings. When I using the titlesec package, first footnotes are hidden.
MWE:
\documentclass{article}
\usepackage{titlesec}
\setlength{\textheight}{2cm}
\begin{...
0
votes
2
answers
100
views
Different headers for first page and following pages even and odd
What I would like to achieve is a (fairly high) header in the first page and alternate headers with different heights for even and odd in the subsequent pages.
I tried Werner's solution from this page,...
2
votes
1
answer
44
views
How to center section titles of an article without centering its references title
I aim to center section titles of an article while still aligning the reference title left. I've tried to define something like \titleformat*{\sectionc}{\centering\large\bfseries} and \titleformat*{\...
4
votes
1
answer
70
views
Adding ornament on section titles using titlesec and pgfornaments
I want to add an ornament (provided by the pgfornament package) after the section title's body. Here is a MWE which produces the error I get (the document compiles correctly if I remove \pgfornament[...
1
vote
0
answers
93
views
Please help me understand \titleformat documentation
I am trying to understand the \titleformat command. According to the documentation, the format is
\titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before-...
4
votes
1
answer
65
views
how to add chapter name to number and title line in Appendices?
Consider test case:
\documentclass{report}
\usepackage[title,titletoc]{appendix}
\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter}{10pt}{}
\begin{document}
\...
4
votes
1
answer
240
views
how to make chapter and section titles at the beginning of pages be on the same line?
Consider test case:
\documentclass{report}
\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter}{10pt}{}
\titlespacing*{\chapter}{0pt}{0pt}{10pt}
\begin{document}
\...
1
vote
1
answer
56
views
titleformat - I want to separate the chapter number and title and put them on the right, one above the other
Right now I'm using the default chapter formattings on Overleaf but I want to change it so that the chapter number is much larger than the title and is above and separate from the title itself.
At the ...
0
votes
0
answers
37
views
Spacing around \section and \subsection with titlesec and minipage
In the following MWE, it seems like minipage and titlesec interact with each other. If I use either one OR the other, the spacing is fine, but when I use BOTH, the spacing around the section and/or ...
0
votes
0
answers
23
views
Inserting document title in the header using the titleps package while combined with the titlesec package
When I use only the titleps package, the following code works and puts the document title in the header.
\documentclass{article}
\usepackage{titling}
\usepackage{geometry}
\usepackage{titleps}
\...
0
votes
1
answer
38
views
How to make section name appear in ToC when using both fancyhdr and titlesec
We want the section Preface to appear on the TOC, but as can be seen on the following screenshot, the section name does not appear to be visible, although the dotted line is appearing with page number ...
1
vote
2
answers
62
views
Is it possible to change the font size of the section number and text with fancyhdr
We would like to change the font size of the section only, but as header and footer is set with fancyhdr, then we would like to use same package or a package that is not in conflict with fancyhdr. Our ...
1
vote
1
answer
59
views
titlesec - Dual line, vertical (rotated) section marker
Basically I want to imitate this.
On the right page the section marker should be oriented the opposite way.
I think it's possible to achieve this with titlesec page. Here's what I got so far.
\...