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

learn more… | top users | synonyms

2
votes
2answers
134 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
4
votes
1answer
673 views

Formatting chapter headings using the titlesec package

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts. I'd like to change the chapter style. Instead of Chapter 1 Introduction I'd like to have C H A P T E R 1 ...
3
votes
1answer
116 views

How to have chapter heading style different in chapters with number and chapter without numbers?

I use the following code to change the chapter heading style \usepackage{titlesec} \definecolor{RoyalRed}{RGB}{157,16,45} \titleformat{\chapter}[display] {\centering\normalfont\bfseries\LARGE} ...
4
votes
2answers
189 views

Chapter title format back to default

I messed with various chapter title formats and now that I want to go back to default i.e Chapter 1 Title I only get 1.Title which misses "Chapter 1" appearing before the chapter title. I ...
10
votes
4answers
346 views

Include multiple pdf pages on single sheet

I would like to include multiple pages from a pdf document on a single page im my document. \includepdf can do that using the 'nup' option. \documentclass{book} \usepackage{fancyhdr} ...
5
votes
2answers
468 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
3
votes
2answers
155 views

Page styles with Koma instead of titlesec

I usually set up my page style titlesec along the lines of \documentclass{scrartcl} \usepackage[pagestyles]{titlesec} \newpagestyle{mypagestyle}{ \headrule \sethead{Document ...
5
votes
2answers
74 views

Modifiying just the <after-sep> 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 ...
2
votes
1answer
101 views

Why won't I see the table of contents?

I tried to write table of contents to my book but encountered a problem, as it prints "Sisältö" but there is no table of contents. What is the mistake I made? ...
2
votes
1answer
57 views

Properly render unnumbered sections

I have added an \ast before every numbered section by adding \titleformat{\section}{\Large\scshape\bf}{$\ast$}{.5em}{\thesection ~}. However, it produces improper rendering for unnumbered sections. ...
2
votes
1answer
66 views

Chapter Name not appearing

I wanted to style the chapter name. I referred the following link : how-to-create-specific-chapter-style-in-book-documentclass Here is my code: %Template for Technical Document \documentclass{book} ...
4
votes
1answer
104 views

How to get sentence case in section titles without biblatex

I would like to change my section titles into sentence case just like the solution here: How to make sections into sentence case The titlesec package is already included in my document to modify ...
5
votes
2answers
104 views

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 ...
4
votes
2answers
119 views

Numbering the table of contents

I'm new to latex. I have successfully formatted the chapter heading, section heading and subsection heading with titlesec package: \usepackage{titlesec} \titleformat {\chapter} ...
1
vote
1answer
59 views

Indent entire section using only preamble

I heavily use org-mode in Emacs to create TODO lists with timekeeping, which has a handy export to LaTeX feature. The problem is that in order to get my exported LaTeX document to look right, I want ...
3
votes
1answer
104 views

Spacing after section title with res.cls

It is possible to change spacing after a section title with following \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{1em}{2em} However, when I am using res.cls by \documentclass{res} ...
2
votes
1answer
75 views

Alignment of the subsection changed after styling

I applied some styling to my page.But my alignment of the sub section headers changed.Here is the code: \documentclass[12pt,oneside]{book} \usepackage{graphicx} \usepackage[explicit]{titlesec} ...
10
votes
2answers
704 views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
2
votes
1answer
56 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
5
votes
1answer
379 views

How to affect the vertical gap between the glossary's name and its body

I'm using the glossaries package for producing of nomenclature/symbols/acronyms lists, but I don't know how to influence the vertical gap between the glossary title and the first glossary entry. ...
3
votes
1answer
254 views

Titlesec problem, defining space before section with \titlespacing

I am using the article document class and have trouble with the \titlespacing command of the titlesec package (explicit). I want to have more space before the \section. MWE: ...
2
votes
1answer
64 views

Fix ToC entries created by a custom sectioning command

I face a problem with my table of contents: The look of my first chapter heading is CHAPTER ONE INTRODUCTION produced with the following code \newcommand{\mychapter}[2]{ ...
7
votes
1answer
129 views

Problem using a tikzpicture in \titleformat

I'm trying to customize the style of my chapter headings with tikz. Unfortunately, I can't figure out how to properly use tikz in the (optional) ⟨after⟩ argument of the the \titleformat command. With ...
1
vote
0answers
47 views

titleformat deviation from specified vertical space

I have specified using titleformat (titlesec) the distances around different headings. This works fine, however sometimes, LaTeX deviates from the specified spaces, presumably to better fill up the ...
10
votes
1answer
87 views

How to set a box to a rubber length width

Problem I'm trying to create fancy section heading using titlesec. I need to put the section name into a \parbox to have line breaks. I want the parbox to extend to the far right margin, but I don't ...
2
votes
1answer
276 views

Titlesec numberless section numbering

I've run into a problem where with using titlesec where my numberless sections are numbered. I took a look at a few other questions here, and the titlesec package help, where I saw the numberless ...
3
votes
1answer
87 views

Define number in \subsection in book class

I must define number be for subsubsection form : \chapter : 1 \section : 1.1 \subsection : 1.1.1 \subsubsection : 1.1.1.a Can you help me define form.
9
votes
3answers
183 views

how to get chapter title in a rectangular frame

how to get chapter heading like this in pdflatex can titlesec be used? % hanging chapters \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont \Large \bfseries}{\chaptertitlename\ ...
0
votes
1answer
75 views

Get chapter numbers as text in the report class

im trying to get my chapter numbers printed as text, but on the way there i messed up my section numbers with text "ONE" and "TWO" an such, here is what i was doing, This code centers, pull up and ...
1
vote
0answers
58 views

Setup Multiline Title in Titlesec

I need to put next line in multiline title aligned with label title. How can I accomplish this? I guess it has to do with removing the auto-indentation of the next line.
5
votes
1answer
117 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
5
votes
1answer
123 views

Title formatting with graphics

I am trying to achieve this look for my chapter titles: To achieve this formatting I use titlesec package like this : \titleformat{name=\chapter}[hang] ...
5
votes
1answer
190 views

Flexible rule length in titlesec

I'm trying to get a rule just after the label of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this: \titleformat{\chapter}[display]% ...
4
votes
1answer
126 views

Titlesec, runin shape and amsthm

I'm trying to have an old fashioned style of (sub)section numbering as in EGA (Eléments de Géométrie Algébrique, by A.Grothendieck and J.Dieudonné). For a LaTeX written example, see here. I did it ...
10
votes
1answer
164 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
3
votes
1answer
155 views

Chapter header with super huge numbers [duplicate]

I'm trying to get the chapter heading to look like this I am using the following code but the number are still so small \usepackage{titlesec} \definecolor{gray75}{gray}{0.75} ...
3
votes
2answers
216 views

titlesec troubles

I am working on a document that will consist of many sections and subsections. I want to have a table of contents per section. I am using titlesec, titletoc and titleps. I have the following MWE: ...
2
votes
1answer
59 views

Error compiling edited subsections

With reference to the question: Change size of section, subsection, subsubsection, paragraph and subparagraph title I tried this. While it works, it produces the following error when compiling: ...
2
votes
1answer
120 views

Getting table of contents to recognize titlesec paragraph

I am using hyperref to make a clickable table of contents. I am using titlesec to use \paragraph{ } as if it were a subsubsubsection. How do i get this use of \paragraph to display in my table of ...
3
votes
1answer
292 views

Adding a period after section

I have \usepackage{titlesec} \titleformat{\section}[runin] {\normalfont\Large\bfseries}{\thesection}{1em}{} \titleformat{\subsection}[runin] {\normalfont\large\bfseries}{\thesubsection}{1em}{} ...
0
votes
0answers
154 views

How to force lower case in small caps section titles?

I want my section titles to appear in lower case small caps. I tried to define a way to force lower case, but it doesn't work. \\documentclass[12pt]{article} \\usepackage{textcase} ...
4
votes
2answers
269 views

Problem with titlesec/titletoc/tikz

I have a problem in the sheet dedicated to the table of contents. I'm using titlesec/titletoc/tikz which works fine except in the page "table of contents". I have this result : The problem is that ...
3
votes
2answers
581 views

How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error ! Package ...
2
votes
1answer
206 views

Customizing titlesec

I've read through section 2 and 3 of titlesec's package documentation, and unfortunately I find it extremely cryptic, so I've given up trying to come to terms with it. Please bear with me as I'm just ...
1
vote
1answer
211 views

How do I put a short title in the header but a long title in the toc (clashing of titlesec package with sectionmark)?

The format of my thesis is as follows: \documentclass[oneside,11pt,english]{book} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{titlesec} \setlength{\headheight}{26pt} ...
5
votes
1answer
57 views

Change Sectional Skip Conditioned on Text Existing or not Before Sectional Division

I have a simple document layout with a main heading for the title, and the possibility of starting the first sectional unit (with a standard \section command) right after the title -- meaning, with no ...
6
votes
1answer
113 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
2
votes
0answers
112 views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter ...
4
votes
1answer
284 views

How to align the chapter number to the right?

Is there any way to align the chapter number to the right (without the CHAPTER word!) and the chapter title itself to the left? The chapter title must be on the line below the chapter number Here is ...
2
votes
1answer
166 views

Is it possible to have section titles inside paragraphs?

Is there a way to have section titles that are inside paragraphs, especially when using titlesec package? The runin style and others cause a paragraph break after the input line. What I am aiming for ...