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

learn more… | top users | synonyms

4
votes
2answers
751 views

Memoir class — Displayed heading for subsubsection

I am trying to make a subsection heading with the memoir class. The problem is the following: I want to have a displayed heading for my subsubsection. The text should begin right after the subsubsec ...
4
votes
1answer
70 views

How to underline a section's title without using the sectsty package (memoir class)?

Can anyone tell me how to underline a section's title without using the sectsty package please? Indeed I am using the memoir class which prohibits this package. Thank You.
4
votes
2answers
83 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
4
votes
2answers
122 views

Numbering the table of contents

I'm new to latex. I have successfully formatted the chapter heading, section heading and subsection heading with titlesec package: \usepackage{titlesec} \titleformat {\chapter} ...
4
votes
1answer
314 views

How to align the chapter number to the right?

Is there any way to align the chapter number to the right (without the CHAPTER word!) and the chapter title itself to the left? The chapter title must be on the line below the chapter number Here is ...
4
votes
1answer
228 views

how to add number to the title of sections and subsection using the titlesec package

I am using the titlesec package but the numbering of section and subsections disappeared. I need to retrieve it. my code is ...
4
votes
1answer
2k views

Creating a bold and indented title.

Im working with an existing template and I need to make my sections bold and my subsections indented. I use the titlesec package. My Section style is this ...
4
votes
2answers
1k views

Vertical space after title of unnumbered chapters (bibliography/ToC)

The title pretty much says it all: It is possible to add arbitrary vertical space after the title of the ToC or bibliography page within the report document class?
4
votes
2answers
79 views

Different numbering format between toc and body

To complete my memory, I would like to display different numbering format beetween my section in the body of my document and the one in the toc You will find just below my MWE : \documentclass{book} ...
4
votes
1answer
124 views

another specific section format

Is there a way to implement the following style in LaTeX? "Sections should be numbered using upper-case roman numerals (I, II, III, etc.). Section titles should appear on the first line of text, ...
4
votes
1answer
434 views

\normalsize for \section, \subsection and \subsubsection

I tried to change the font size of titles using titlesec, I want all my document in normalsize, and I have an error. Please help me. The error description is: Runaway argument? ./Thesis.tex:13: ...
4
votes
1answer
193 views

Same vertical spacing for chapter and chapter*

I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter. I use titlesec and the styling of the chapter headings is this: \documentclass[10pt,a4paper,openany,oneside]{book} ... ...
4
votes
1answer
2k views

Chapter title alignment with titleformat

I am trying to typeset a title with titleformat as in the following example: I like the overall result, but when the title wraps around it is not left-aligned. Is there any way to indent the second ...
4
votes
1answer
189 views

Customize the section title with Latin Modern

I have created a thesis using mathptmx font. Now I would like to customize only the section title using Latin Modern Sans Bold. I used titlesec with \usepackage{titlesec} \titleformat{\section} ...
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 ...
4
votes
1answer
862 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 ...
4
votes
1answer
145 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 ...
4
votes
1answer
82 views

Problem with titlesec and appendix

I am using the titlesec package and the code under the usepackage to make parts appear on the same page as chapters, not on an individual page. Sorry I don't remember where I got the code from, but it ...
4
votes
1answer
138 views

Adjusting spacing before and after subparagraph with sectsty

I am helping a friend that is using sectsty to format the titles in his document. How can I adjust the spacing before and after the titles, in particular the subparagraph one? (I know that titlesec ...
4
votes
1answer
63 views

Is there any way to put the section numbers after titles like “axiom”, “theorem”, etc?

The normal LaTeX input and output would be something like \subsection{Theorem (Fundamental Theorem of Calculus)} 1.1 Theorem (Fundamental Theorem of Calculus) Is there any way to use a ...
4
votes
1answer
74 views

Using \toptitlemarks and \bottitlemarks with any counters

\toptitlemarks and \bottitlemarks don't seem to work with random counters: \documentclass[paper=a4,pagesize=pdftex]{scrbook} \usepackage[pagestyles]{titlesec} \usepackage{lipsum} ...
4
votes
1answer
259 views

New titleclass not counted in the table of contents

The following defines a new titleclass which I would prefer not counted in the table of contents defined. How can this be achieved? \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} ...
4
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 ...
4
votes
1answer
347 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} ...
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 ...
4
votes
1answer
3k views

\titleformat{name=\section} in documentclass

