Skip to main content

Questions tagged [titlesec]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Preventing white space above chapter heading

When I want a chapter heading as follows what I get is something as this As we see, there is small space above chapter heading. Previous answers as in this question only reduce space above chapter ...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
2 answers
76 views

How to capitalize ToC entries using \capitalisewords and \titlecontents

I'm having a formatting issue with my document's table of contents (ToC). Specifically, I'm trying to capitalize the first letter of each word in the ToC entries using the \capitalisewords command ...
Mycroft_47's user avatar
2 votes
1 answer
46 views

Vertical alignment problems with marginnote and titlesec

I'm with a document that has margin notes in the section titles. I have programmed a command that works if I don't load titlesec package. Here is a minimal example: \documentclass[a4,twoside]{article}...
carlosv's user avatar
  • 337
1 vote
0 answers
32 views

How to Properly Case Change in ToC Entries and Make Chapter Numbers Clickable

I'm facing two issues with my LaTeX document's Table of Contents (ToC): Formatting Issue with \capitalisewords: I am using the \titlecontents command to format my ToC. I want to capitalize the words ...
Mycroft_47's user avatar
0 votes
1 answer
34 views

titleps package: How to make boxed page number and header line appear as one element?

I'm trying to refine a document design I've pieced together from various TeX.SE answers. I'm using titleps for page styles and headers, with the page number in a colored box. I've adapted code from @...
Mycroft_47's user avatar
0 votes
1 answer
46 views

How to resize the bar size and adapt the title to the margins in Chapter Veelo style?

I've constructed Chapter with Veelo style in \documentclass{report} following the instruction contained in this and this answers. However, I set \documentclass{report} \usepackage[margin=1in]{...
Bml's user avatar
  • 117
0 votes
0 answers
13 views

How to maintain consistant formatting of chapter headers using Titlesec with both single and double spaced chapters?

I'm using the titlesec package to create custom chapter headers. I've found that the headers this package produces depend on whether the chapter is single or double spaced. Most of my document is ...
Ian Gullett's user avatar
3 votes
2 answers
56 views

How to create two types of new sections (error)

I need to create two types of sections. The first section (sectionc) works without errors. The second (sectionlcc) is similar to the first, but without \MakeUppercase. It does not work. Error in line: ...
Youra_P's user avatar
  • 1,128
4 votes
1 answer
152 views

How to use the {titlesec} package to create this Chapter style?

I am writing a technical handbook and really like the chapter title below (from Life Technologies, thx). How can I use the titlesec package and fancyhdr package to achieve these? Chapter style For ...
Frank Mosher's user avatar
0 votes
1 answer
69 views

Redefine chapter* format

How can I modify the font of the chapter* command. I essentially want to keep it the same except to make the font a little smaller. How could I do this using titlesec. Also how can I redefine the ...
xyz04's user avatar
  • 137
0 votes
1 answer
34 views

I want to put the chapter name on top of a titlerule

I would like to put the title name on top of the 2 rules, such as the chapter number. Here's a MWE, i've put everything just to make sure \documentclass[a4paper, 12pt, twoside]{report} \...
ALEX's user avatar
  • 5
1 vote
1 answer
27 views

Understanding the titlesec package before and after separator syntax

I am trying to understand the following code: \titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph}{0pt}{2ex plus 1ex minus 0.2ex}{1.5ex plus 0.2ex}...
Ritmo2k's user avatar
  • 187
0 votes
0 answers
20 views

How can I adjust the spacing between the number and the title of each level in TOC to create automatically a nested list?

In this code, I have defined custom sectioning formats using the titlesec package. However, I'm having trouble adjusting the spacing between the section numbers and titles, especially when the section ...
Antonio Maria Di Mauro's user avatar
2 votes
1 answer
47 views

"Advanced section/subsection" custom command produces unexpected numbering behaviour

