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

learn more… | top users | synonyms

1
vote
1answer
42 views

When 2 \newpages in raw are joined, and when not?

I tried to define my chapter so it will have an empty page after it, using titlesec. Using 2 newpages in a raw didn't help. I concluded that they are joined together, as if I wrote only 1. Solved this ...
12
votes
1answer
580 views

titlesec: loss of section numbering with the new update (2016/03/15)

After reinstalling TeXLive distribution (install-tl-20160318, Ubuntu 14.04), a issue occurs with the updated version of the titlesec package: the section numbering is lost. What could it be missing? ...
0
votes
1answer
40 views

How to force two “blocks” to be on the same page, without minipage?

I have the following situation (what follows is pseudo-code): \mySection*{Title} \begin{mdframed-theorem} Bla bla [...] that is long. \end{mdframed-theorem} Then something else, the starting of ...
1
vote
0answers
60 views

Titletoc / Titlesec numbers overlap text

Pretty simple problem, I have part numbers included in my section and subsection numbers, and I want to increase the space after the numbers, preferably without screwing up the rest of the alignment. ...
2
votes
1answer
63 views

Centering section with label and title on separate lines

I am trying to center a section title with the section label on one line, and the section name on the next. ie: | Article II This is the Title | My attempt: \usepackage{...
3
votes
1answer
51 views

Length of Titlerule

I have a picture on the right side of the title. For the title I'm using the underlining with \titlerule. Is it possible to adjust the line in length? I would like to have the line only go to the ...
3
votes
1answer
111 views

Replace titlesec-chapter style with KOMA

I have built a very nice chapter style with titlesec: Unfortunately there's a warning for the use together with "scrbook". That's why I want to replace titlesec with KOMA. Can anyone please help me ...
0
votes
0answers
18 views

Titlesec removes numbering on subsubsection [duplicate]

I am using report class with the titlesec package. When I enter a \subsubsection the numbering format is removed. MWE: \documentclass{report} \usepackage{titlesec} \newcommand{\hsp}{\hspace{20pt}}...
0
votes
0answers
57 views

title sec throwing error

I am getting an error while using titlesec package: \usepackage{titlesec} % Allows customization of titles \titleformat{\section}[block]{\large\scshape\centering{\Roman{section}.}}{}{1em}{} % Change ...
2
votes
0answers
29 views

Suppress section numberrs in TOC

I am creating a file, where the section headings should have box around the number. Also, some sections should not display this number even though the box should still be there. To solve this, I ...
3
votes
1answer
67 views

Managing spacing around \section inside a minipage with titlesec

I'm having some trouble getting proper padding around my section headers inside minipages. \documentclass{article} \usepackage[explicit]{titlesec} \newcommand\Vhrulefill{\leaders\hrule height 0.7ex ...
1
vote
1answer
91 views

classicthesis and titlesec

I'm still trying to make classicthesis work. The problem now is that I get lots of warnings about titlesec... As a matter of fact, with this preamble \documentclass[a4paper,11pt]{scrbook} %fonts \...
0
votes
1answer
67 views

Is it possible to have multi-line headers/footers in the `titlesec/titleps` bundle?

I have to produce the following layout scheme in the footer of a customized book document by using titlesec and titleps: Left Center right {...
0
votes
0answers
60 views

tufte-book and marginfix

I want to apply this fix Full width text shifts all marginfix-ed floats off the page to the right to the tufte-book document class, however I get an error whenever I use \chapter. \documentclass{...
2
votes
3answers
176 views

Vertical spacing in KOMA-script

How can I change vertical spacing (and indents) of \paragraph, list and list item elements in KOMA-script article class? Is there some canonical way to do this? I've tried to use titlesec package, ...
3
votes
1answer
81 views

Titlesec space issue

\documentclass[11pt,]{article} \usepackage{titlesec} \titleformat{\section}[leftmargin]{\normalfont \titlerule*[.6em]{\bfseries.}% \vspace{6pt}% \sffamily\bfseries\filleft} {\thesection}{.5em}{} \...
3
votes
1answer
38 views

How could i adjust the direction of section number and section name?

In Default Settings , LaTeX let the section name and section number both are bottom align, like this: now I want them use the "center align" like this: I try to use the titlesec package to ...
1
vote
1answer
43 views

Can you change the style of the section number but not the subsection

So I'd like to make the section headers be 1. Introduction for instance but not the subsections 1.1 Subsection I've tried these commands here: How to add a dot after the section number? but they ...
2
votes
0answers
25 views

Use titlesec from Sublime 2

Sorry for the stupid question.. But how is it possible to use the titlesecpackage of LaTeX from sublime 2? Thanks in advance.
4
votes
1answer
178 views

Bad interaction between titlesec/titleps and packages that use \markboth internally

The following MWE demonstrates a bad interaction between endfloat and titleps. The second page has the word FIGURES in all caps in both the header and the footer, contrary to the page style ...
0
votes
2answers
64 views

How to format section headings?

a question about formatting section titles. In the article class, I want to format my section titles as follows: Hide the section number in the title. Use upper case. Add a dashed title rule below ...
1
vote
1answer
64 views

Mini TOC next to chaper

I would like to place a mini table of context directly next to the chapter like in the following. For compatibility reasons the toc should be created using titletoc as suggested in this answer. The ...
2
votes
2answers
93 views

Titlesec: chapter in top margin

How can I put a chapter or section title into the margin such that it is on the top of the page? This is what I want: But the following MWE produces \documentclass{book} \usepackage{lipsum,...
0
votes
1answer
49 views

Section* in titlesec package

I cannot see section* in this source: \documentclass[oneside]{book} \usepackage[margin=1cm,top=1.5cm,right=1.5cm,bottom=2cm]{geometry} \usepackage[explicit]{titlesec} \usepackage{polyglossia} %...
1
vote
1answer
41 views

Use titleclass only in part of document

For my current project I need my document to have three parts. In the first and last part, I want the default sectioning, but in the middle part I need to apply a different style to the section level ...
8
votes
3answers
91 views

Section title formatting also in the toc

I have searched the web to no avail trying to figure out how to redefine the section title format in a way that will be transmitted to the way that same chapter appears in the Table of Contents. I ...
2
votes
1answer
67 views

How to change space before and after chapter / section etc

I would like to have the following spacing: \titlespacing*{\chapter}{0pt}{50pt}{30pt} \titlespacing*{\section}{0pt}{13.2pt}{*0} \titlespacing*{\subsection}{0pt}{13.2pt}{*0} \titlespacing*{\...
1
vote
1answer
55 views

A problem of compatibility between titlesec/titleps and biblatex

I recently met a problem when trying to format headers and footers of the bibliography with titlesec/titleps, and I can't understand what's happening. More precisely, if I change the page style just ...
2
votes
2answers
277 views

Customizing chapter and section style (scrbook)

I have found a very cool custom style for chapter and section headings (It is from Customizing Chapter style in scrbook): \documentclass[ 11pt, pagesize=auto, version=last, chapterprefix=true ...
0
votes
2answers
88 views

How to center section when using \titleformat{\section}?

I decided to use \usepackage[center]{titlesec} in order to center my sections, but I don't want them displaying the chapter/section numbering in the chapter/section headings so I applied the ...
2
votes
1answer
52 views

Wrong section number with fancyhdr when using clearpage

I am using Latex for my Bachelors Thesis and I have run into a little problem, I haven't been able to fix yet: I am using Article as my document class and want each section to start with a new page, ...
1
vote
1answer
77 views

Custom chapter number with titlesec and geometry: number past page border

I have used the titlesec package and geometry package to get the following chapter style (note that I'm using XeLaTeX): This works, however I am unable to align the chapter number in the way I ...
4
votes
1answer
52 views

Sections in the margin and subsections on the same line as the section

I'd like to write a document so that \section material shows up in the margin and so that \subsection material shows up on the same line as the \section in the margin (assuming there isn't anything ...
4
votes
2answers
62 views

Help changing Title Format

I managed to find this code snippet somewhere a while back which made my chapter titles look fancy: \titleformat{\chapter}[display] {\normalfont\Large\raggedleft} {\MakeUppercase{\chaptertitlename}% ...
1
vote
1answer
138 views

change font and font sizes for section and paragraph

I am migrating my organisation's documentation system to LaTeX. Parameters defined: Heading Font: Futura Bold Heading Colour: RGB{x,y,z} Font Size: 18pt, 15pt Body Font: Futura Book Font Size: 12pt ...
1
vote
1answer
35 views

\titlespacing* with a negative before-sep makes PDF bookmark aim too low

When I use \titlespacing* with a negative before-sep to make the chapter title higher, clicking the title in the PDF bookmark will navigate to a lower position. With the following MWE, the title will ...
3
votes
1answer
48 views

truncate headings when they have macros in them

EDIT: @egreg, I copy-pasted your document with \expandonce, but if I put a subsection with a macro inside, \subsection{\textit{EE} LEFTshort subsec}, then I get the error Missing control sequence ...
2
votes
1answer
40 views

A manually created suffix for section titles compiled using tex4ht

I am building a document that looks one way with xelatex and another plain text file appearance using tex4ht. I produce an html document that then produces a great document that can be copied into ...
6
votes
3answers
153 views

Section title with dash which appears conditionally on whether there is a section title

I would like to add a dash after the section label but before the section title. But I would like to do this conditionally on if there is a section title in the first place. So \section{Merry ...
6
votes
1answer
60 views

How can I use the `\nameref{}` command for starred sections using the `titlesec`-package?

I want to add subsubsections with alternative numbering (A1..A3, B1..B3, etc.) to my document. These subsubsections should be added to the ToC, but the native numbering should be suppressed, the ...
2
votes
1answer
146 views

Book (Novel) Layout

I would be grateful for any advice please. I would like to format section headings with the Mathilde font. However, I receive an the error: File ended while scanning use of \scr@ttl@@extract. Usage ...
2
votes
1answer
50 views

Add “Part” before the number in Toc when using titlesec package

According to other answers here and elsewhere on the Internet, to add "Part" before the part number in the ToC you do this: \usepackage{tocloft} \renewcommand\cftpartpresnum{Part~} However, I've ...
8
votes
1answer
128 views

Trouble understanding \titlelabel, \thesection, \thesubsection, \thetitle

I am reading the document for titlesec package. There is a command called \titlelabel{<lable-format>} and the document says: "Changes the label format in sections, subsections, etc. A \...
2
votes
1answer
28 views

Bigger headline numbers without changing the height of the headline

I have made the section numbers in the headlines appear in the margin with this code \newlength\mylen \setlength\mylen{\dimexpr\oddsidemargin+7mm+\hoffset\relax} \titleformat{\section} {\...
3
votes
1answer
49 views

Subsection not aligned with header subsection when using clearpage before subsection

I have implemented a custom subsection like this: \renewcommand\thesubsection{Question \arabic{section}.\arabic{subsection}} And I would like to clear the page before each subsection so I added ...
3
votes
2answers
142 views

titlesec is not properly working with koma script

I am new to latex and I am using titlesec for formatting the chapter headings with titlesec. \usepackage{titlesec} \titleformat{\chapter}[display] {\bfseries\huge} {\filleft\Large\chaptertitlename~\...
3
votes
2answers
97 views

Superscripts + custom title spacing adding extra space between lines?

When I have superscripts in body text that there is some extra blank space between that line and the line above it. How do I make it stop doing that? Lowering the superscripts, for example, or making ...
1
vote
1answer
97 views

How do i get a linebreak in a tikz / titlesec chapter style for a long chapter name

i use a modified chapter style adapted from http://texblog.net/latex-archive/layout/fancy-chapter-tikz/ i tried to get a line break for a long chapter name with the varwidth package based on http://...
2
votes
2answers
66 views

section prefixes in TOC

I'd like to give some section special "labels" to be printed in their titles and in the table of contents. My document describes several "axes", each of them containing one or more "themes". The "...
0
votes
1answer
110 views

titlesec: left margin alignment of run-in custom headers

I've used titlesec to define headers in my custom .sty file. See the code at the end of this post, and especially the runin shape spec for paragraph. For various reasons, I want numbered level 4 ...