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

learn more… | top users | synonyms

2
votes
2answers
17 views

Misalignment chapter titles with hang option of titlesec package and redefined \cleardoublepage

When I redefine the command \cleardoublepage to include the words "This page has been intentionally left blank", the titles of the chapters are misaligned. \documentclass{book} \usepackage[a4paper, ...
2
votes
1answer
21 views

Warning message “no argument after \section” in Texlipse

I have been trying to get a particular format for section headings in Texlipse using the following code. \usepackage{titlesec} \titleformat{\section}[block]{\bfseries\filcenter} ...
0
votes
0answers
10 views

getting titlesec package to respect title font, etc in style file

I am using a .sty file submitted by a journal which puts the section headers in capitals format. However, when i use the following \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{*1}{*1} ...
0
votes
1answer
33 views

Titlesec command blocked by frontmatter

\frontmatter blocks the propagation of the \titleformat from the preface to the first chapter. Is there a way to avoid that ? \documentclass[11pt,A4]{book} \usepackage{titlesec} ...
3
votes
1answer
53 views

Remove spacing after blank section with title formatted with leftmargin

I have some sections that have no direct text (other than subsections). For these blank sections, I am trying to make the subsection text (or heading) start at the same place as those sections that do ...
0
votes
1answer
23 views

Titlesec, paragraph title disappears using \titleformat

I am using th titlesec package to redefine paragraphs (as well as a few minor changes). Essentially, I just want to change the format from bold to italic font. Here's my code: ...
8
votes
1answer
188 views

How to make this chapter heading style?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? title ...
4
votes
2answers
43 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 ...
3
votes
1answer
32 views

Sectioning using \titleformat results in problems with \subsection*

I am trying to write a Preface with subsections, but without sectionnumbers (since the preface is technically not really part of the report). The sections and subsections are constructed using ...
6
votes
1answer
81 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
5
votes
1answer
56 views

Spacing problem with customized chapter style

I customized the chapter style like (book class): More space between the Chapter title (1 row) and the Lines Less space between the Chapter title (2 or more rows) and the Lines How to solve ...
5
votes
1answer
81 views

Width of \chapter section with titlesec

I use the titlesec package for styling the sectioning commands. But I have a problem with the chapter width or right margin: The width of the text should only reach to the blue line, "Organisation" ...
3
votes
1answer
40 views

How can I create a 'little subtitle' for a section? [duplicate]

Here's my code: \documentclass[]{article} \usepackage{titlesec} \begin{document} \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] \section*{29th March ...
7
votes
2answers
105 views

\newcommand for centered \section

I am trying to use the titlesec package to achieve this but I'm not certain as to what the syntax should be... \usepackage{titlesec} \newcommand{\centeredsection}{\titleformat{\section}{\centering}} ...
4
votes
1answer
44 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
26 views

How to change the appearance of subsections, subsubsections, etc. in an AMS Article?

Suppose I have the following document: \documentclass{amsart} \begin{document} \subsection{Subsection} Content. \end{document} How can I modify the code so that the subsection heading is italic ...
6
votes
1answer
51 views

Making section headers look like chapter headers

I would like to make my section headers look like this with the titlesec package. Is there a good way to do that? EDIT - I am using the scratcl document class.
2
votes
1answer
53 views

How to change the font for chapter title with titlesec and titling under XeTeX?

I'm using XeTeX to edit a document in which I am trying to use titlesec and titling to set a different font for some headings. I'm using the approach suggested as a reply to a similar question, but ...
5
votes
3answers
207 views

Titlesec & Titletoc: dangerous relationships

Please, consider the following code: \documentclass[a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{cfr-lm} \usepackage{titlesec} ...
3
votes
1answer
63 views

Change chapter title format in scrreprt without titlesec?

I'm working with scrreprt and I have loaded minitoc to have a short TOC after each chapter title. However when I give the \chapter command I get: 1 Chapter Title I'd like to have: Chapter 1 ...
3
votes
1answer
57 views

titlesec image after

Can someone explain to me why the second of these two doesn't work? The first produces an image before the section name, where the second produces an error claiming there is no \begin{document} ...
11
votes
2answers
318 views

How to achieve this chapter style without using the memoir class?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? Table ...
2
votes
2answers
68 views

Bold and italic subsection title with custom font size

I have defined fontsize, and even with your answered question help I solved the situation in this way: \usepackage{titlesec} \titleformat{\chapter} ...
3
votes
1answer
35 views

\chaptertitle from titleps ignored after redefinition of \chapter macro

The following MWE shows that, if the \chapter macro is redefined as in a previous question of mine: Prepend different stuffs to starred and unstarred \chapter commands, the \chaptertitle macro from ...
6
votes
1answer
96 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
3
votes
1answer
45 views

Pleaseinsertintopreamble in ToC and header

I wanted to style chapter headings, found out about titlesec and wrote the document like this: \documentclass[a4paper,12pt]{book} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} ...
9
votes
2answers
7k 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. ...
6
votes
2answers
2k views

Chapter titles using titlesec

I want my chapter titles to look like as asked in this post. I have followed the method suggested by "lockstep", that is, using package titlesec. It works perfectly fine but here is the question: I ...
3
votes
1answer
67 views

Customizing the style of the “Table of Contents” title

I used titlesec for customizing chapter titles. How can I put the Table of contents title above the horizontal line? (I am trying to customize the place of the title, not the title) Added figure is ...
9
votes
2answers
534 views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
2
votes
2answers
98 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
17
votes
3answers
29k 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 ...
10
votes
1answer
142 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
6
votes
1answer
111 views

Have the chapter title stick out of the type area

I'm trying to place my chapter titles to the edge of the page, with a colored background box surrounding them. The surrounding boxes would need to be set outside of the body of the document. So far I ...
4
votes
1answer
189 views

Formatting chapter headings using the titlesec package

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts. I'd like to change the chapter style. Instead of Chapter 1 Introduction I'd like to have C H A P T E R 1 ...
3
votes
1answer
75 views

How to have chapter heading style different in chapters with number and chapter without numbers?

I use the following code to change the chapter heading style \usepackage{titlesec} \definecolor{RoyalRed}{RGB}{157,16,45} \titleformat{\chapter}[display] {\centering\normalfont\bfseries\LARGE} ...
9
votes
4answers
246 views

Include multiple pdf pages on single sheet

I would like to include multiple pages from a pdf document on a single page im my document. \includepdf can do that using the 'nup' option. \documentclass{book} \usepackage{fancyhdr} ...
4
votes
2answers
110 views

Chapter title format back to default

I messed with various chapter title formats and now that I want to go back to default i.e Chapter 1 Title I only get 1.Title which misses "Chapter 1" appearing before the chapter title. I ...
4
votes
2answers
281 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
3
votes
2answers
103 views

Page styles with Koma instead of titlesec

I usually set up my page style titlesec along the lines of \documentclass{scrartcl} \usepackage[pagestyles]{titlesec} \newpagestyle{mypagestyle}{ \headrule \sethead{Document ...
19
votes
2answers
1k views

Incompatibilities between KOMA-Script and titlesec

This is a complementary question to About memoir and titlesec incompatibility. The titlesec manual states (p. 2) that the package [...] works with the standard classes and with many others, ...
5
votes
2answers
53 views

Modifiying just the <after-sep> in titlesec pacakge

Good day. I'd like to add some space after each section. I'm using article class and I've looked in the titlesec package to customize this parameter. I've studied couple of questions and mostly ...
2
votes
1answer
85 views

Why won't I see the table of contents?

I tried to write table of contents to my book but encountered a problem, as it prints "Sisältö" but there is no table of contents. What is the mistake I made? ...
2
votes
1answer
51 views

Properly render unnumbered sections

I have added an \ast before every numbered section by adding \titleformat{\section}{\Large\scshape\bf}{$\ast$}{.5em}{\thesection ~}. However, it produces improper rendering for unnumbered sections. ...
2
votes
1answer
58 views

Chapter Name not appearing

I wanted to style the chapter name. I referred the following link : how-to-create-specific-chapter-style-in-book-documentclass Here is my code: %Template for Technical Document \documentclass{book} ...
4
votes
1answer
64 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 ...
5
votes
2answers
72 views

How can I align my title to be flush with margin and format contents?

I've had to alter my contents page to fit in with requirements for my thesis. I need my chapter headings to read X.0 "chapter name". e.g. 1.0 Introduction I've managed to do this using the title sec ...
4
votes
2answers
94 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} ...
1
vote
1answer
55 views

Indent entire section using only preamble

I heavily use org-mode in Emacs to create TODO lists with timekeeping, which has a handy export to LaTeX feature. The problem is that in order to get my exported LaTeX document to look right, I want ...
3
votes
1answer
69 views

Spacing after section title with res.cls

It is possible to change spacing after a section title with following \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{1em}{2em} However, when I am using res.cls by \documentclass{res} ...