Questions tagged [titlesec]

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

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

How do I automate the width of \rule in section titles in \twocolumn?

I currently have problems making the \rule operation be automated to be the same width as the title when the document is in \twocolumns. Is there a way for the grey box to follow the next line of the ...
1
vote
1answer
21 views

Separate titlesec Chapter from ToC Title

Using the titlesec package, any changes I make on chapter titles is reflected to the ToC title. The same is not true for changes I do on sections, subsections etc. I don't want the ToC title to be ...
0
votes
2answers
30 views

Left Adjustment of Title

I want to adjust the title indentation for all the section and subsection titles as shown in the image. How can I achieve this using the titlesec or other similar packages? This is a minimal version ...
1
vote
1answer
25 views

Problem with Titlesec / easy mode

I want to change some fontsizes of headings and subheadings and tried this: \documentclass[12pt]{report} \usepackage{titlesec} \titleformat*{\title}{\LARGE\bfseries} \titleformat*{\section}{\Large\...
0
votes
1answer
28 views

Using \textsc and \textbf with titlesec

I would like to have my section titles in bold and small caps, but they do not seem to work. \documentclass[12pt,a4paper]{article} \usepackage[ left = 2cm, right = 2.5cm, top = 1.5cm, ...
0
votes
1answer
61 views

Trying to replicate this Chapter Style using titlesec

I have created this style for my section titles in Lyx using the option shaded background box and defining the text as "section *" , this is how it looks in Lyx (the pink color is just the ...
2
votes
1answer
22 views

Passing a section title through to a tcolorbox in a \titleformat call

I have been trying to use a tcolorbox within a titleformat call to use part of an image in each section title. Unfortunately, it seems as though it gets stuck with passing the section title through to ...
0
votes
2answers
19 views

Add space between two parts of title format

I'm using the below code for my chapter title formatting to get rid of the "Chapter x" part and put the number on the same line: \usepackage{titlesec} \titleformat{\chapter}{\normalfont\...
2
votes
1answer
17 views

titlesec error when using hskip to shift section title

Was playing around with titlesec to design a layout for my master's thesis and have run into a problem where Overleaf/titlesec spits out an error on every section/subsection I insert. It says: Package ...
0
votes
2answers
46 views

How to suppress specific chapter number (while keeping the design) in latex?

I want to suppress the preface number "0'', contents "0'', and index number "5''. Here is my MWE \documentclass[11pt]{book} \usepackage[table]{xcolor} \usepackage{enumerate} \...
1
vote
0answers
22 views

Align following paragraphs with heading indent

I'm using titlesec to customize the look on sections. I have adjusted these different headings in a nesting manner with lower levels being increasingly indented. The paragraphs below the headings will ...
1
vote
1answer
37 views

\ref command not working in the argument of redefined section/subsection command (UAI template)

So I used this template from this UAI conference https://auai.org/uai2021/submission_instructions.php I found that the \section{\ref{some_label}} or \subsection{\ref{some_label}} are only compiled to ...
0
votes
1answer
42 views

Eliminate vertical space above book chapter

I'm trying to control the position and format of the different headings using the awesome package titlesec. However, I am having trouble controlling the vertical space above a \chapter. It always ...
0
votes
1answer
38 views

Package calc error`\let ' invalid at this point, probably wrong unit of measure

I'll attach a MWE which replicates the problem \documentclass[a4paper,11pt,oneside,notitlepage,reqno]{book} \usepackage{minted} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
33 views

titlesec interferes with the part title in TOC

In this answer, I designed a simple TOC style. However, I find the TOC setting for part doesn't work normally if the title format for \part has been modified by titlesec. Without \titleformat{\part}, ...
5
votes
2answers
228 views

Capitalize French part name

It is similar to this question, but both of its answer do not seem to work here. I defined the title format as follows: \usepackage[explicit]{titlesec} \titleclass{\part}{top} % make part like a ...
0
votes
1answer
45 views

How do I make the sty of the chapter like this?

I want to make the chapter's style like this, I have tried the following code. And get this: But I can't put the "Chương 1" into the center of the first line (you see the picture) And also ...
0
votes
1answer
18 views

How to make the chapter title always to the inner or outer side of the page when book is set to openany

I'm using book and have openany set. I'd like to get the chapter titles to by symmetrical--always to the inside or always to the outside of the page. I'm using titlesec. I've looked into an ifthen ...
2
votes
1answer
23 views

Hanging indentation of long section-level entries in the List of Appendices

\documentclass[a4paper,oneside,11pt]{book} \usepackage[left=4 cm,right=3cm,top=4cm,bottom=3cm]{geometry} \usepackage{amssymb} \usepackage{amsmath} \usepackage{lipsum} \usepackage{titlesec} \...
2
votes
2answers
52 views

How to set section number 1.1, 2.1, … 5.1 instead of 0.1 at the start of document

I am using report class. There is no chapter in the document. I am using a custom heading for the section. Since I am not using any chapter hence the section numbers are coming like 0.1 , 0.2. But I ...
0
votes
1answer
20 views

Spacing Issue Between Chapter Title and Chapter Title Body | Long Chapter Title

How do I remove the spacing between Chapter and its name? CHAPTER# CHAPTER NAME to CHAPTER# CHAPTER NAME I have tried using \titleformat{\chapter}[display]{\fontsize{20}{24}\selectfont\bfseries\...
2
votes
1answer
38 views

Format chapter title and use package `babel`

I want to make the chapter number and title to be in the same line as this question. However, when I want to apply the answer, it does not work with the package babel with the option 'magyar'. \...
0
votes
1answer
44 views

Customize \subsection title

I'm going crazy! I would like to customize the title of the \subsection. The numbering should be 1.1 ... 1.2 ... 1.3 ... etc. Also I would like to set the distance between the number and the ...
0
votes
2answers
23 views

How to define dot startpoint in TOC after renewcommand sections

As I am lazy and do not want to write the same stuff again and again while creating sections which have all the same prefix I tried the following: \documentclass[12pt,numbers=noendperiod,toc=...
2
votes
1answer
22 views

Removing a section's rule when it starts a page

I am currently using the titlesec package in order to personalise my chapter and section headings with these commands: \documentclass[a4paper, 12pt, twoside, openright, english]{book} \usepackage{...
0
votes
0answers
16 views

Troubles with formatting subsection

As I am new to LaTeX, I am a little struggling and ask for your help. While the output is correct, I get error messages in Overleave for my subsection commands. I checked the titlesec manual but could ...
1
vote
1answer
32 views

Undefined control sequence. \tableofcontents

I stitched several examples together and got a more or less working sample. My final problem is the message Undefined control sequence. \tableofcontents which appears when I try to compile the ...
0
votes
0answers
21 views

I can't format my chapter titles [duplicate]

I am trying to format the chaptertitles in my dissertation, but titlesec doesn't seem to work... \documentclass[12p]{report} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage[utf8]{...
0
votes
1answer
37 views

Formatting chapter header with titlesec

Im having troubles in formatting chapter headings. Im doing it with the package titlesec. My goal is to have the chapter number on the left, than a line with above the chapter name. I achieved this ...
2
votes
1answer
36 views

Adjust title spacing for long title

I want to adjust title margins for two lines length titles. For example, is like below. How can I adjust. Thank you for your understanding I don't know how can I explain my problem. \titleformat{\...
0
votes
1answer
52 views

Section Styles: Spacing, Font and Paragraph-Indentation

I am using sectsty to configure my section styles. I have read that perhaps titlesec is more powerful. A solution to my question below using titlesec is completely satisfactory. Currently I am setting ...
0
votes
2answers
34 views

Use \titleformat to format numbered chapters only

I used the below code to format chapter headings \usepackage{titlesec} \titleformat{\chapter}[display]% command + shape {% \normalfont \Large \filcenter \sffamily } % format {% \vspace*{\fill} \...
2
votes
2answers
40 views

How to hide sections titles while keeping chapter titles

\documentclass[a4paper,oneside]{report} \usepackage[a4paper, total={7in, 9in}]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{titlesec} \usepackage{...
0
votes
0answers
22 views

Adjust Summary and Bibliography

I ask you, dear colleagues, I'm having trouble with LaTeX, I have the following preamble: \documentclass[ % -- op\c{c}\~{o}es da classe memoir -- 12pt, % tamanho da fonte ...
0
votes
2answers
42 views

How to set equal space between number and title in table of contents?

I want to make a style with TOC, that has equal space between number and title. I tried to make it with titlesec, but something going wrong and a I have extra TOC entries with default style. \...
0
votes
0answers
28 views

How to create a custom bold font for chapter, section, subsection titles without resetting to defaults?

I am working with an existing template for my thesis and I need to make my chapter and section titles bold and a specific font size. I use the titlesec package. The code used to change the \...
0
votes
1answer
37 views

Titlesec's titleformat with ulem

I have a very large document that can be reduced to the below example to provide custom formatting for subsection headers. \documentclass[]{article} \usepackage{ulem} \usepackage[explicit]{titlesec} ...
0
votes
0answers
24 views

Left aligned titles by titlesec

I am trying to use package titlesec to left-align all my sections and subsections. I don't need to change anything else. I was trying two commands: \titleformat{<command>}[<shape>]{<...
1
vote
0answers
34 views

Sleek huge chapter header?

I have been trying to customise the titles of my chapter as being flushed to the right, with the chapter number in size 96pt, above the chapter name (huge), specifically like this TU Delft template my ...
1
vote
1answer
43 views

Part titles in smallcaps

I would like all parts, chapters, sections etc to have their titles in smallcaps. To do this, I tried: \usepackage[sc]{titlesec} and this worked for chapters, sections, etc, but not for parts. I see ...
0
votes
2answers
27 views

How to apply title line breaks on the title page, but not in the page headlines?

I would like to have a macro which pass the book title both to the title page and to the page headlines. Unfortunately if I pass the title containing new line command (to break line on title page) ...
1
vote
0answers
36 views

How do I separate chapters and insert a few empty lines between two chapters?

I know it has been asked before but I just can't seem to make it work not matter what I try. I am using the report class. Now I want only my chapters to start below the end of the preceeding chapter. ...
1
vote
0answers
46 views

Change the chapter and section style

I'm using titlesec package to have a good style of the chapters and sections title. But now, I would like to add a colored box around the chapter number and section number, I want to get the same ...
0
votes
1answer
31 views

Add bottom border only at chapter name, not in chapter number

I am trying to achieve something like the photo below using the titlesec package but I couldn't manage to add a border only at chapter name. Any ideas? : My code snippet \titleformat{\chapter}[block] ...
0
votes
0answers
37 views

Package titlesec Error: Entered in horizontal mode. …ysection[\glossarytoctitle]{\glossarytitle} in ClassicThesis

I'm writing my thesis with ClassicThesis. I want to add a glossary for acronyms so I added the following code to classicthesis template. I added \usepackage[acronym,style=long, nolist]{glossaries} \...
0
votes
1answer
20 views

Adding an argument to \part macro

I want to be able to call the part macro like this: \part{Introdução Geral}{(2015)} Having the year as a kind of subtitle. I can call: \part{Introdução Geral\\\\ \Large(2015)} But this applies the ...
0
votes
2answers
62 views

The vertical spacing between the first and the second line in the section formatted with \titleformat

Why is the vertical spacing between the first and the second line in the section greater than the vertical spacing between the rest of the section in this MWE? \documentclass[12pt]{article} \...
0
votes
0answers
47 views

Titles, headings, and spacing in tocloft with appendices

I am working on a template for my dissertation in order to comply with my school's format. I am having a few conflicts between the tocloft,titlesec, and appendix packages: I want the appendices in ...
0
votes
0answers
14 views

Chapter title outside text area

I am trying to reproduce trees, maps, and theorems with paracol. At the moment I am trying to figure out how to set the chapter title outside the text area like here. I don't think my MWE with a ...
0
votes
0answers
16 views

How to do section “continued” headings after pagebreaks for starred sections

There are good examples (links below) of how to create section "(continued)" headings after page breaks. I am using \Section* headings, and so the solution using titlesec is the only one I ...

1
2 3 4 5
25