Questions tagged [titlesec]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
22 views

Increase margin in section titles with titlesec

I use the titlesec package to define section titles and use the format \titleformat{\section}[display] {\raggedright\LARGE}{\thesection}{1ex}{} The font is quite large, so I would prefer to have a ...
1
vote
1answer
18 views

Different numbering for toc and chapter titles using titlesec package

I want the chapter titles in the ToC to be listed using arabic numbers, but want no numbering in the chapter title pages. Like here: and in the title page, it should be like: but without the number. ...
0
votes
0answers
16 views

How to apply pagestyle{empty} if section start on top of page

How can I apply another pagestyle, if on top start new section \section and contain no text before. Example Before start section on page are contained text. NOT change pagestyle [ Section start on ...
1
vote
1answer
26 views

Xelatex: Section fontsize

\documentclass[12pt]{book} \usepackage{titlesec} \titleformat{\chapter}{\centering\bfseries\fontsize{20pt}{0}\selectfont}{Chapter \thechapter.}{10pt}{} I can modify the Chapter normally. However, it ...
2
votes
1answer
28 views

Horizontal Spacing in \titlespacing

I am using the titlesec package to adjust the spacing between paragraph-s. My command overwrites the whitespace in the runin part, however, and I don't know how to retrieve it. Compare the two parts ...
0
votes
0answers
15 views

Combine the no page number command with titleformat

My docment class is book . I wanted to remove the page number and I was successfull using this command: \documentclass[11pt]{book} \usepackage[T1]{fontenc} \makeatletter \renewcommand\part{% \if@...
1
vote
2answers
47 views

Can I add a custom subtitle to subsection?

I am using titlesec to create custom subsections. I have my declaration: \titleformat{\subsection}[hang] {\large\bfseries} {$\square$\medspace}{0mm}{} However I frequently want to add a subtitle ...
0
votes
0answers
18 views

How to change the index title location, without changing other chapter title locations?

I've changed my chapter title locations using titlesec . However, the index title changes too. How am I able to use titlesec without changing the index location? I am currently using the following ...
0
votes
2answers
29 views

index jumps to the top of the page

My index jumps to the top of the page. I am currently using the following code. \documentclass[a4paper,11.5pt,twoside, openleft]{book} \usepackage{titlesec} \usepackage{imakeidx} \usepackage{xcolor} \...
1
vote
1answer
34 views

nameref is not working for unnumbered sections due to titilesec and latexbangla

I am trying to cross-reference the unnumbered chapters and sections in a book. But I found out \nameref is not working for unnumbered sections due to the packages latexbangla and \titlesec. Here is ...
0
votes
1answer
29 views

How can I have no indent on \chapter*?

For some reason, when I use \chapter* to have an unnumbered chapter, the chapter title is centered instead of having no indent like the normal \chapter... I tried using the package titlesec and its ...
0
votes
2answers
72 views

How to center chapter title in a specific area?

I have this gorgeous custom made photo header which is perfect, however I want to center every chapter title in this sky blue area. I am currently using the following code: \documentclass[a4paper,11....
0
votes
0answers
37 views

Missing number, treated as zero on section using package titlesec

When using the titlesec package to modify the layout of the chapter title, I get the error: Missing number, treated as zero., in the section title. I use the following code to perform this action: \...
0
votes
1answer
29 views

titlesec package not suppressing chapter number from section in XeLaTex

Am using the Overleaf online editor, and in order to use the polyglossia for Arabic fonts support package, I changed the compiler to XeLaTex. everything worked as expected, except for the titlesec ...
2
votes
1answer
42 views

Easy fix for Biblatex, Titlesec, and citereset?

I have read through this question, this other question, and a handful of others (as well as section 1.5.5 in the biblatex manual). I know that titlesec redefines things that biblatex uses for the ...
0
votes
1answer
58 views

Unable to alter {tocdepth} and {secnumdepth} for scrreprt class

Currently writing my thesis and would really appreciate any help with this. For some reason I am unable to bring about any change to my TOC with the scrreprt class even after using \setcounter to ...
0
votes
1answer
33 views

Adjust the spacing between chapter & section or section & subsections or subsections and subsubsections with no prose between the header

I am trying to adjust the spacing between \chapter & \section, \section & \subsection, and \subsection & \subsubsection that have no prose between the headers to get the same spacing ...
1
vote
2answers
72 views

The titlesec package with explicit option meet error when \section contains a command

I use the titlesec with explicit option to modify the section's format. The code compiles perfectly with texts. However, when I put a command in the section. LaTeX meets error "TeX capacity ...
1
vote
1answer
33 views

Align section title and subtitle to outside border on twoside template

I have a problem aligning the section-title to the outside on a twoside template. As seen in the screenshot below, my section title contains not only the title (which appears in the toc) but also a ...
2
votes
1answer
21 views

'runin' shaped section title prints on same line as table of contents title

I am using titleformat from the titlesec package to format section titles such that they don't cause new lines. However, when the table of contents is built, the first section appears on the same line ...
0
votes
1answer
27 views

How to fix appendix section headings while using titlesec package?

I am writing a paper using article class. I use the titlesec package with [sc] option, e.g. \usepackage[sc]{titlesec} to write the document headings in small caps. When I use this package, it wrecks ...
0
votes
1answer
42 views

Is there a way to fix the space using titlesec?

Using book.cls, the section and subsection spaces are working perfectly. When I modified the section title using titlesec, unwanted spaces are added between sections. I modified the indent and before ...
1
vote
1answer
21 views

How do I get a shorter title rule using titlesec?

I am using the titlesec package to format my chapters. I want them to look like this: Currently, I use the code underneath. However, my titlerule is now textwidth. \documentclass{report} \usepackage{...
2
votes
1answer
39 views

Change Bibliography heading fontsize with elsarticle-num

I have selected the bibliography style elsarticle-num for my thesis, which employs the report document class and a main document font size of 11pt. But one of the requirements is that the font size of ...
0
votes
1answer
27 views

Underhanging section headings and continuous indentation of text following section heading

I'm looking to replicate a style of indentation found in the MtG Comprehensive rules as shown below. Specifically the underhanging of section headings where the numbering sticks out a little but the ...
0
votes
1answer
29 views

Set tocdepth for local table of contents for part heading page

I am using a part of the MWE from How to use the package etoc to create local toc's? I would like to know how to set the tocdepth. \documentclass{report} \usepackage{lipsum} \usepackage{titlesec} \...
1
vote
1answer
47 views

Using titlesec how can I prevent space from showing up between chapters and sections if I do not have text between them?

I am stuck with a very strict requirement to keep the space between chapter/sections/subsections/paragraph headers the same. After a chapter header, I need to have a triple space. After section ...
0
votes
1answer
46 views

How to stop text from stretching between two rules in \titleformat{\chapter}

I have a specific way of displaying Chapter title headings, by placing the chapter title in between two rules. I use titlesec to achieve this. The issue is, the stretch that LaTeX does over each ...
0
votes
2answers
62 views

\tableofcontents doesn't display after using titlesec

I am fairly new to LaTeX so sorry it's a weird question. Also, English is not my native language so I apologize in advance for any grammar mistakes I make. I am writing a LaTeX document in Hebrew ...
1
vote
2answers
60 views

Fixed indent for paragraph from left margin regardless of counter's width (Part II)

Last month I asked this question and I got a response that mostly solved the problems I had, however I noticed that the answer has a small problem (a tiny amount of misalignment), here is my MWE: \...
0
votes
1answer
43 views

Having trouble customizing the paragraph using titlesec in Overleaf (LaTex)

I am working on customizing sections, subsections, and paragraphs for my report. I almost have the functionality that I want, but I am missing a small part. Current Situation: \titleformat{\paragraph} ...
0
votes
0answers
18 views

Cross referencing sections one number off

I'm having trouble with cross referencing to (sub)sections. Each time I refer to a certain subsection in my text (e.g. Article 2. Second title), the compiled pdf doesn't refer to '2' but to '1'. In ...
1
vote
1answer
34 views

Remove white spacing before chapter styles modified with tcolorbox? (tufte-book)

In tufte-book, I have defined two chapter styles, one without numbering (used in front matter) and one with (used in main matter). Now, there is unwanted white spacing before each style, as shown in ...
1
vote
1answer
41 views

How to break lines automatically in my framed section headings?

With the following code, I get this output: \documentclass{book} \usepackage{tikz} \usepackage{lipsum} \usepackage[explicit]{titlesec} \titleformat{\section}[hang] {\normalfont\Large\bfseries} {% \...
0
votes
3answers
87 views

Fancyhdr's extra dot in header for section title: How to remove?

I like to use Arabic numbers with a dot in front of section titles. So, for example 1. My section title instead of 1 My section title or something else. To achieve this, the syntactically simple ...
0
votes
1answer
124 views

Spacing issue between section/subsection/paragraph etc

**Update This might be a repetitive question, but I do not know to prevent this additional white space from showing up. Attached is my MWE to show additional white space that I have been unable to get ...
0
votes
2answers
39 views

Vertical spacing before title within minipages with titlesec

I'm using the titlesec package to style my section titles, including centring and colouring them. Sometimes my sections appear in a minipage because I often have long narrow diagrams that run the ...
1
vote
2answers
44 views

How to align the whole text with its respective heading title (\chapter, \section, subsection)

I am working with Overleaf. Currently, I have this: \documentclass[12pt,a4paper,openany]{extreport} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{lipsum} \usepackage[...
1
vote
1answer
54 views

Fixed indent for paragraph from left margin regardless of counter's width

So what I would like to do is to have a fixed amount between the left margin and where the text starts. I have been able to achieve this for section and subsetion using the following code: \usepackage{...
1
vote
0answers
35 views

Make Section, Subsection, and Subsubsection Titles Flush with Top Margin with Double Space

I am trying to get the subsection title flush with the top margin when it appears on a new page. I was able to get all the section headings flush with the top margin by using the the \setstretch{1} ...
1
vote
1answer
54 views

Confusion in line spacing, \linespread, pt, and \titlespacing

My university requires double spacing within paragraphs and triple spacing between paragraphs. It also requires triple spacing before each section heading and after the chapter title. I used: \...
1
vote
1answer
43 views

Fancy Chapter Alignment

I'm dealing with some code lines to get a fancy style regarding Chapter titles. I'm using the following code: \documentclass[11pt]{report} \usepackage[T1]{fontenc} \usepackage{titlesec} \usepackage{...
2
votes
1answer
68 views

The heading of the table of contents has “0” is front and I cannot find a way to remove it

I must use a certain formatting mimicking a Microsoft Word Template. I created a Latex document for this purpose, and everything works fine, but for some mysterious reason, the standard command \...
2
votes
1answer
30 views

Make appendix chapter title simple

I am using a fancy chapter title for normal chapters, but i want chapters in appendix to look different \documentclass{report} \usepackage{titletoc} \usepackage{tocloft} \usepackage[pagestyles, ...
4
votes
1answer
61 views

titlesec - runin title with default dot spacing

I'm trying to add a dot at the end of the default \paragraph, but want its spacing to be consistent with the usual "post-dot spacing" (and don't want to just use \frenchspacing). The \...
3
votes
1answer
100 views

Chapter name with a bar separation

How can I show my chapter's titles, using book class, to be like this: I've been using titlesec and anyfontsize package for its spacing and sizing with the following code: \titleformat{\chapter}[...
1
vote
0answers
29 views

Getting cfr-lm and titlesec to work together

In my minimal example below, I would like to use the cfr-lm package to make all numbers oldstylenums, but use bold with small caps in the titles. I use pdflatex with TexMaker as my frontend. \...
0
votes
0answers
23 views

how to customize my headers in lyx?

I want my part/section title to have underlined and be bold and increase its size. I can't find how to make the wanted setting stay as my default. How can I do this? I'm a complete beginner so if you ...
2
votes
1answer
122 views

Titlesec : Missing number, treated as zero AND Illegal unit of measure

I'm new here and almost newbie to latex. Sorry for my English. Environment: Miktex 4.1, TexnicCenter 2.02(64bit), mode: LaTeX=>PDF I searched a lot. At first I searched for method to put chapters ...
5
votes
2answers
93 views

Unexpected interaction of titletoc and appendix?

I have a thesis (book-class document) with several chapters and appendices. I am using titletoc and titlesec to format the chapter headings and table of contents. When I create an appendix the title ...

1
2 3 4 5
26