Questions tagged [titlesec]

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

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

Increasing vertical spacing between EMPTY subsection and the next section

I'm trying to create a template for a worksheet that is very easy to use and edit for people with minimal to no TeX experience and decided to adapt the sectioning commands with titlesec to structure ...
0 votes
1 answer
28 views

Inserting a section title into a header with titlesec and fancyhdr

I would like to place specially formatted section titles into page headers. I had been accomplishing this with titlesec and fancyhdr. However, after updating my tex distribution my solution no longer ...
0 votes
1 answer
66 views

Display All Section Marks on the Page's Header

Typing a document with package titlesec, pagestyles can easily mark first and last section title in the page header. But How to display all section marks that appears in the page to the page's header? ...
  • 61
2 votes
1 answer
31 views

How to make chapter and section titles have title rules with different lengths?

First an MWE and its output are as follows: \documentclass{book} \usepackage{titlesec}% \let\oldtitleline\titleline \renewcommand{\titleline}{\oldtitleline*} \setlength{\titlewidth}{0.3\textwidth}% \...
  • 3,331
0 votes
1 answer
38 views

Titlesec undoes an etoolbox patch. How to make them compatible?

This answer says how to avoid indenting long section titles and obtaining something like in the picture (not me who introduced this format, it's just the format I have to deal with now, and titles ...
  • 4,522
1 vote
1 answer
19 views

titlesec section titlespacing not working after clearpage

In my scrreprt styled dcoument, the chapters, sections, etc. are formatted with titlesec. It is configured to insert a \cleardoublepage command before a new chapter and a \clearpage command before a ...
  • 13
2 votes
0 answers
48 views

frame does not appear in xelatex

I'm new in Xelatex, I'm trying to write a text with arabic font so I used polyglossia package and everything is okay but when I worked with titlesec the frame is not appearing if I used arbic or ...
  • 108
0 votes
0 answers
36 views

modify book.cls class to add one more section level (subsubsubsection)

I would like to modify the book.cls class by adding one more section level (subsubsubsection). I know this can be done with the titlesec package, but I'm looking for a way to do this within a copy of ...
1 vote
0 answers
18 views

I want Section 1 and chapter one the same page. otherwise the section on the new page

\usepackage{ifthen} \ifthenelse{\value{section}=1\OR \value{section}=0} {\renewcommand*{\thesection}{\arabic{section}} \let\bkdsection\section \renewcommand*\section{\bkdsection}} {\...
1 vote
1 answer
34 views

Setting styles of page numbers for chapter pages and normal pages

I have the following formatting requirements for my page numbering: For chapter pages, centered on the bottom (half an inch from bottom edge of the paper) For normal pages, right justified on the top-...
  • 11
2 votes
1 answer
56 views

How to get chapter title in header the same color when chapter title itself is in multiple fonts with different colors?

Assume I need to sandwich English words in chapter titles which are mainly in Burmese. I want those sandwiched English words in red color. However I want to have all the headers text only in gray ...
  • 151
3 votes
0 answers
21 views

titleformat and parttoc

I would like to have a parttoc on the first page of the part but I would like to be able to change the style of the part title. Can someone help me please ? I need to run this : \documentclass[12pt,...
  • 31
0 votes
0 answers
29 views

Thick line to the right and thin line below section of section title

I am trying to customize the section title of an exercise book I am writing. The sections are numberless. I would like to get something like this: EXERCISES ################################ My ...
0 votes
2 answers
44 views

Alignment of a 2-line title in the TOC in scrbook

I have checked several other questions addressing similar issues as this one, but I am still not able to tweak my document the way I want. I have this 2-line chapter title: which looks awful in the ...
2 votes
1 answer
44 views

How to Prevent Titlesec from Automatically Producing an Entry in the TOC

The following code is derived from egreg's answer in Centering an Arabic Section Number Above Justified Title Text \documentclass{book} \usepackage{titlesec} \titleformat{\section}[display] {\...
  • 5,723
3 votes
2 answers
45 views

How to produce a line break with the runin style?

When using the runin style for sections, text will immediately follow the title. However, in some rare situation I would like to have a line break after the title. How should I achieve this? I tried ...
  • 6,811
0 votes
0 answers
34 views

Difference Between Break and Linebreak Commands [duplicate]

The motivation for this question originates from the answer given to Centering an Arabic Section Number Above Justified Title Text Consider the code \documentclass{book} \usepackage{titlesec} \...
  • 5,723
1 vote
1 answer
36 views

Centering an Arabic Section Number Above Justified Title Text

Consider the code \documentclass{book} \usepackage{lipsum} \usepackage{titlesec} \titleformat{\section} {\sffamily\Large\bfseries} {\thesection}{1em}{} \renewcommand{\thesection}{\arabic{section}}...
  • 5,723
1 vote
1 answer
18 views

More space below the section title

I'm having some troubles to add space in my section title. Some of my code is this: \documentclass[11pt, oneside]{book} \usepackage{xcolor} \definecolor{bleudefrance}{rgb}{0.19, 0.55, 0.91} \...
  • 71
3 votes
2 answers
80 views

Change position of Chapter number and word "chapter" on chapter title page

I am writing my thesis in Latex and would like to create a nice chapter title page. I would like to place the chapter number and the word chapter on the right side, slightly overlapping the image I ...
0 votes
1 answer
23 views

Changing my chapter heading style and would like to add some text below the heading and before starting the content

Currently, my PhD thesis chapter heading looks like But I would like to make it like or something stylish, but I have to write some text between the chapter name and the starting actual content of ...
  • 395
0 votes
0 answers
24 views

titlesec adds extra space on top of chapter number in report class

This is the third question in a series of questions I've asked regarding titlesec adding extra space on top of the chapter number. I am using the report class and I want the space above chapter number ...
  • 1
0 votes
1 answer
25 views

How to make the chapter number 1 inch from top of page?

I'm writing a thesis, and the department requires all main headings;i.e., chapter numbers (including the title of table of contents) to be 1 inch from top of of the page. I'm using \usepackage[margin=...
  • 1
0 votes
2 answers
36 views

Remove white space above chapter number

I'd like to remove the white space above all chapter numbers. I've tried both titlesec and etoolbox, neither of which worked. Here's my code: documentclass[12]{report} \usepackage[utf8]{inputenc} \...
  • 1
0 votes
2 answers
59 views

Extra horizontal space with titlesec's runin style and microtype

Consider the following example: \documentclass{article} \usepackage{titlesec} \usepackage{parskip} \usepackage{microtype} \titleformat{\section}[runin]{}{}{0pt}{} \titlespacing{\section}{0pt}{\...
  • 6,811
0 votes
0 answers
64 views

Specifying different font (features) for section headings in LuaLaTeX

I love old style figures. But I think old style figures don't look too good in section heading numbers (1, 1.1, 2 etc.). I'd like to see lining figures in section headings and proportional figures in ...
  • 613
1 vote
1 answer
37 views

Issues with titlesec's \titleclass

Following the guideline in section 3.9. Creating new levels and changing the class of the titlesec manual, I'm trying to create a new sectioning command \sectionsub under \section, to achieve what was ...
  • 6,811
1 vote
2 answers
40 views

titlehead disappears with titling-package

I would need a titlehead on my title page (see related question here) and, format the title page with the titling packages. Unfortunately the titlehead disappears when the titling package is loaded. ...
0 votes
0 answers
33 views

Problem with no numbering \subsection*{} - getting "Missing number, treated as zero" error

I have the following subsection within my latex in overleaf: \subsection*{\textbf{Musical Notations}} The * sign is added in order to avoid numbering of this subsection as offered in the overleaf ...
0 votes
1 answer
18 views

How to remove fancy section pages while keeping their name elsewhere?

How can I get get rid of the section pages while keeping the section text in the upper right corner? Removing \section*{Figure A}% leads to \documentclass[12pt,landscape,titlepage]{article}% \...
  • 295
0 votes
0 answers
22 views

\usepackage{titlesec} Font formatting question

I'm trying to format the chapter title so that it is not in all caps. I'm using titlesec. Is there something about the following code that is causing it to go all caps? Thanks. \usepackage{titlesec} \...
  • 1
0 votes
1 answer
36 views

How to get a indented subsubsection with a run-in title?

I've tried the follwing: \usepackage{titlesec} \titleformat{\subsubsection}[runin]{\bfseries}{\thesubsubsection}{1em}{} But if I do \titleformat{\subsubsection}[runin]{\hspace{3em}\bfseries}{\...
0 votes
0 answers
21 views

Disable vertical centering of a part title page in titlesec

I'm using titlesec to re-style my part title page. I would like the part title to appear a fixed distance from the top, but the default behavior for the page class is to center it vertically. I want ...
1 vote
1 answer
50 views

Change spacing before and after (sub)sections in KOMA class

This is my first time using LaTeX and I want to reduce the space below subsubsections (and others). Similar questions have been asked multiple times, and the solution was usually to use titlesec. I ...
0 votes
1 answer
31 views

How to center only \subsection{} while all other section types remain aligned to left?

The question is essentially above. How can I only center a specific section type while all others remain in the standard formatting? \documentclass{report} \begin{document} \section{Blabla} %this one ...
1 vote
2 answers
49 views

Changing the TOC in the document class book so that it's not a chapter

I want to use the titlesec package to format the chapter titles but apparently the TOC is then also formated this way. How do I make it so the TOC does not get affected? Here is my MWE: \...
0 votes
0 answers
50 views

Error when trying to style section/subsection

I've followed this example for section styling. How to create custom section titles with a “<title> <number>” format in LaTeX? There's no error in the MWE, but as soon as I insert it in my ...
0 votes
1 answer
14 views

Center section with number after prewitten text and in a new line the section caption

I am a beginner at LaTeX, and i was wondering how should i make a section with numbering following a prewriting "text", and a in a new line (the text i want to add in the section{}, all ...
  • 91
0 votes
2 answers
33 views

Restore the title label format at the end of appendix

As invoking of \appendix will change the section number format from arabic to Alpha, I construct a pair of macros named \appendixon and \appendixoff whose function is to keep the number format ...
  • 2,619
0 votes
1 answer
29 views

How to add heading for appendix

I have a problem. I would like to add an appendix, unfortunately I do not have an appendix heading. It should look like this What I want Appendix A Heading However, it looks like this What I have A. ...
  • 199
0 votes
1 answer
43 views

How can I put chapter number and chapter title in one line in memoir?

I want to put chapter number and chapter title in one line and i found this code that works well: (Chapter number and chapter title in one line) \documentclass{book} \usepackage{titlesec} \titleformat{...
0 votes
1 answer
31 views

Problem formatting header and footer with fancyhdr

I am writing my thesis using \documentclass[12pt, oneside]{book} Using the document class 'book', I am automatically getting 'Chapter #' headlines which I don't want and have removed using titlesec ...
0 votes
0 answers
14 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 ...
  • 175
1 vote
1 answer
21 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 ...
  • 13
0 votes
1 answer
28 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 ...
  • 25
0 votes
0 answers
27 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 ...
  • 429
1 vote
0 answers
29 views

Should titlesec commands be inserted after \usepackage{polyglossia}? [duplicate]

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 ...
  • 384
0 votes
1 answer
27 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}...
  • 1,460
0 votes
3 answers
71 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 ...
  • 1,052
0 votes
0 answers
28 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: \...
  • 133

1
2 3 4 5
28