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

learn more… | top users | synonyms

1
vote
1answer
47 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
220 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
63 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
39 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
57 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
46 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
53 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
118 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
30 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
45 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
36 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
139 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
44 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
127 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
42 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
92 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
45 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
100 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
76 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
78 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
2answers
59 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
62 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 ...
1
vote
2answers
72 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} ...
2
votes
1answer
112 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
1answer
56 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: ...
4
votes
1answer
79 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
79 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 ...
1
vote
1answer
75 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}% ...
2
votes
1answer
53 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
115 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\ ...
1
vote
1answer
81 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 ...
1
vote
1answer
54 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} ...
2
votes
1answer
51 views

Why does my custom sectioning command crash on second run when using etoc?

Finally I have narrowed down the problem to a custom definition of a sectioning command using titlesec in explicit mode. I suspect it has something to do with me not providing an adequate counter for ...
4
votes
1answer
42 views

use titlesec in biditufte class

I want to specialize sectoining in persian biditufte class. I use this code in report class but in biditufte-handout class I got an error. \documentclass{report} \usepackage{xcolor} ...
1
vote
3answers
144 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: ...
1
vote
1answer
65 views

Condensed bibliography with runin title as in titlesec

Here is an MWE for a document I'm working on, based on code from here, modified with some titlesec options. My goal is to get the references title to appear as a runin title as in all the other ...
1
vote
1answer
46 views

How do I customize the font and font size of every section title once and for all?

\documentclass{article} \newcommand{\sect}[1]{\section{\fontsize{20}{30}\selectfont \ctxfr #1}} \begin{document} \sect{Yes} \end{document} Above is what I tried; it is unfortunately not workable ...
1
vote
0answers
11 views

Vanishing \footcite if the titlesec package is loaded [duplicate]

I'm trying to use multiple \footcite citations at the end of a \section. This works as expected as long as I don't have the titlesec package loaded, but as soon as I do, all but the last \footcite in ...
6
votes
3answers
129 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 ...
3
votes
1answer
77 views

title spacing using titlesec and customisation

I am using some code from here which allows me to use ordinal numbers in arabic for the chapter titles. I also want to change the title spacing. I am only a little familiar with titlesec. The ...
2
votes
1answer
35 views

Changing the relative position of the starting point of every chapter (also Preface, References, Index if any)

I would like that the starting point of the first page of each chapter (also Preface, References, Index if any) be at the position 1/3 of the text-height of the page (from the top of the page). In ...
0
votes
0answers
27 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} ...
0
votes
2answers
142 views

customization of section with tikz and titlesec

i'm trying to customize the title of sections in my document using the packages tikz and titlesec. Unfortunately, that does not work and i need some help to solve my problem. I get this error : ! ...
1
vote
1answer
38 views

Automatically reset the counter of a custom-defined sectioning block with titlesec

I added a custom sectioning block to my document following the instructions I found on this question: Defining custom sectioning commands. Below is a mvce: \documentclass[12pt]{article} ...
4
votes
1answer
178 views

titlesec ToC formatting — capitalization, subsection numbering for sections, title formatting

I'm a newer user of the detailed formatting capabilities in Latex... I'm having a really hard time figuring out titlesec documentation to do the necessary formatting that I require. Unfortunately, the ...
4
votes
1answer
53 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
67 views

Space between two consecutive headings with titlesec option largestsep

To format headings I am using the titlesec package. I need 12 pt space before each heading and 6 pt after. If there are consecutive headings (i.e. heading directly followed by subheading) I need 12 pt ...
2
votes
1answer
82 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} ...
2
votes
1answer
249 views

Adding line after section heading

I am trying to add a horizontal line (like \hrule) that starts just after each section's heading, fills the rest of the line, and is vertically aligned with the heading, as shown below. To do so, I ...