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

learn more… | top users | synonyms

1
vote
1answer
18 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 ...
1
vote
3answers
107 views

ToC Chapter alignment conflict with titlesec

I need all the numbering aligned left, sections and subsections slightly (0 or 2pt maybe?) on the right of chapter. Chapter and section all caps. The screenshot will explain better what I need: ...
8
votes
3answers
57 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 ...
1
vote
1answer
86 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 ...
0
votes
1answer
57 views

LaTeX vertical spacing after numbered paragraphs

I'm relatively new to this forum and LaTeX in general, so please excuse me if I'm duplicating a question, but I can't find a satisfying solution to my problem. I have introduced numbered paragraphs by ...
2
votes
1answer
29 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} ...
2
votes
2answers
154 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 ...
1
vote
1answer
28 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 ...
0
votes
2answers
22 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 ...
5
votes
2answers
282 views

Section title with runin and KOMA class?

I would like to have section titles with runin so that there is no newline after the section title. This can be done with \documentclass{article} \usepackage{titlesec} ...
2
votes
1answer
22 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, ...
2
votes
1answer
91 views

Change spacing before chapter title within frontmatter

I am using the report class for my dissertation, which requires 2 inch margin beginning at each chapter. I am using the following command: \titlespacing*{\chapter}{0pt}{2in}{1in} This works fine ...
7
votes
5answers
5k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
1
vote
1answer
35 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
40 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
38 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
26 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
38 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
111 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 ...
1
vote
1answer
137 views

avoid hyphenation in chapter title using tikz and titlesec

[This question is similar to the one here, but the solutions given there do not work in my context] In a (fairly complex) book I'm using titlesec and tikz to produce fancy chapter headings, basically ...
2
votes
1answer
33 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 ...
3
votes
2answers
142 views

Can someone walk me through how this command works?

I am trying to make it so that my chapters aren't labelled as 'chapter 1', 'chapter 2' etc. I just want it to have the number, with no 'chapter'. I want the word 'chapter' gone. A quick Google search ...
6
votes
3answers
122 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 ...
2
votes
1answer
64 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
0
votes
1answer
41 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 ...
4
votes
1answer
23 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 ...
4
votes
1answer
297 views

\nameref breaks for star versions of section/paragraph when titlesec is loaded

\nameref breaks for the star versions of section, paragraph when titlesec is loaded. I have a document that numbers paragraphs by default, but I have a few I do not want to number but would like to ...
17
votes
2answers
3k views

Section title gradient

Background Writing a manual using KOMA Script. The default fonts are perfect and should not be changed. Problem KOMA Script produces the following section outline: The desired outline looks ...
2
votes
1answer
25 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
53 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
24 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
38 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 ...
1
vote
1answer
45 views

Titlesec chapter headings wrapped over two lines

I'm using titlesec to produce chapter headings with this code: \titleformat{\chapter}[display] {\bfseries\huge\sc} {\sc\filright\chaptertitlename~\thechapter} {0ex} {\titlerule \vspace{0ex}% ...
3
votes
2answers
74 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} ...
3
votes
2answers
56 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 ...
2
votes
2answers
50 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 ...
1
vote
1answer
54 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 ...
2
votes
1answer
90 views

Chapter style for a book of complied articles

Say each chapter is an article (manually copying or typesetting the article). Naturally, article title will be used as chapter title. How do I define sections for subtitle, author, date, and source ...
1
vote
2answers
63 views

Chaptertitle boxed in twoside book-document

\documentclass[11pt,a4paper,twoside,openany]{scrbook} \usepackage{tikz} \usepackage[explicit]{titlesec} \usepackage{blindtext} \titleformat{\section}[hang]{\large\bfseries}{\thesection\quad}{0pt}{#1} ...
16
votes
3answers
5k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
2
votes
1answer
69 views

remove chapter number from section entries in tableofcontents

an MWE: \documentclass{book} \usepackage{a4wide} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{polyglossia} \setmainlanguage[spelling=new,babelshorthands=true]{german} ...
1
vote
1answer
54 views

Why does my document still have vertical space before a chapter? [duplicate]

So I wanted to customise my chapter style and remove the space before it. I've already used \titlespacing from titlesec package, but there still is space before the title. mycls.cls: ...
6
votes
3answers
122 views

Selective and bunched entries to list of figures

I have a complex document with a few thousand figures (most of which are slight variants, but a few are key). I would like to produce a list of figures (lof) which only includes individual figures ...
4
votes
1answer
71 views

Customizing section for adding bullet or image

I am a newbie to TeX and I'm trying to create a template CV for learning LaTeX class and new commands. I want to create an \iconsection command get 2 values: first, an icon filename or pifont ...
5
votes
2answers
67 views

Using llap in titleformat prevents line breaking

I would like section numbers to be placed in the margin. I found a solution here (Theorem Name/Numbering in Margin) which works with a caveat: when the section title is very long, the title text line ...
2
votes
1answer
38 views

Appendix Numbering Format: Dash instead of Dot after (alphabetic) number of appendix

How can I change the dot after appendix's numbering (A.) to dash (A -)? MWE \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{standalone} \usepackage{wallpaper} ...
2
votes
1answer
57 views

Package titlesec Error: Incompatible package?

Here is my code. Something goes wrong. \documentclass{book} \usepackage{titling} \usepackage{lastpage} \usepackage{titleps} \newpagestyle{main} { \sethead[\footnotesize \sffamily{Page}\thepage\ ...
0
votes
0answers
24 views

How to make titlesec show greater number depth?

\setcounter{secnumdepth}{5} \titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{0.5em} ...
4
votes
1answer
44 views

Relative spacing in titlesec

I am trying to create a custom section and subsection format that consists of the index, followed by a vertical line, followed by the title. An example can be found here: ...
1
vote
1answer
35 views

Problem with pgfornament in titlesec \titleformat

I'd like to make a nice section title using the pgfornament package in the \titleformat of the titlesec package. When I use only one ornament on the left side it works. \documentclass[11pt]{book} ...