I am attempting to create new commands for "advanced sections/subsections" (similar to what you might see in a textbook, where a "starred section" indicates an advanced topic or a ...
user319109's user avatar
0 votes
1 answer
44 views

Titlesec paragraph

I would like to define the paragraph section such that it starts with the paragraph symbol. What is missing in the following? \documentclass{book} \usepackage{fontspec} \usepackage{titlesec} \...
blackened's user avatar
  • 4,191
0 votes
1 answer
60 views

Is there a way to hide the section numbers in the TOC and the sections themselves?

I don't know latex at all and I'm using pandoc to convert from markdown to pdf. Here's how I do converting: pandoc --pdf-engine=xelatex -V mainfont="Liberation Sans" --toc -N -V toc-title=&...
Sohro's user avatar
  • 3
4 votes
1 answer
42 views

Alignment of Entries in Table of Contents

I would like to reproduce the following TOC in pdfLaTeX: I am doing something along the following lines (showing, for example, the second line of the TOC): \documentclass[10pt,largepost]{octavo}% \...
user257660's user avatar
1 vote
0 answers
19 views

How to apply a different `\titlespacing` for table of contents/list of figures/list of tables?

I am trying to apply a \titlespacing to my chapter titles by doing something like \titlespacing*{\chapter}{0pt}{50pt}{50pt} However, this messes up the title spacing for table of contents, list of ...
XYZT's user avatar
  • 111
0 votes
0 answers
38 views

classicthesis table of contents font and style do not match [duplicate]

The table of content does not take the fonts and style set in classicthesis.sty. Monospace is not used. I assume this is a problem with KOMA script and titlesec or tocloft? Minimal working example: \...
xinran's user avatar
  • 1
0 votes
1 answer
21 views

Remove chapter number only in selected chapters with titlesec

I am using a report template for a thesis. This template names every chapter with "Chapter X" followed by the title of the chapter. I would like to change it for the introduction and the ...
sato's user avatar
  • 101
6 votes
2 answers
174 views

Why does microtype affect the spacing of custom sections when using titlesec?

In LuaLaTeX, I have the following code that allows for me to have a section that is not numbered, and that has the text centered, with smallcaps font style on. I thought the text looked a but not on ...
Felix Maldonado's user avatar
0 votes
2 answers
67 views

Why won't the titlesec package modify \chapter headings? (PDFLaTeX)

It seems to me that titlesec is failing to set \chapter heading styles in documents. The documentation says that it should have support to set \chapter heading styles. Here is a minimum reproducible ...
Matthew Boyea's user avatar
0 votes
0 answers
34 views

Specific changes to LaTeX section titles

I need my whole document to be in 12pt font which I'm using sectsty for. My problem with that is related to the chapter, section, subsections titles. I'd like to make any of those titles bold only and ...
wingardium_leviosa98's user avatar
2 votes
2 answers
53 views

Modifying a known titlesec macro for chapters for variable length rule

I am currently typesetting a book style document, and I used titlesec package to modify the chapter titleformat using the following lines of code:- \documentclass[a4paper,12pt,twoside,openright]{book} ...
Vatsal Garg's user avatar
-1 votes
1 answer
40 views

Create particular chapter titleformat style with tikz

Hi, i'd like to reproduce this particular chapter title format. I'm a newbie to latex and i don't know very well how to use tikz (i saw some post in the forum using it), so i dont have a code to show ...
Davide Ramaschi's user avatar
3 votes
2 answers
99 views

Center uppercase chapter title of more than one line with titlesec

I need about the same thing as Rob28... egreg's answer is perfect so far of course, but in addition, some of my titles are long and I have to split them at other places than the ones LaTeX chooses. I ...
Olivier's user avatar
  • 75
0 votes
1 answer
48 views

titlesec interferes with addcontentsline/addtocontents (adding Parts and Chapters to lot and lof)

For my lot and lof i am using something i found here, so that the parts and chapters show in them (lot and lof). And for my Titles (Part, Chapter, Section ...) i am using titlesec, so they look (imo) ...
Gabriele Di Toma's user avatar
1 vote
0 answers
59 views

APA7 Class: How to modify the section title of appendices

I'm using the APA 7 document class. And it formats the section titles of appendices Like this: Anhang A Appendix title I need to format it like this: Anhang A: Appendix title I've been browsing the ...
marsknight's user avatar
2 votes
1 answer
68 views

Remove chapter spacing completely

In the below MWE, I arranged the position of the chapter title (for this case I just need the number) such that it is at the corner touching the margin. How do I remove the spacing created around it ...
blackened's user avatar
  • 4,191
0 votes
1 answer
64 views

Colored Section Numbers

I would like to colour the section, subsection, and subsubsection numbers in my thesis document. I tried before the solution at the end of this thread:Section numbers colored but I get the error that ...
katsucurry's user avatar
1 vote
1 answer
28 views

Why need to redefine `main` pagestyle even if another pagestyle is in use?

This answer explains how to center the page numbers on the chapter pages, which are not centered even after the following MWE: \documentclass{book} \usepackage[pagestyles]{titlesec} \usepackage{...
Atom's user avatar
  • 665
0 votes
1 answer
46 views

How does \ifthesection of titleps work?

The titleps documentation mentions: (Only titlesec. Not in titleps.) \ifthechapter{⟨true⟩}{⟨false⟩}, \ifthesection{⟨true⟩}{⟨false⟩},\ifthesubsection{⟨true⟩}{⟨false⟩}... which expands to ⟨true⟩ except ...
Atom's user avatar
  • 665
0 votes
1 answer
35 views

Error changing title format [closed]

I'm trying to use the format of chapter title like this I used this code: \newlength\chapnumb \setlength\chapnumb{4cm} \newcommand{\chaptertitlefont}{\normalfont\sffamily\Huge} \titleformat{\...
Fatma Belabed's user avatar
0 votes
2 answers
55 views

package titlesec error: entered in horizontal mode at each \section{} row

I have the red error bullet package titlesec error: entered in horizontal mode at each \section{} instruction row At the beginning I had the following command, that was causing the error \titleformat{\...
Ingrid's user avatar
  • 1
0 votes
1 answer
55 views

Background color in frame mode (titlesec)

It is easy to get the un-colored version of my \section header using the following code: {\normalfont} {\filright \footnotesize \enspace SECTION \thesection\enspace } {8pt} {\Large\bfseries\...
hsmyers's user avatar
  • 1,573
2 votes
1 answer
84 views

a problem when using ```\usepackage{sectsty}``` and ``` \usepackage{titlesec}```

In my project, I use these packages \usepackage{sectsty} and \usepackage{titlesec}. However, everytime I put a section into a center environment, for instance "The first saying", the ouput I ...
PermQi's user avatar
  • 187
1 vote
1 answer
39 views

titlesec explicit stops formatting of subsubsection

I need the explicit option for titlesec. However, when I set the explicit option, and also try to format subsubsections, they disappear. The same does not happen to subsections. Maybe I am using ...
KHAAAAAAAAN's user avatar
0 votes
1 answer
45 views

Changing section name in table of contents

I used the code \usepackage{titlesec} \titleformat{\section}{\normalfont\Large\scshape}{Problem \# \thesection}{0em}{} and \section{} to create a section called ("Problem #"+section number)...
Stephanie Yao's user avatar
1 vote
1 answer
87 views

How can I edit my Title, Author and Date sections to change the spacing to even them out and shorten the space between, on top and below them? [closed]

I already have geometry set to top=2cm,bottom=2cm,right=2cm,left=2cm, but I want to make it so that can change the distance between the top of the page and the title, change the space between title, ...
Felix Maldonado's user avatar
4 votes
2 answers
199 views

Titlesec with tikz

I still confuse myself with titlesec and tikz. For example, in the below code, how do I place the chapter number and the title inside a rounded rectangle with a custom inner margin? \documentclass[...
blackened's user avatar
  • 4,191
1 vote
1 answer
44 views

How to center \S section in document and at header?

I am trying to center \S section in my document and header I use \usepackage{sectsty} \allsectionsfont{\centering} \usepackage{titlesec} \setcounter{tocdepth}{1} \titleformat{\section}[hang]{\...
Laurenso's user avatar
  • 373
1 vote
2 answers
49 views

Color gradient as line in titlesec

I created the following MWE: \documentclass[a4paper,11pt,oneside]{article} \usepackage[a4paper,margin=2.5cm,marginparwidth=2cm]{geometry} \usepackage[pagestyles]{titlesec} \usepackage{hyperref} \...
CFP's user avatar
  • 187
1 vote
1 answer
75 views

titlesec Indented Block Format

I am trying to achieve the following formatting using the titlesec package. \titleformat{}[wrap]{}{}{}{} works well to achieve the "5.2." and the wrapping of its child text. What is the ...
shea's user avatar
  • 63
2 votes
1 answer
71 views

Automatic Chapter or Section Title in Bold face and Small Caps

I have a very basic question that is basically a follow-up of this old one. How can I have small caps that are boldface in the title of a chapter or a section? Below a MWE. \RequirePackage{fix-cm} \...
Kolmin's user avatar
  • 569
1 vote
0 answers
31 views

wrapfigure in titleformat

General overview For each \section i try to put BAZ in wrapfigure in the right just in front of the section’s title but in the right side of the page. MWE \documentclass{article} \usepackage{titlesec} ...
fauve's user avatar
  • 2,531
0 votes
1 answer
66 views

Two parallel numbering system in sections, subsections, and paragraphs

I have a document (witch is an update of an old one) with a sectioning numbering system like this: \chapter 1 \section 1.1 \subsection 1.1.1 \subsubsection 1.1.1.1 \paragraph 1.1.1....
fauve's user avatar
  • 2,531
1 vote
1 answer
52 views

Including document title and part number in chapter heading, multi-line section titles

I'm attempting to replicate a particular Word template format used in my workplace in LaTeX (extbook class) but am having trouble replicating the desired Chapter and Section heading formats, shown in ...
Bells12's user avatar
  • 37
6 votes
2 answers
155 views

Titlespacing command not working for \subsection and also causing error for \section

I'm using the packages \documentclass{amsart} \usepackage{amsmath} they do not leave a vertical space between the section's title and the following text. So i'm trying to use the titlespacing ...
tutizeri's user avatar
  • 161
0 votes
0 answers
30 views

title of a section breakes an is on two pages

I use \usepackage{titlesec} to create some nice titles. For sections I use this setup: \titleformat{\section}[block] {\normalfont\sffamily}{\bfseries\thesection}{.50em}{\titlerule[0.75pt]\\[.8ex]\...
montarenbici's user avatar
0 votes
1 answer
33 views

Coloured subsection AND text right after the subsection name

I'm facing a problem due to the incompatibility between the packages TITLESEC and SECTSTY. What I want is to have a coloured subsection name, which I provided with \usepackage{sectsty} \subsectionfont{...
Henry's user avatar
  • 402

1
2 3 4 5
31