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.

0
votes
1answer
24 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
24 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
27 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
21 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
27 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
18 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]...
2
votes
1answer
20 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
58 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
30 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
30 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
34 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
29 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
13 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
57 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
47 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
40 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
31 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
34 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
34 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
57 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
29 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
49 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
35 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
59 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 \...
0
votes
1answer
38 views

Error with \titleformat command after inserting TOC

MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsfonts,amssymb,amsbsy,amsmath} \usepackage{tocloft} \usepackage{times} \usepackage{titlesec, titleps titletoc} %%\titleformat{...
1
vote
1answer
31 views

Customize sections in table of contents using title format

I want to enumerate correctly the sections in the table of contents using \titleformat. I used the code below, but the numbers of sections aren't correct as shown in the attached image! Thank you for ...
6
votes
1answer
128 views

Chapter with graphical formatting

I am formatting a book and I am using LuaLaTex. I am trying to obtain the following formatting for the chapters, The following code correctly generates the chapter title \usepackage{titlesec} %...
0
votes
1answer
97 views

“Package titlesec Error: Entered in horizontal mode” error

I am having issues with the error. Although it does not affect generating texts, it bugs me. I have a sense that there is something wrong with \titleformat lines. I have tried to solve the issue by ...
1
vote
1answer
31 views

Align section content

I have section headings starting with an icon, I'd like section content to be aligned with the first character in the title, not with the icon. I managed to do it hardcoding the distance with \hspace, ...
0
votes
1answer
40 views

How to change the chapter style for a selected number of chapters?

Is there any safe way to change to chapter style for specific chapters? This seems to be quite common, as, for instance, unnumbered chapters such as acknowledgements and other bureaucracies for a ...
3
votes
2answers
40 views

Problems with bold math in title via titlesec

I wanted to have Bold math in title but not in TOC and I chose Bernard's solution with titlesec which the document was already heavily using. It worked except for two problems: --I was unable to ...
0
votes
0answers
36 views

Difficult partnership of titletoc and titlesec

Thank to different threads and to the help of tex.stackexchange, I reached satisfactory formats both for Table of contents and for text titles. But escapes me the logic of the synergy between titlesec ...
0
votes
0answers
45 views

Different titleformat style for different numberless chapters (2nd part)

Referring to this thread: Different titleformat style for different numberless chapters, I've the following code: \begin{filecontents*}{\jobname.bib} @book{ bottero:1992, author = "Bottero, ...
3
votes
2answers
75 views

align section content with first line in runin section

I'm currently using the following layout for my weekly exercises at my university: \documentclass[a4paper, 12pt]{article} \usepackage{titlesec} \usepackage{lipsum} % section title format and spacing ...
1
vote
1answer
32 views

Titlesec and titles vertical alignement

With the following code: \documentclass[a4paper,12pt]{report} \usepackage{fontspec} \setmainfont{EB Garamond} \usepackage{polyglossia} \setmainlanguage[babelshorthands=true]{italian} \...
1
vote
1answer
35 views

Titlesec for numberless commands

how can I modify numberless chapters as Table of contents in book or report class? the following code, f.e., doesn't anthing. Wrong syntax or something else? \documentclass[a4paper]{report} \...
0
votes
1answer
42 views

LaTeX (Custom Chapter Title)

I have customize the chapter title. But, I want that the custom chapter title will not be set for all chapters. I want to set different chapter title styling for different chapter. Is it possible and ...
0
votes
1answer
29 views

Put Page Number and Title on Margin with Titlesec

I Want to create this layout: With the title in the black box, using titlesec. But I just have got this result: And I can not move down the number page... Here is my code: \documentclass{book} \...
0
votes
1answer
28 views

Titles alignements with titlesec /etoc [duplicate]

PLease, consider the following code: \documentclass[a4paper,twoside,11pt]{report} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage[babelshorthands=true]{italian} \PolyglossiaSetup{...
1
vote
0answers
28 views

Why I can't modify subsubsection style (using titlesec)?

I'm trying to create a new layout for my document and I'm using the package titlesec. I could manage to modify the section and the subsection style but I can't find out why I can not modify the ...
4
votes
1answer
141 views

Sub-Tocs in Appendices and Appendices as Sections on Toc

I am trying to compile a document with 'Sub-tocs' on the first page of each part and each chapter. Gonzalo Medina's solution to a previous question can be used to achieve this. The appendices ...
0
votes
1answer
29 views

Get back standard title format with titlesec

I needed to reduce the size of the blank space before my title in Appendix part; I've read that, to do it, i needed titlespacing, and to use titlespacing, I had to use titleformat before. Since I ...
1
vote
1answer
187 views

Underlining a section title

Many text formatting commands come in two flavors: a brace-delimited version and an "declaration" version, that applies to everything after the command. For example, \textbf vs \bfseries. However, ...
1
vote
1answer
48 views

Fancy Heading using Tikz and Titlesec

I want to connect the blue parallel lines with two blue vertical lines. Is there are easy way out of this? Thanks \documentclass[oneside]{article} \setlength{\oddsidemargin}{0.25 in} \setlength{\...
1
vote
1answer
32 views

Appendix chapter naming - titlesec/appendix clash

I am using titlesec to apply formatting to my chapter and section headings. When I add an appendix to the document, the chapter name reads 'Chapter A', where as it should read 'Appendix A' Running a \...
2
votes
1answer
38 views

Hyperref package not working with titlesec package when compiled with make4ht

The hyperref package seems to have conflict with titlesec package when compiled with make4ht. The following document is compiled with make4ht. The compiled html file doesn't contain table of contents. ...
1
vote
0answers
37 views

Titletoc package adds all the contents

When I use \startcontents and \printcontents the "partial" ToC added all the contents in the .out file although I use \stopcontents. They are added like inline text and the sections that are suppose ...
5
votes
1answer
56 views

Counting section for each chapter

I am newbie with latex and I try to create a section with movable section number tabs as shown below: In the following code, I used both tikz and titlesec packages to format the required sections \...
3
votes
1answer
30 views

Automatically add \begin{multicols}{N} to chapters styled with \titleformat

I'm trying to create a 3 column book layout. So far the only way I've figured out to get 3 columns is to use the venerable multicol package, which works nicely. Using the answer from this question ...
1
vote
1answer
48 views

How do I add a dot after section number in the header with fancyhdr?

I am having a hard time trying to add a dot after section number in the header, the package I am using is fancyhdr. I tried the following which did not work \documentclass[UTF8]{article} \...