Questions tagged [titlesec]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

How to change color of the chapter number, with this style?

I need to change the color of the chapter number, but not its title. The answers I've found elsewhere weren't very helpfull yet. Here's a MWE to show the style I'm using: \documentclass[11pt,...
1
vote
1answer
19 views

How do I ignore the titlesec package, and create a subsection without runin?

I'm using the titlesec package to have runin subsection titles. However, I only want this some of the time, and if I try to break the line with \ it either throws an error to adds some weird ...
0
votes
0answers
23 views

How to change the colors and font of a customized chapter title?

I have the following code in LaTeX with which I wanna customize my chapter and section titles. \usepackage[T1]{fontenc} \usepackage{titlesec} \usepackage{xcolor} \usepackage{blindtext} \newcommand{\...
0
votes
1answer
18 views

Latex: Creating several new layers of subsections results in some counting bugs

I tried to create a way of expanding the number of section layers in Latex. The current Layers \section, \subsection and \subsubsection weren't enough and \paragraph and \subparagraph caused problems ...
0
votes
1answer
22 views

Move chapter to top and change its format

I would like to change position of my chapter title more to the top of the page and also change format of it to: "0 Introduction" "1 Something" "1.1 Something" "2 ...
0
votes
1answer
26 views

using titlesec and \setcounter{secnumdepth} ruins pdf contents metadata

While writing this question I have found a workaround, using sectsty instead of titlesec. But since it's a workaround rather than a real solution, I'd like to know what was the issue and how I might ...
2
votes
1answer
34 views

titlesec and textpos: title name appears twice

I want to create a block type chapter opening where the chapter number and name are typeset in a coloured background. I am doing something wrong with the #1 parameter of titleformat, because the ...
0
votes
1answer
60 views

Package titlesec Warning: Non standard sectioning command \section

I have a problem with a package that I am not aware I am using ... Here is my main.tex \RequirePackage{silence} \WarningFilter{remreset}{The remreset package} %s shut up about obsolete package % book ...
0
votes
0answers
40 views

Can someone tell me why is the title look like this?

\makeatother%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand{\thesection}{\Roman{section}} \renewcommand{\thesubsection}{\thesection.\Alph{subsection}} \usepackage[brazil]{...
0
votes
1answer
24 views

How to set margin of titletoc

I am currently doing my thesis. I am going to create a table of content. I use titlesec and itletoc to manage my TOC. However, some chapter heading is perfect alignment but some chapter is not. ...
1
vote
1answer
13 views

titlesec and indentation

I'm using the titlesec package to format the sections of my article. Basically, I wish the section number aligned with the left margin of the main text and the section title aligned with the first ...
0
votes
1answer
25 views

Disabling Line Number in Section Titles not Working

I am trying to apply the answer to this question in Overleaf. I want to number my lines but I don't want the chapter/section titles to be numbered. I'm running into errors when applying the answer. ...
0
votes
0answers
33 views

How does LaTeX (and titlesec, for that matter) chooses which heading goes in the running headers?

If I have several sections in one page, how does LaTeX decide which one goes in the running header? what is the mechanism for this?
1
vote
2answers
19 views

Trouble formatting with titlesec and multicol

I'm creating making resume with LaTeX, but I am having trouble with multicol. The following code reproduces the problem. \documentclass{article} \usepackage{titlesec} \usepackagae{enumitem} \...
2
votes
1answer
34 views

Fixed section indent between section number and section title

I am writing my bachelor thesis and my supervisor gave me a word template. I like LaTeX though and will convert the Word Template into a LaTeX template. I usually managed to do this, but now I am kind ...
0
votes
1answer
28 views

Continuing to enumerate when using “titlesec” package

I must use the package \usepackage{titlesec}. I have no problem with chapters and sections. However, when using \subsection{..}, the enumeration disappears. Problem: My problem is that I want to have ...
0
votes
1answer
40 views

How does titlesec call sectionbreak implicitly?

How does package titlesec work? I have never called \sectionbreak explicitly in my code, but it appears \sectionbreak is called in between \section \documentclass[fleqn]{report} \usepackage{titlesec} \...
1
vote
1answer
60 views

How would one use `\titlesec` to make drop-caps sections?

I am unsure of if \titlesec can do this, but I would like to use it to replace using \lettrine + \addtocontents for the same thing. What I want should look like this: There is no problem with using \...
0
votes
2answers
15 views

Constant space label titleformat

I have trouble with \titleformat. I have modified the title format using titlesec package. I am using the Roman enum by obligation and increasing the number the space increases (see figure). Does ...
0
votes
0answers
45 views

Custom fonts causing LaTeX (XeLaTeX compiler) to weird out

I am making a document with a bunch of custom formatting and functions. I am having a problem where if I use the callouts package, my font will become bold from then onwards. I managed to pinpoint the ...
0
votes
1answer
30 views

How can I change the section numbering for a single chapter with titlesec?

I want my introduction to appear in the table of contents without the chapter number, but because I've used the \chapter* command to achieve this all the sections in the introduction are numbered as: ...
1
vote
2answers
34 views

memoir + titlesec: change the shape of subsection

I have the following setup: \documentclass{memoir} \usepackage[sc]{titlesec} % "sc" to make titles small cap \setsecnumdepth{subsection} % to number up to subsection \hangsecnum % to make ...
0
votes
0answers
34 views

Formatting sections, subsections… trouble titlesec

I have a problem at the moment to edit subsections and else with titlesec, I've read the documentation (and probably misunderstand it), done few attempts, but no success. I attached the image with ...
0
votes
2answers
38 views

Removing the word “Chapter” from ToC using titlesec/titletoc

The goal is to simulate the style of this document. I managed to get rid of the "Chapter" word in chapter names using titlesec. And then I tried to do the same for the ToC, using e.g. \...
0
votes
1answer
44 views

Chapter Number replaced by chapter name

I would like to have this style instead of How would one achieve this? I am using \usepackage[md,sc]{titlesec} to make the section titles small-caps style. EDIT: "I" in my first picture is ...
0
votes
3answers
52 views

How to remove the numbers of the chapter and the section/subsection before their names?

I used the titlesec package like this: \documentclass{report} \usepackage{titlesec} \titleformat{\chapter}{\normalfont\huge}{\thechapter.}{20pt}{\huge\it} \begin{document} \chapter{Name of Chapter} ...
2
votes
1answer
55 views

Modern Chapter Heading

I would like to replicate this chapter header design you see in the picture below. I guess titlesec is the way to go but I have trouble aligning the chapter name and the chapter number. Also, how do ...
1
vote
2answers
36 views

How can I modify \@dottedtocline so it produces a continuous line instead of a dotted line for custom sectioning commands?

I need to represent deeply nested container structures in technical documents. In my representation, each container needs to have its own section with sub-containers being included in sub-sections. In ...
0
votes
1answer
61 views

Change background color of table of content - tocloft, titlesec and tcolorbox conflict

Using all three tocloft, titlesec and tcolorbox packages result in a messed up formatting in the table of contents. Here is a MWE % !TEX program = xelatex \documentclass{article} \usepackage{tcolorbox}...
1
vote
1answer
42 views

Different outputs for documents built on different Texlive versions

With this minimal example: \documentclass{article} \usepackage{parskip} \usepackage{titlesec} \titlespacing*{\section}{0pt}{1ex plus .2ex minus 0.1ex}{1ex plus .2ex minus 0.1ex} \titlespacing*{\...
0
votes
2answers
33 views

Removing extra vertical space before chapter heading

I'm trying to remove some extraneous extra space that appears before chapter headings in the book class. I've used titlesec to set the space-above to 0pt, but there is still about one line's worth of ...
2
votes
0answers
91 views

Nice and fancy, super professional looking headers examples [closed]

I'm looking for a refresh of my book's headers (it's a French book on physics, in case the content is usefull information). Currently, I'm using the headers style defined in this MWE code: \...
1
vote
1answer
30 views

How to control spacing in a title with titlesec while using float

After editing the title of a chapter with package titlesec and the command \titleformat, I realized that the spacing between lines is changed when a figure environment using the option [H] from the ...
0
votes
1answer
28 views

Making double spaced Chapter title in latex using titlesec

I am beginning to write my first draft of my dissertation, and my institution requires that my chapter titles be centered and have the following format. --larger vertical space-- 'Chapter' Chapter ...
0
votes
1answer
45 views

Hyperref bookmarks for unnumbered sections

I'm using titlesec to format subsections so that they are not numbered (as opposed to using the usual starred variant \subsection*) and using hyperref to get bookmarks with section numbers in the ...
0
votes
0answers
22 views

How to apply different formats to section, subsection, etc

I searched the internet how to use the titlesec package correctly, but I don't know what to do anymore. I need to format the headings as stated in the attached picture, but nothing I try is working. ...
0
votes
0answers
64 views

Can't reference theheading in class titleformat commands

I'm writing a LaTeX template.cls and am trying to redefine how the chapter, section and other headings are shown in the file. To do this, I'm using \titleformat from titlesec to accomplish this. Here'...
0
votes
2answers
23 views

Include horizontal line in Part title

In a memoir document I have a Part that has a title and subtitle. I want to put the title and subtitle in different lines separated by a horizontal line. With \part*{TITLE\\[5ex] Subtitle} I can ...
0
votes
0answers
38 views

How do I format my Table of Contents in LaTeX to this?

How do I implement this TOC in LaTeX? This is the TOC of "The Variational Principles of Mechanics" by Cornelius Lanczos.
0
votes
0answers
19 views

Change the spacing of subsection when it is just after section

I use titlesec package to change the spacing of sections and subsections. I'm satisfied with the result other than subsection just after section. Can I change the spacing of subsections when it is ...
0
votes
1answer
25 views

How can I make custom section label inline with name?

So I decided to try TikZ With titlesec by customising the section header design. This is what I have so far. \documentclass[10pt]{article} \usepackage{tikz} \usepackage{titlesec} \usepackage{titletoc}...
1
vote
1answer
47 views

Bold on Arial font in sections

I am trying to have bold in the sections and sub sections using Arial font, all I managed is non-bold titles, here is my conde: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[english]{...
0
votes
1answer
22 views

Package titleps: redefined plain page style footer being used by redefined empty page style

I'm using titlesec package with pagestyles option to redefine both plain and empty page styles. But when compile the code below, the empty page uses plain footer. Code: % Início do preâmbulo \...
1
vote
2answers
55 views

remove \pagebreak after \part

I am use the book documentclass with various parts. For a part, I'd like the Part number and title followed by a paragraph on the same page. Currently, I'm getting the Part number and title on a ...
1
vote
0answers
27 views

Valuable texcount implementation seems to conflict with titlesec package [duplicate]

The inset texcount implementation seems to conflict with titlesec package. The desired outcome is to relieve the conflict with titlesec as well as ensuring robustness against other potential conflicts....
3
votes
1answer
62 views

how to add background color for top and bottom geometry page?

I am trying to create a document and somehow I want it to be in color, but it has been difficult for me to try to color the top and bottom, for all pages in general \documentclass[letterpaper,12pt,...
6
votes
2answers
175 views

Equal line spacing in tabularx?

I'm using tabularx to make a nice chapter title (probably not the way to go, but the easiest for me to align stuff). How do I make the title line spacing equal? (The letter "g" messes up ...
0
votes
0answers
22 views

Implement hiding part and chapter titles from this solution https://tex.stackexchange.com/questions/16050/hide-part-and-chapter-headings

Hi I am trying to hide all \Chapter \section and \subsection headers and titles utilising the solution given here Hide part and chapter headings I have also looked at other possible solutions but they ...
2
votes
1answer
69 views

I cannot apply formatting (chapter titles) option to a report class document

Due to my research topic, I would like to write my PhD dissertation in LaTeX. One of my friend, who defended his thesis last year, sent me his his code (.tex file) - he has already set up all the ...
0
votes
1answer
49 views

How to change style in titlesec heading

I am working with code that I found here Chapter number aligned with text but have some questions on how to change it. I would like the Chapter title to be 'as written', so capital and small letters. ...

1
2 3 4 5
24