Tagged Questions

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

learn more… | top users | synonyms

0
votes
2answers
59 views

Custom section in conflict with TOC

I adapted this answer to make a custom section I need. My intention is that it looks something like the second heading from this image: So the numbering must be made using (\Alph) and it must be ...
2
votes
2answers
58 views

Page breaks inside titlesec section headings

I use LaTeX to generate contracts and agreements. In most cases, it works okay but, every so often, it causes problems with pagination; specifically, if I have too many subsections without an explicit ...
2
votes
0answers
108 views

Using Titlesec, titletoc, and titleps together affects the command \tableofcontents

Writing a book of probability in arabic, I want to use the titleps package for different beautiful headpages, in my files where I use titletoc for partial table of contents. All was good until I used ...
4
votes
2answers
118 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} ...
3
votes
2answers
55 views

Environment begin or end in Heading definition

I'm trying to include an automatic \end{multicols} and \begin{multicols}{2} before and after my Chapter headings. (The document is 2 column, the chapter headings are meant to be across the page.) ...
4
votes
1answer
138 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
47 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} ...
2
votes
0answers
40 views

Having the same amount of space with and without multicol when using with titlesec and itemize

I am trying to use multicol and itemize to spread a list over several columns. I am also using titlesec to style my headings. One part of my document uses multicol and the other does not and both have ...
1
vote
0answers
56 views

Missing font shapes

I have a problem with missing font shapes. I'm working on lecture notes and made some corrections to a very large latex document, so I did not set up everything by myself. Now I encoutered the problem ...
0
votes
1answer
54 views

Defining a header style for acknowledgements (saying no to Chapter*{} !!!)

I'm using \documentclass{book} and I have also redefined my \chapter and \part heading styles. However, these styles do not apply to the heading of the Acknowledgements page (the word ...
5
votes
2answers
269 views

How to have titlesec like behaviour for a Koma Script

I am using \documentclass{scrartcl} which I believe is a Koma-Script type. I now wish to have each \section{} start in a new page, similar to what \usepackage{titlesec} offers, as shown on this ...
0
votes
2answers
74 views

How to reduce spacing between titles of chapters?

I want to reduce spacing between titles of chapters. What changing should I do in the following example? \documentclass[12pt]{report} \usepackage[dvipdfm]{graphicx} \usepackage{amsfonts} ...
1
vote
0answers
44 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: ...
2
votes
1answer
62 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 ...
6
votes
1answer
58 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
38 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
61 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 ...
2
votes
1answer
36 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? ...
3
votes
2answers
222 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 ...
3
votes
2answers
72 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
77 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
120 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
98 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
97 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
74 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
87 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
51 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
88 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
94 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
99 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
124 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
232 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
78 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
225 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] ...
6
votes
2answers
96 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
2answers
248 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 ...
8
votes
1answer
340 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 ...
3
votes
2answers
241 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
63 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 ...
22
votes
2answers
518 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 ...
3
votes
3answers
317 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 ...
0
votes
0answers
54 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
77 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
50 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
46 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
68 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} ...
0
votes
1answer
111 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: ...
3
votes
1answer
75 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 ...
10
votes
1answer
417 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 ...
3
votes
1answer
102 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 ...