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

learn more… | top users | synonyms

2
votes
1answer
58 views

Centering section with label and title on separate lines

I am trying to center a section title with the section label on one line, and the section name on the next. ie: | Article II This is the Title | My attempt: ...
2
votes
2answers
64 views

section prefixes in TOC

I'd like to give some section special "labels" to be printed in their titles and in the table of contents. My document describes several "axes", each of them containing one or more "themes". The ...
2
votes
1answer
113 views

Chapter style for a book of complied articles

Say each chapter is an article (manually copying or typesetting the article). Naturally, article title will be used as chapter title. How do I define sections for subtitle, author, date, and source ...
2
votes
1answer
52 views

Why does my custom sectioning command crash on second run when using etoc?

Finally I have narrowed down the problem to a custom definition of a sectioning command using titlesec in explicit mode. I suspect it has something to do with me not providing an adequate counter for ...
2
votes
1answer
98 views

How to set the section “range” onto the head? scrpage2, scrbook, titlesec

I want to get the "range" of the sections of one page into the headline. I use scrpage2 scrlayer-scrpage for changing the headline and scrbook as documentclass. I try to write a MWE: ...
2
votes
1answer
85 views

determine the exact size and position of titles with the titlesec package

I need 11pt titles and don't know what to do, 'medium' seems quite vague. This is my code: \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\Medium\upfamily\centering} ...
2
votes
1answer
362 views

\titleformat (in titlesec) doesn't show any horizontal line for chapter

I have been trying to get a simple thing working with titlesec: getting a horizontal line under each chapter. There are many tutorials, documents and questions on TeX that explain how this can be ...
2
votes
2answers
197 views

Absolutely prevent pagebreak after section title

Okay I've searched but didn't find any existing solution. My question is how to absolutely forbid pagebreak immediately after section title. I tried: \makeatletter ...
2
votes
2answers
103 views

Using titlesec with mwrep class

I use mwrep class in my document and try to customize section titles with titlesec. It works OK for sections and subsections but it has no effect for chapters. Here I read that "The mwrep class uses ...
2
votes
1answer
73 views

dynamic title size using titlesec

Is there a way to dynamically size titles as part of a \titleformat (from the titlesec package) definition? I'd like to scale titles of different lengths to be the same width (relative to \textwidth) ...
2
votes
2answers
606 views

\titlesec and chapter&section missing zero error

I've looked and looked on here for a possible answer but i'm coming short. I even referenced the titlesec .pdf instructions and still no clue. I'm having an issue with my \chapter in the main body, ...
2
votes
1answer
112 views

section head box different font-size and two arguments in a level section

I'm expecting the below section heading is different box and section number is different box. After A level section default 4 icons need to print below (please refer screenshot). ![enter image ...
2
votes
1answer
115 views

titlesec-package prevents TOC from showing full subsection number

I'm using titlesec for customizing section titles. The problem is, that it prevents TOC from showing full (sub)subsection numbers. This applies to referring to section labels as well: ...
2
votes
1answer
167 views

What do I tell titlesec to get default values?

I'm making a style package for my student union, changing to our official fonts and adding other convenience methods. I've declared a main (serif) font and a title (sans) font family, and I want to ...
2
votes
1answer
152 views

How to insert a paragraph before the chapter title?

I need to include several lines before the chapter title for some (not all) chapters. A new chapter always starts with a new page, how to realize the following layout for certain chapter while other ...
2
votes
1answer
187 views

Too much vertical space after long section title using titlesec

I'm using titlesec to change the style of my section titles. Sometimes, when the title is long, but just short enough to fit on one line, some extra vertical spaces is add. The following MWE ...
2
votes
1answer
5k views

How to change the font for chapter title with titlesec and titling under XeTeX?

I'm using XeTeX to edit a document in which I am trying to use titlesec and titling to set a different font for some headings. I'm using the approach suggested as a reply to a similar question, but ...
2
votes
1answer
83 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
112 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} ...
2
votes
1answer
560 views

Getting chapter title bigger

I would get bigger only the chapter title. I heard I should use titlesec package but I didn't understand how I should use it to achieve what I mean. I'm using book class
2
votes
1answer
1k views

titlesec and bibliography

I use titlesec to capitalize and display the chapter title at the center. Everything is fine until I get to the bibliography, the word 'bibliography' is not capitalized. Here is an example ...
2
votes
1answer
290 views

Titlesec and xcolor not playing nicely?