I defined a documentclass in which I redefine a heading format with (using the package titlesec): \titleformat{name=\section} This works. But if I move this \titleformat{name=\section} to a ...
4
votes
1answer
477 views

\addvspace after a titlesec heading

So, I'm trying to make an environment that is always padded above and below by a certain vertical space, no more and no less (unless the previous or following elements require even more space). My ...
4
votes
1answer
39 views

Don't separate section heading from its line

I have my sections format defined with titlesec like this: \documentclass{report} \usepackage{xcolor} \usepackage{titlesec} \definecolor{shadecolor}{HTML}{A3B9FF} ...
4
votes
1answer
120 views

How to get sentence case in section titles without biblatex

I would like to change my section titles into sentence case just like the solution here: How to make sections into sentence case The titlesec package is already included in my document to modify ...
4
votes
1answer
244 views

Using the titlesec package with the res document class

I am trying to redefine the formatting of the my sections using the titlesec package within a res document. However, I am getting the following error message which only occurs if I try to run the ...
4
votes
1answer
332 views

Multiline title vertical alignment using classicthesis and arsclassica

I would like to align the 2nd line of my title to have the same baseline with the chapter number. What I have now is , but I would like to have instead. I found that the tweak in How to get ...
4
votes
1answer
311 views

Two-line spanning number in chapter title

I try to have the chapter's number in my document twice as big as the title on the left and the two-line chapter title on the right. The number should span two lines, so the two lines of the title are ...
4
votes
1answer
541 views

Current section title macro using titlesec

I have a macro that contains the title for the current section, however when using the titlesec package, it no longer works for \section and \subsection. I know titlesec redefines the functions I'm ...
4
votes
1answer
123 views

Bad cross-reference using titlesec

When I define two new level using titlesec, the reference doesn't work correctly. This is an example: \documentclass{article} \usepackage{titlesec} % First level ...
4
votes
0answers
426 views

Trouble with titlesec

I've been using titlesec for quite some time now and want to "pimp up my style" ;) I've read How to change header to list first section on page and not last section and tried to adapt the code for ...
4
votes
2answers
233 views

Custom titlemarks

My title marks are not working as I want them to. I had to move away from using the native section and subsectionand therefore my title marks does not work. I had a look at the extramarks feature of ...
3
votes
1answer
3k views

Usage of titlesec package when numbering sections

This question evolved from my earlier question posted here. It turnt out that what I gave as the MWE actually worked, so I investigated a bit and found the real problem. I have a document in which I ...
3
votes
2answers
355 views

\clearpage after every subsubsection

I'd like to clear the page at the end of every \subsubsection. I tried \usepackage{titlesec} \newcommand{\subsubsectionbreak}{\clearpage} But this appears to force a \clearpage at the start of ...
3
votes
2answers
592 views

Section title with subtitle

I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
3
votes
2answers
58 views

How to manage chapter title position with a background picture?

I wrote the following code in order to design a chapter title but there is two things I did not succeed to do. \documentclass{book} \title{Titre de la thèse} \author{moi} \date{\today} ...
3
votes
2answers
232 views

titlesec troubles

I am working on a document that will consist of many sections and subsections. I want to have a table of contents per section. I am using titlesec, titletoc and titleps. I have the following MWE: ...
3
votes
2answers
667 views

How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error ! Package ...
3
votes
2answers
953 views

The problem with the command: titleformat it is important

This is my first post here. I am using a few commands and packages to make the titles behave according to my thesis specifications but when I used the \titleformat I get an error: ! Package ...
3
votes
2answers
931 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 ...
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 ...
3
votes
2answers
582 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 ...
3
votes
1answer
296 views

Strange interaction between natbib and algorithm2e

Here's a minimal example. \documentclass{article} \usepackage{titlesec} \usepackage{algorithm2e} \usepackage{natbib} \begin{document} \bibliographystyle{plainnat} \begin{thebibliography}{1} ...
3
votes
2answers
5k views

Problems with fontspec and titlesec packages

I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used \documentclass[a4paper,10pt]{article} %A Few Useful Packages \usepackage{marvosym} ...
3
votes
1answer
45 views

How to get the chapter title in a single page - titlesec

Because of my thesis report style, I want to have the chapter title in a single page. I'm working with titlesec package. I used \clearpage and \newpage to solve this, but doesn't work. I also used ...
3
votes
2answers
304 views

titlesec \clearpage before a part

I'm using the titlesec package for my sectioning. I want to have a \clearpage before every \part however when I put it into the format field of ...