Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [titlesec]

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

1
vote
1answer
15 views

hyperref and titletoc: prints extra “section.1” or “Doc-Startchapter.1”

I'm using both hyperref and titletoc for writing my thesis, which is known to cause other kind of incompatibilities which I don't observe in my case. Using titletoc I'm adding a table of content at ...
2
votes
1answer
19 views

How to place part titles to top of paper

How to place part titles like chapter titles in book class? MWE: \documentclass{book} \usepackage{lipsum} \usepackage{titlesec} \titleclass{\part}{top} \titleformat{\part}[display]{} {\huge\bfseries ...
0
votes
2answers
39 views

How to get custom section style using titlesec?

I am trying to design a custom section. My desire section will be something like this : But I am unable to get the exact result. This is what I was trying : Horizontal rule will be joined at the ...
2
votes
2answers
41 views

titlesec: Want to remove section nums in TOC but not subsection

Title says it all. \documentclass[twoside]{article} \usepackage{graphicx} \usepackage{bm} \usepackage{amssymb,amsmath} \usepackage{mathrsfs} \usepackage{titling} \usepackage{bigints} \usepackage{...
2
votes
1answer
30 views

Option clash between elsarticle and titlesec?

Is there a way to avoid that the first line of a paragraph in an article using both elsarticle and titlesec be indented? I want to change in some minor way the section format but without losing the \...
5
votes
2answers
105 views

How to add double frame in tcolorbox?

Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page ...
1
vote
0answers
27 views

Print Chapter name in TOC but not where chapter starts

I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text. Following code give a blank page before the chapter title ...
0
votes
0answers
15 views

Titlesec: Need to make format exception for Contents and References

I am using titlesec to place the \S character the begining of each section and subsection title. It is also appearing on the title of the table of contents, and also the title of the references ...
5
votes
3answers
164 views

How to add frame around section using titlesec?

I want exact this section style but I am unable to add frame around it. Could you please help me? Here is my code snippet : \documentclass[10pt,a4paper,twoside]{report} \usepackage{blindtext} \...
0
votes
0answers
13 views

Use of packages \titlesec and \appendix in spanish babel with utf8?

My code is like this: \usepackage[utf8]{inputenc} %encoding multi-byte \usepackage[T1]{fontenc} %para los separación de palabras "can-ción" \usepackage[spanish]{babel} %traducir al español Chapters, ...
0
votes
0answers
28 views

Vertically rotated Chapter style with titlesec

Hi I'm trying to create a custom class for my thesis using article. I want the chapter title to appear vertical, so far I've tried using titlesec but I've encountered some problems. This is what I ...
1
vote
1answer
26 views

New title class doesn't increase counter

I'm fairly new to LaTeX and need to create a subsubsubsection in a document. After looking around I found that it could be done with titlesec. I've followed all instructions I've been able to find but ...
0
votes
2answers
19 views

How to get horizontal rules around title and left-aligned author details?

I want to format the title and author section of my report like the authors have done in the image below. I have tried putting two horizontal rules above and below the title, but, if I do this, the ...
0
votes
1answer
34 views

Legal-style indentation with text on the same line as the subsection title

A legal document requires the indentation format as in Question How can I get legal style indentation on section, subsection, subsubsec.. using titlesec?. I'm using the answer to the related question ...
0
votes
0answers
31 views

sectioning - section and subsection starting in the same line

I need to save as much space as possible in my document. So, I use \titleformat with the [runin] shape argument from the titlesec package to use the space after a section heading. Whereas this works ...
0
votes
0answers
25 views

Spacing between figure number and caption text in table of contents

I want to have equal spaces between my caption number and caption text on the list of figures and list of tables. I tried modifying the lines as given Here But the list of figures have less space in ...
1
vote
1answer
27 views

Changing Typeface of Part

How do you change the typeface used for the part environment to an Opentype font? (In the MWE below, I've used a TrueType font, but the method should be the same). It appears the standard titlesec ...
2
votes
1answer
153 views

epigraph and titlesec+titletoc create misbehaviour

I use titlesec and titletoc to create my own style of chapter that contains a minitoc after the chapter title. And I use epigraph when I want to have one before the chapter title. I am currently ...
0
votes
0answers
22 views

titlesec makes fancyhdr mistreating the document class

MWE is pretty simple: \documentclass[twoside]{article} %\usepackage{titlesec} \usepackage{fancyhdr} \begin{document} \pagestyle{fancy} \section{tist1} \subsection{a} \newpage \subsection{b} \end{...
0
votes
2answers
54 views

How do I center the table of contents title without using tocloft?

I would simply like to center the title of the table of contents in my "book" document. I just added dot leaders to the table of contents, and this appeared to be best accomplished by forgoing the ...
0
votes
0answers
33 views

section in-line numbering and vertical spacing with the titlesec package

I am writing a class file for a template with very specific requirements. One of those requirements is that a section title must be bolded, centered, and be written in single-spacing with a single-...
0
votes
0answers
32 views

Differentiate Chapter Headings in ToC and Body

Working on formatting a thesis (using the book class) and I need to format the TOC entries and the actually chapter headings in very different ways. For the ToC, entires are in all caps and use roman ...
1
vote
0answers
45 views

Subsection title does not align with its section title under [left margin]

I put section title in left margin with use of titlesec package, and the first line of its text aligns with the title as expected. But its subsection title does not align. I tried with titlespacing ...
0
votes
1answer
60 views

font change for chapter, section, subsection titles

So, i am struggling to change the font for title/section/subsection in latex. Here is my code : % !TEX TS?program = pdflatexmk \documentclass[fontsize=12pt]{book} \usepackage[T1]{fontenc} \...
0
votes
1answer
46 views

Fail to renewcommand contentsname if \pagesty{fancy} is introduced

When I customize the \contentsname with \renewcommand, I find that the existence of \pagestyle{fancy} or \thispagestyle{fancy} will cause compile fail. I can't understand this. why? Is this a problem ...
1
vote
1answer
33 views

Incompatibility of scrbook and titlesec when trying to have chapter heading on a single page

I am trying to display a chapter heading always on a single page with the document class scrbook. Gladly, I first found an answer here: How to display chapter header in 1 complete single page The ...
0
votes
1answer
38 views

Illegal unit of measure all chapters titlesec

I am trying to configure how my chapter headings look. So far, they looks as I want. However, there are some errors. All my \chapter are having these errors: Illegal unit of measure (pt inserted). \...
0
votes
0answers
37 views

Section numbering and package “sectsty” together with “titlesec”

I use both packages. However, if I load sectsty before titlesec the section numbering of a subsubsection ends with 1.1, but has to 1.1.1. And if I load titlesec before sectsty, subsubsection ...
2
votes
1answer
36 views

Arguments transmission in \titleformat of titlesec

I want make my own style of titles(section/subsection... etc.) by the package titlesec. The title name is specified by a macro. But it fails to pass compile. This do is a problem also for the other ...
0
votes
1answer
25 views

Colored section title fails with [leftmargin] option of titlesec

I want my section title colored. It's all right when I use \titleformat from the package titlesec to set it. But when I add the option argument [leftmargin], the title text fails to change color. Is ...
1
vote
2answers
40 views

Recover style of \section modified by titlesec

After the \section style is modified by the titlesec package, I want to return to the original style by \let and \renewcommand, but fails. Why and how to achieve this? MWE: \documentclass{article} \...
1
vote
1answer
27 views

Spacing issues from vertical margins

I am trying to make the text in my document to align with the margins of my document. Here's a MWE \documentclass[12pt]{report} \usepackage[top=1.0in,hmargin=1.25in,height=9.0in,letterpaper,showframe]...
1
vote
1answer
75 views

How to increase width of \titlerule in \titleformat?

I want to change the width of the \titlerule under every section, the following is my code, I am using \titling and \titlesec packages in order to achieve that. The documentation said I can do {\...
0
votes
0answers
64 views

Headers using titleps (and titlesec) don't work with custom section command in twocolumn mode

I am introducing a new (custom) sectioning command (called \subchapter) using the titlesec package. I am also using titleps (or more accurately the pagestyles option for titlesec) to put the title of ...
1
vote
1answer
50 views

Set margins / make box for the section title with titlesec

I would like to set right and left margins for the section titles, so that they are a little less wide than the width of the text, and that in turn they remain centered. Basically, I want the width of ...
0
votes
1answer
35 views

Chapter Title and its name on middle of page

I use following code for sectioning of my title page of thesis. First two chapters title and chapter number is in mid of seperate page and text is started from next page,but next chapters start from ...
0
votes
1answer
41 views

Custom section and subsection make problems in TOC

I got some problems while using amsart class and titlesec package. I customized my section and subsection. Here is my code: \documentclass{amsart} \usepackage{titlesec} \titleformat{\section}[...
1
vote
1answer
31 views

Spacing issue on chapter page with page break due to section

I'm using the titlesec package to redefine the chapter format, and I noticed a spacing issue when adding a section which causes a page break. Essentially, I want the title displayed between two ...
1
vote
0answers
19 views

Bookmarks hierarchy with custom titleclass

I'm new here, but I've been using LaTeX for some years already. Recently I had to define new chapter- and section-like levels in my document, and I created them using the titlesec package, with the ...
2
votes
2answers
65 views

KOMA script: how to create an empty page after each chapter heading?

I'm using KOMA script's scrbook, and would like to have each chapter title to be in its own page, followed by an empty page. Currently it's acheived with titlesec, by the following code (using ...
1
vote
1answer
65 views

Titletoc + titlesec to create automatic ToC at beginning of chapters

I want to create an automatic Table of Content (ToC) at the beginning of very chapter. To do so, I use the combination of packages titlesec and titletoc. I use \titleformat to include the command to ...
2
votes
1answer
47 views

ToC - add manual prefix “Part” to hyperref

I successfully added the prefix "Part" to my toc following this answer. However, it is not included in the hyperlink to that part of the document. Here is a MWE: \documentclass[a4paper,twoside,...
0
votes
1answer
34 views

Titlesec package removes indents from section headers

For my text document with the book class I start each new chapter with an abstract. The format of this abstract section is designed such that the abstract header is indented with respect to the ...
0
votes
0answers
38 views

Change paragraph TOC style

i'm modifying my LaTeX template, and I used the code from this answer to modify a few things in my TOC. Currently i have this code [Modified in order to make it compilable, using the same libraries my ...
2
votes
1answer
35 views

scalebox not acting as expected within titlesec formatting

In the following MWE, the \makeatletter ... \makeatother block gives a specific format to the title/author of the article. My hope is to match that formatting with the section/subsection titles using ...
-1
votes
1answer
68 views

Title of a chapter without the word “chapter”

At the end of my dissertation, I have a plan for future work. My question is How can I make the title "Future work" appear as a chapter heading without the word "Chapter" and also number as well as I ...
4
votes
1answer
32 views

How to adjust the horizontal spacing/ margins in custom framed title

I would like to increase the space between the left and right edges of a framed chapter title. I am very new to LaTeX, and am struggling with the package documentation. How can I set text margins ...
1
vote
0answers
50 views

`titlesec` and `memoir` class incompability

I know that titlesec is not fully compatible with memoir document class and generally it is not a good idea to combine them. However, I'm just curious, if it possible to work around my problem. MWE: ...
0
votes
1answer
44 views

Local table of contents (etoc) in part title (titlesec)

I have a problem with combining titlesec and etoc, are they compatible? I want to use formating from titlesec and then after part title, on the same page, I want to add local table of contents. ...
2
votes
1answer
63 views

“There's no line to break” after a \\ in \titleformat

I have problems when trying to compile a document with \section modified. I wrote the following code for my format: \renewcommand{\thesection}{\Roman{section}} \titleformat{\section}{\centering \bf \...