I am trying to use the titlesec and xcolor packages together (well, actually, the tufte-book class is, but that's another story.) Here is a minimal LaTeX file that illustrates my problem: ...
2
votes
1answer
691 views

Modifying toc & bib titles

I would like to \flushright the toc's and bibliography's title, but the font size and spaces above and below should be the same as for regular chapters. Here is what I did: \documentclass{report} ...
2
votes
1answer
230 views

Firsttitlemarks does not appear consistently in header

I am using this code for my header marks, but as you can see it misses the very first mark for the subsection which should be the first verse. % definition of the page style with required headers ...
2
votes
1answer
20 views

Collapsing section ranges in titlesec page headers

I'm attempting to use dictionary-style ranges for page headers using titlesec, but I'm running into a problem when trying to collapse them if there's only a single range on a given page. The ...
2
votes
2answers
32 views

Center the “part name” in the table of contents [duplicate]

I want to change in the table of contents the look of the parts. I reproduced on Word what I want : I've looked into the site if the question was already answered but I didn't found what I want. ...
2
votes
1answer
57 views

Automating Title Capitalization in Sections, Subsections, etc

I'm trying to automate the capitalization of titles in sections, subsections, etc. Basically, I'd like to format every title with \capitalize from the stringstrings package. One approach I've tried is ...
2
votes
1answer
61 views

How to change space before and after chapter / section etc

I would like to have the following spacing: \titlespacing*{\chapter}{0pt}{50pt}{30pt} \titlespacing*{\section}{0pt}{13.2pt}{*0} \titlespacing*{\subsection}{0pt}{13.2pt}{*0} ...
2
votes
1answer
44 views

Wrong section number with fancyhdr when using clearpage

I am using Latex for my Bachelors Thesis and I have run into a little problem, I haven't been able to fix yet: I am using Article as my document class and want each section to start with a new page, ...
2
votes
1answer
38 views

A manually created suffix for section titles compiled using tex4ht

I am building a document that looks one way with xelatex and another plain text file appearance using tex4ht. I produce an html document that then produces a great document that can be copied into ...
2
votes
1answer
135 views

Book (Novel) Layout

I would be grateful for any advice please. I would like to format section headings with the Mathilde font. However, I receive an the error: File ended while scanning use of \scr@ttl@@extract. Usage ...
2
votes
1answer
48 views

Add “Part” before the number in Toc when using titlesec package

According to other answers here and elsewhere on the Internet, to add "Part" before the part number in the ToC you do this: \usepackage{tocloft} \renewcommand\cftpartpresnum{Part~} However, I've ...
2
votes
1answer
133 views

Package titlesec Error: Incompatible package?

Here is my code. Something goes wrong. \documentclass{book} \usepackage{titling} \usepackage{lastpage} \usepackage{titleps} \newpagestyle{main} { \sethead[\footnotesize \sffamily{Page}\thepage\ ...
2
votes
1answer
63 views

Problem with pgfornament in titlesec \titleformat

I'd like to make a nice section title using the pgfornament package in the \titleformat of the titlesec package. When I use only one ornament on the left side it works. \documentclass[11pt]{book} ...
2
votes
1answer
35 views

Changing the relative position of the starting point of every chapter (also Preface, References, Index if any)

I would like that the starting point of the first page of each chapter (also Preface, References, Index if any) be at the position 1/3 of the text-height of the page (from the top of the page). In ...
2
votes
1answer
96 views

remove chapter number from section entries in tableofcontents

an MWE: \documentclass{book} \usepackage{a4wide} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{polyglossia} \setmainlanguage[spelling=new,babelshorthands=true]{german} ...
2
votes
1answer
58 views

Can we change something so that the chapter is at the left side?

Using the following commands: \usepackage[sf,sl,outermarks]{titlesec} \titleformat{\chapter}[display] {\bfseries\Large} {\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter} {4ex} ...
2
votes
1answer
137 views

left and right aligned section title on one line

I am trying to have a simple bilingual title for a section. The English text should align to the left and the Arabic text should align to the right, both on the same line. The following line of ...
2
votes
1answer
169 views

Epigraph on Part Page

I used the solution given here to get a nice, customizable epigraph on a part page. However, the solution uses the command \usepagestyle{epigraph}, and because of this, the part page has a ...
2
votes
2answers
129 views

How to convert titlesec code to scrlayer-scrpage code

In my LaTeX code I use the actual version of the KOMA-script bundle and its documentclass scrbook. In this regard I wonder how to convert code which uses the package titlesec to code which should use ...
2
votes
1answer
37 views

Problem with pagebreak in titlepage

I am trying to make a first page template. At this template I want a box at the bottom of the page with some text, but I can not get TeX to put it at the bottom, but rather it is moved to the next ...
2
votes
1answer
54 views

Hide titleformat in a macro when [explicit] is loaded

This is a follow-up question to: Different titleformat style for different numberless chapters I have something like the following macro: \titleformat{\chapter} {\normalfont\Huge\color{blue}} {} ...
2
votes
1answer
116 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
2
votes
1answer
147 views

Add parts titles to the LOF

I would like to add parts and chapters to the LOF. I can add chapters but the \apptocmd{\@part} doesn't work unless I comment \titleformat{\part}. Why ? I have found a workaround with ...
2
votes
1answer
136 views

How can I exclude a custom sectioning command from the table of contents?

Question How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra ...
2
votes
1answer
83 views

I want to place a dot after the numbers of sections, subsections, and subsubsections [duplicate]

My goal is as stated in the question title. There are other questions addressing this, but the answers selected, as best I can tell, don't get along with my other existing code, which is summarized ...
2
votes
2answers
864 views

Margin adjustment for section text

I've been messing with my margins, section dimensions, geometry package dimensions, and titlesec settings to get this layout (and have, so far, failed): (left margin set at 0.75in) ...
2
votes
1answer
204 views

Display \parttitle in header\footer with titlesec package

I want the \parttitle displays in the header, however, as you see on the picture below, this command has been ignored: I tried solutions from there questions: How to get part name in LaTeX ? ...
2
votes
2answers
132 views

Page breaks inside titlesec section headings

I use LaTeX to generate contracts and agreements. In most cases, it works okay but, every so often, it causes problems with pagination; specifically, if I have too many subsections without an explicit ...
2
votes
1answer
69 views

Modifying Section Style modifies the style of Contents in ToC

In the article class, if the style of the section heading is changed, the style of the contents heading in the Table of Contents is also changed. How to prevent this? ...