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

learn more… | top users | synonyms

0
votes
0answers
6 views

New class prevent XeLaTeX to compile the section title

I created a new class, called capitulo to prevent a page break with every chapter. But when I activate those code lines, the section number won't print. Here's a MWE: ...
1
vote
1answer
34 views

Too much vertical space after long section title using titlesec

I'm using titlesec to change the style of my section titles. Sometimes, when the title is long, but just short enough to fit on one line, some extra vertical spaces is add. The following MWE ...
5
votes
1answer
17 views

Spacing after first line with titlesec using runin option in titleformat

I'm using the titlesec package to format my (sub)section titles. I'd like to use the runin option in \titleformat to place my subsections titles within the first paragraph of each subsection. However, ...
0
votes
1answer
16 views

How to adapt Contents header to match other chapter headers

I am using \documentclass[a4paper,11pt,twoside,openright]{book} and customized my headers using \usepackage{titlesec, blindtext, color} \definecolor{gray75}{gray}{0.75} ...
3
votes
1answer
38 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 ...
5
votes
1answer
61 views

How to generate a “<section>-continued” heading after page-break which works with longtable?

I have read the question and answers about the "-continued" heading. The code given in the answers doesn't help me. Thats why I am posting a follow-up-question here. I want to re-display the ...
2
votes
1answer
17 views

Modifying Section Style modifies the style of Contents in ToC

In the article class, if the style of the section heading is changed, the style of the contents heading in the Table of Contents is also changed. How to prevent this? ...
2
votes
2answers
86 views

redefine starred command \section*

with \usepackage[explicit]{titlesec} I have defined \section like \titleformat{\section} {\ttfamily\Large\bfseries\color{red}} {\thesection} {1em} {#1} i want to redefine the starred ...
2
votes
2answers
48 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} ...
1
vote
0answers
74 views

How to get just ONE space between the number of a section's title and its title in the TOC (memoir class)?

In my Toc Iam trying to get just one space from the escape key between the number of the section and its title. Example (TOC): 1. My section For the moment, I am using this many time: ...
2
votes
2answers
47 views

How to create a subsubparagraph appearing in the TOC ? (memoir class)

I'am trying to create a subsubparagraph counter. \titleclass{\subsubparagraph}{straight}[\subparagraph] \newcounter{subsubparagraph} ...
4
votes
1answer
62 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.
1
vote
1answer
48 views

\titleformat (titlesec) overfull vbox page break issue

I am currently writing a rule book using sections/subsections/subsubsection/paragraphs to break the rules down into parts. I am using the titlesec package to format the sections; however, the problem ...
3
votes
1answer
39 views

why package titlesec causes tex4ht to give error when using $[]$ in section title?

texlive 2014, Linux This MWE fails when using $[B]$ in section title when the package titlesec is loaded \documentclass[]{article}% \usepackage{titlesec} \begin{document} \section{this is my $[B]$ ...
1
vote
1answer
34 views

Using titlesec to have \chaptertitle and \sectiontitle in twosided report

I would like to customize the headers of my report. These should contain chaptertitle and sectiontitle. From here: Header not displaying correctly on chapter page due to subsection I have made an ...
0
votes
0answers
27 views

Spacing between sections using titlesec

In my LyX preamble (though, I don't think that this is related to LyX) I have this: \titleformat{\paragraph}[runin] {\normalfont\bfseries\scshape} {\theparagraph}{1em}{}[. \ ] ...
3
votes
1answer
35 views

Equivalent of titlesec with sectsty

I am using \usepackage{titlesec} \usepackage{tipa} \titleformat{\section} {\normalfont\huge\bfseries} {\thesection\hskip 10pt\textpipe\hskip 10pt} {0pt} {} for formatting my sections. The ...
0
votes
0answers
47 views

Different format styles for section and appendix titles

I'm using the appendix and titlesec packages to control section titles and formatting. I would like to redefine the appearance of appendix section titles: How can I define the appendix title style to ...
3
votes
4answers
66 views

Spacing capitals in section headings

I'm using titlesec to customise my section headings. I want to have my subsections in capitals, which I can achieve with the \uppercase function, but all typographic style guides suggest that caps ...
2
votes
2answers
89 views

Section Headings With Long Titles

I am trying to use latex to write my thesis, and I have modified a template to use, but am having trouble with some of my section headings. Specifically, with the weird spacing between words caused by ...
1
vote
1answer
60 views

title chapter in middle of page latex

I try to put title of my chapter in middle of page, so google it and i finish with this, \titleformat{\chapter}[display] {\normalfont\huge\bfseries\centering}{\chaptertitlename\ ...
3
votes
1answer
54 views

How to not display chapter number in section number (titlesec)

I'm using titlesec to manipulate title and section and other. Here is what I'm using: \titleformat{\chapter} [frame] {\normalfont} {\filright \footnotesize \enspace LP \thechapter ...
2
votes
1answer
70 views

Alignement in table of contents (\titlecontents)

In the code below, I use \titlecontents{part} to customise the way the parts are displayed in my table of contents. \titlecontents{part} [0em] ...
2
votes
2answers
156 views

Frame/Box around \chapter-, \section-headings,

Does anyone know how to put a frame around \chapter and \section-headings? I'm using Koma-Script (scrbook) but there it's rather difficult to find a solution ... Now I found the package 'titlesec'. I ...
7
votes
1answer
196 views

Custom chapter style with Tikz and the report class

I'm trying to use the same procedure than Customizing chapter style with tikz, for the report class and twoside printing. However for even pages i'm having an unespected behavior (see Fig 2). While ...
2
votes
1answer
53 views

Remove Spacing above Heading with removed Chapter-Text

I've a problem with removing the space above the Chapter text, when I've removed the "chapter". My minimal example is down below. In the image I show which space I'd like to reduce. I tried a lot with ...
3
votes
2answers
66 views

Unbold section and subsection heading [duplicate]

I am using this format for my section and subsection headings (it is centered and numbers have dots): \documentclass[12pt]{article} \usepackage[center]{titlesec} \titlelabel{\thetitle.\quad} %dots ...
2
votes
1answer
58 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
1
vote
3answers
168 views

Chapter Title adjusting with koma-script

The following minimal working example is not giving me the desired results. I would like to keep the chapter titles layout, but without using the titlesec package. The titlesec package is interfering ...
22
votes
2answers
403 views

Gradient fill around section headings

Trying to make a document that has gradient fill around section titles, that are not effected by margins, as such: I managed to get the gradient effect but I can't figure out how to get it to start ...
0
votes
0answers
51 views

Remove “Chapter P:” from Preface

I'm trying to reproduce this exact format for a Preface. But my toc still shows "Chapter P: Preface", whereas I'd like it to say "Preface" only. Any ideas? Here's the gist: ...
2
votes
2answers
55 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
35 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
36 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
50 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
61 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
54 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
295 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
78 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
69 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
116 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 ...
6
votes
1answer
87 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
200 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
57 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
127 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
126 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
56 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
77 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
218 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 ...
6
votes
3answers
330 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} ...