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

learn more… | top users | synonyms

4
votes
1answer
173 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 ...
2
votes
1answer
140 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 ...
1
vote
1answer
88 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 ...
8
votes
0answers
69 views

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec? In this answer I provide a tentative patch which allows character protrusion to work normally in ...
5
votes
0answers
453 views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter ...
2
votes
0answers
28 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 ...
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.
2
votes
0answers
49 views

titlesec extra arguments to sections

Is it possible to add extra arguments to a modified section environment using the titleformat command of the titlesec package? For example, that the section color appears as red when doing ...
2
votes
0answers
111 views

How do I align the first section title with the top of the first column when using multicol?

I'm using multicol for a two-column layout so I can have column balancing/equalizing at the end of every chapter. I'm also using titlesec to format my chapter/section/subsection titles. I've been ...
2
votes
0answers
311 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 ...
2
votes
0answers
101 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
20 views

How to remove space after a section, and remove before a subsection?

I'm trying to get rid of the blank lines that appear after I begin a section, and between subsections (so before a subsection?) Currently I'm using \usepackage{titlesec} ...
1
vote
0answers
48 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. ...
1
vote
0answers
32 views

Titlesec / AutoFakeBold making pdf figures bold

I have a simple MWE similar to the following: \documentclass[12pt]{article} \usepackage[letterpaper, left=19mm, right=19mm, top=3.52cm, bottom=2.84cm, headheight=38.7pt]{geometry} ...
1
vote
0answers
131 views

Adding a sectioning level with titleclass and tocdepth

I want to add a subchapter sectioning level, between chapter and section. I use the \titleclass command from titlesec package. According to titlesec documentation, ...
1
vote
0answers
86 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
0answers
110 views

Setup Multiline Title in Titlesec

I need to put next line in multiline title aligned with label title. How can I accomplish this? I guess it has to do with removing the auto-indentation of the next line.
0
votes
0answers
21 views

Titlesec, space between header and chapter style

I tried to adapt @Bernard solution to my case, but I am facing some troubles. It is possible that I just simply don't understand the code, but I tried to change almost every parameters, and I can't ...
0
votes
0answers
19 views

Remove chapter number space arising from \chapter*{}

I am using the titlesec package to format my chapters in the following way: \titleformat{\chapter}{\rmfamily\bfseries}{\resizebox{!}{2cm}{\Roman{chapter}}}{0pt}{\vskip 0.25\baselineskip ...
0
votes
0answers
13 views

Why is there inconsistency in the spacing set by \titlespacing?

I have a 1in margin on each side. When I set the spacing with \titlespacing, the upper spacing for the headings are definitely larger than 1in. It is larger than the left and right margin I will have ...
0
votes
0answers
19 views

Title table of content spacing

I am actually using the following commands to format my chapter titles: \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\bfseries\filcenter} {\LARGE } {1ex} ...
0
votes
0answers
45 views

How to modifier chapter*?

\documentclass{book} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[charter]{mathdesign} \usepackage{graphicx, calc} ...
0
votes
0answers
32 views

Titleformat and underlining section heading

I have used the following code to format my sections, subsections and sub sub sections: \titleformat*{\section}{\fontsize{18}{18}\bfseries\color{blue!30!darkgray}} ...
0
votes
0answers
50 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 ...
0
votes
0answers
50 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. ...
0
votes
0answers
29 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
0answers
87 views

Spacing before and after headings

EDIT: I've adjusted this question after experimenting with the titlesec package. I removed the following code to prevent conflicts as suggested by @Bernard & @cfr. \makeatletter ...
0
votes
0answers
69 views

Customizing a title section with titles package

Looking at the titlesec documentation I found a example suitable for me, so I made a little modifications and get something like this with the following code \documentclass{article} ...
0
votes
0answers
67 views

Custom subsection without newline

I've applied solution Chapters and verses of current page in header into my bible style. It gives text like this In above solution each verse is created by \subsection in new paragraph. I want to ...
0
votes
0answers
330 views

Format Latex report Chapter, Section, Subsection header styles

I'm writing my thesis and instructions for chapter, section and subsection are as following. - Chapter heading :All Capital—14 Font size, Bold - Section heading :Title case-12 Font size, Bold - ...
0
votes
0answers
353 views

Fancy part title page with titleformat and centering problem

I would like to create a fancy part title page but I have some issues with titleformat. Currently, I use : \titleformat{\part}[display] {\normalfont\filcenter\thispagestyle{empty}} {}{0pt}{ ...
0
votes
0answers
25 views

Using {align} for equations affecting titlespacing settings

I have adjusted the whitespace around my section headings by using the following code: \titleformat{\section}[display]{\color{black}\normalfont\sffamily\bfseries\large}{}{0cm}{\numb} ...
0
votes
0answers
87 views

titletoc: strange output

Using the titletoc and titlesec packages and creating the specific pagestyle, I got the strange output as shown on the pictire below. The MWE is... \documentclass[a4paper,twoside]{article} ...
0
votes
0answers
238 views

Prevent titles at bottom of page—sometimes

I have a book that contains both prose and poetry. I don't want a poem to start too close to the bottom of the page. That's what the nobottomtitles option of titlesec is for. I don't want this to ...
0
votes
0answers
94 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}{}[. \ ] ...
0
votes
0answers
62 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} ...