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

learn more… | top users | synonyms

6
votes
2answers
666 views

titlesec: \sectionmark breaking \ifthesection?

In the titlesec package, one may use the \ifthesection (or \ifthechapter,...) command to apply some customization commands only when a \section has been defined. However, it seems that using ...
3
votes
1answer
345 views

Titlesec and ACM conference format: How to get proper capitalization of sections

The ACM conference format requires that the first three sections "Catagories and Subject Descriptors", "General Terms" and "Keywords" be special sections with lowercase titles. All other sections ...
4
votes
2answers
1k views

Problems with titlesec, hyperref, biblatex and tocbibind

I am using the titlesec package to change the section font to sans-serif. Unfortunately, this breaks the links to "unnumbered" sections both in the TOC and in the bookmarks sidebar of PDF readers. I ...
1
vote
1answer
278 views

How to change the formatting of chapter titles in the endnotes

I'm using pagenotes in the memoir class for a book. This is all the code I'm using that I think is relevant: \let\pagenote=\endnote \makeatletter \renewcommand*\prenotetext{% \list{}{% ...
0
votes
1answer
238 views

Chapter titles distance

I am using the titlesec package to adjust the chapter titles/headings of my text. Yet, I have trouble with the resulting distance between these new titles and the body of the text. Namely, the ...
5
votes
1answer
662 views

My titleclass breaks subsubsection headings

I am using the titlesec package in conjunction with the ACM SIG Alternate document class to create a special kind of subsubsection as follows: \documentclass{sig-alt-full} % +++++ Begin Experiment ...
1
vote
1answer
644 views

Titlesec ruins Table of Contents formatting

I'm trying to use the titlesec package, but somehow section names in the \tableofcontents become overlapped with the TOC numbers and subsection names become improperly indented. Here's an example, ...
3
votes
1answer
424 views

Distance between chapter title and the baseline of the following text

Consider the code below. The distance between the chapter title and the baseline of the following text is font dependent. I assume that there is a glue between the chapter title and the top of the ...
8
votes
1answer
1k views

Space above chapter with titlesec

The following code gives me some space above the chapter title, that I'd like to avoid: \documentclass{book} \usepackage[showframe]{geometry} \usepackage{titlesec} \titleformat{\chapter}[frame] {} ...
2
votes
1answer
1k views

titlesec and bibliography

I use titlesec to capitalize and display the chapter title at the center. Everything is fine until I get to the bibliography, the word 'bibliography' is not capitalized. Here is an example ...
2
votes
1answer
269 views

Titlesec and xcolor not playing nicely?

I am trying to use the titlesec and xcolor packages together (well, actually, the tufte-book class is, but that's another story.) Here is a minimal LaTeX file that illustrates my problem: ...
5
votes
1answer
506 views

biblatex per-chapter bibliography and titlesec

This is a follow-up to my previous question Proper way to include unnumbered chapters in a per chapter bibliography using biblatex. The solution proposed by Audrey breaks when I use the titlesec ...
5
votes
1answer
2k views

Add a rule after chapter title using titlesec

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline ...
8
votes
1answer
820 views

Changing size of footnote symbols in titlesec-formatted chapter titles

I am using titlesec to define the formatting of Chapter titles. At present, footnote symbols within these titles appear in the same format, but my author would like them to be somewhat smaller. The ...
4
votes
1answer
210 views

Problems with paragraphs in margins

I am writing some papers for my class, and want to number the tasks with two or three levels. The first level should be a simple number like 1), while the next level should be labeled by numbers. ...
6
votes
1answer
824 views

Remove part page

In my thesis all my chapters are grouped as a part (titled CHAPTERS). I want the part to appear in the TOC, but do not want a part page. The part is showing up fine in the toc, but the part page shows ...
4
votes
1answer
411 views

Offset color block behind section titles

Joseph Wright's CV source contains a snippet of code that produces an offset color block behind section titles using the titlesec package, like so: \documentclass[11pt]{article} ...
3
votes
1answer
354 views

Roman numerals appear in toc but not in document

I'm writing a thesis and sections are required to have roman numerals in both the toc and the document itself. The pertinent document code looks like this: \documentclass[twoside,12pt]{report} ...
3
votes
1answer
1k views

titlesec section font size incorrect

My dissertation requires the section title to be of the same font size as the text. I am using the titlesec package and I have provided these options: \usepackage[rm,tiny,center,compact]{titlesec} ...
2
votes
1answer
659 views

Customizing \chapter command

Here is the picture: The code is from this post. \documentclass[a4paper,12pt]{book} \usepackage{graphicx} \usepackage{lipsum} \usepackage{fontspec} \usepackage{titlesec} \setmainfont{EB Garamond ...
14
votes
1answer
11k views

How to decrease spacing before chapter title?

I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two ...
4
votes
1answer
2k views

Automatically adding \noindent after \section{*}

I'm using titlesec package and a document class ABNT Class which follows a Brazilian standard for document development. So far I've managed to follow the Brazilian Computer Association guidelines for ...
6
votes
2answers
1k views

Hide \thechapter for unnumbered Chapters

I want to display my Chapter-Numbers on the right below the Title. I came to the following minimal working example: \documentclass{article} \usepackage{titlesec} \usepackage{marginnote} ...
6
votes
2answers
1k views

Error while trying to start chapters on the same page

This is my first post here. I have tried the solution proposed in this site to start chapters in the same page as the previous one ended but I always get an error. I am a TeX newbie and I feel that ...
10
votes
1answer
710 views

Chapter heading

I was trying to personalize the chapter and section headings using titlesec for my master thesis using the following code \documentclass{book} \usepackage{tikz} \usepackage{titlesec} ...
9
votes
2answers
9k views

Format ToC for thesis

I apologize for the unspecified and broad question but I have no way to be specific. I'm looking to generate the TOC and List of Figure, List of Table according to the format required by my school. ...
4
votes
1answer
9k views

“Missing \endcsname inserted” and other errors when trying to align title section

I want to somehow align section headings: unnumbered should be centerized; numbered should be aligned left and indented. I'm just trying to compile an example ...
36
votes
4answers
63k views

Change size of section, subsection, subsubsection, paragraph and subparagraph title

I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text. I read about the titlesec package, but can't seem to find good example how to use ...
5
votes
1answer
929 views

Package titlesec adds extra space on top of \chapter, despite commands to the contrary

My university's Ph.D. thesis guidelines specify an exact top-margin on the first pages of chapters. I am trying to use titlesec to set this margin, but it seems to always set it to be more than it ...
5
votes
1answer
459 views

How do you make a customization on the chapter page

I can't figure out how to modify it so that it looks like the image below. \documentclass{book} \usepackage{titlesec} \titleformat{\chapter} ...
5
votes
1answer
600 views

chapter headings vertically centered but not table of contents

My university requires the chapter headings to be on a separate page and vertically and horizontally cantered. Based on some of the answers on this forum i used the following code to achieve it. ...
4
votes
1answer
2k views

Section indent or leftmargin

I use the titlesec package for decoration sections and subsections. But i do not know how to change leftmargin or indent for this. Look at the picture, the green line is where i want to move the ...
5
votes
1answer
799 views

titleformat not being applied to bibliography

Here is a MWE of the code I am using for applying a titleformat to my chapters. But it does not get applied to my bibliography chapter. Any ideas why? \documentclass[a4paper,11pt]{report} ...
10
votes
1answer
451 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
10
votes
1answer
1k views

Shaded box around multiline section heading?

I'm using LaTeX to write up an assignment which comprises a number of questions. I'd like to break up the questions from my answers by placing the section headings inside a shaded box. I'm relatively ...
5
votes
1answer
1k views

Setting the upper margin of chapter titles in scrbook

In a scrbook document I need to set the chapter titles close to the upper page margin, without leading number and with a \hrule afterwards. Redefining \chapterheadstartvskip does the trick with the ...
3
votes
1answer
2k views

How can I set a color for the title rule?

I'm writing a document which uses titlesec, and I'd like to set the title rule to a different color. How can I do that? This is what I currently have, which produces section titles with black ...
1
vote
3answers
1k views

titlesec messin' up my hyperref'd table of contents

Please consider the following multipage MWE, which contains page number restarting; made to compile with pdflatex test.tex: \documentclass[12pt]{article} \usepackage{geometry} ...
6
votes
1answer
141 views

Centring a heading, including the numbering

I've got a problem that should be simple to fix. I'm using the fontspec to layout my chapter headings like so %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode ...
3
votes
2answers
755 views

How to have an amsart-like subsection style

If you use the amsart class, then it puts a period after the subsection title, but not if there is no title. For example, if I write \subsection{Title} Blah1 \subsection{} Blah2 Then amsart ...
8
votes
2answers
2k views

How to make horizontal lines thicker?

I am customizing the section module following the tutorial here http://blog.scribtex.com/how-to-write-a-latex-class-file-and-design-yo How do I make the [\titlerule] % Inserts a ...
3
votes
0answers
926 views

Explanation of code using \titleformat [closed]

I am writing a project in latex and to make my output pdf look more fancy i am using a "Fancy chapter headings with TikZ" code found here http://texblog.net/latex-archive/layout/fancy-chapter-tikz/ ...
6
votes
2answers
435 views

Suppress headers when page contains a section title using titlesec

I'm writing a book with titlesec and try to suppress headers containing the section name, when the section starts at the top of the respective page. Given that all my sections start on a new page I ...
5
votes
1answer
853 views

Positioning the beginning of table of content (toc) to the top of the page

I managed with great help from here to shift the beginning of the chapter titles to the top of the page, but it doesn't affect the table of content. Why is that? And how could I do that? I don't ...
2
votes
2answers
1k views

Can't shift/position \chapter with titlesec?

Somehow I my attempt to change the placement of \chapter seems not to work. I would like to that my chaptertitle begins right at the top of the page. Do I need to change the plain pagestyle? ...
6
votes
2answers
540 views

Impossible to have a Tikz fading in a titlesec header?

I want to put a TikZ figure with a fading effect (which I reproduced in the body of the document as illustration) in the page header, which I set with the package titlesec. The following MWE seems to ...
2
votes
1answer
1k views

amsart and titlesec - title font won't change

Ok, I am very new to LaTeX. I am using a default template. I have been trying to figure out how to change the font sizes and other formatting. Reading forums convinced me to try titlesec. All titlesec ...
9
votes
2answers
843 views

Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
6
votes
1answer
164 views

Setting vertical spacing between different document elements at the same time

I have the following problem. Let's define three types of document elements: Titles, Paragraphs and Longtables. The problem is to setup vertical spaces between them independently. For example, let's ...
2
votes
1answer
573 views

Modifying toc & bib titles

I would like to \flushright the toc's and bibliography's title, but the font size and spaces above and below should be the same as for regular chapters. Here is what I did: \documentclass{report} ...