1
vote
1answer
36 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 ...
5
votes
1answer
17 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, ...
2
votes
1answer
53 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 ...
4
votes
2answers
78 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
4
votes
1answer
126 views

Adjusting spacing before and after subparagraph with sectsty

I am helping a friend that is using sectsty to format the titles in his document. How can I adjust the spacing before and after the titles, in particular the subparagraph one? (I know that titlesec ...
5
votes
1answer
407 views

How to affect the vertical gap between the glossary's name and its body

I'm using the glossaries package for producing of nomenclature/symbols/acronyms lists, but I don't know how to influence the vertical gap between the glossary title and the first glossary entry. ...
3
votes
1answer
267 views

Titlesec problem, defining space before section with \titlespacing

I am using the article document class and have trouble with the \titlespacing command of the titlesec package (explicit). I want to have more space before the \section. MWE: ...
1
vote
0answers
48 views

titleformat deviation from specified vertical space

I have specified using titleformat (titlesec) the distances around different headings. This works fine, however sometimes, LaTeX deviates from the specified spaces, presumably to better fill up the ...
5
votes
1answer
119 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
5
votes
1answer
57 views

Change Sectional Skip Conditioned on Text Existing or not Before Sectional Division

I have a simple document layout with a main heading for the title, and the possibility of starting the first sectional unit (with a standard \section command) right after the title -- meaning, with no ...
6
votes
2answers
167 views

Spacing after Section

I have some subsubsection-titles that break the line and some that don't. The spacing after the title is different for those two cases. I am currently using so many packages and stuff (titlsec is one ...
3
votes
1answer
211 views

How to change horizontal spacing before section number

How do i change the small horizontal spacing that is present before a section number? I have used the command \titlespacing from package titlesec to set the left spacing to 0, but it is still ...
4
votes
1answer
188 views

Same vertical spacing for chapter and chapter*

I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter. I use titlesec and the styling of the chapter headings is this: \documentclass[10pt,a4paper,openany,oneside]{book} ... ...
4
votes
1answer
2k views

Chapter title alignment with titleformat

I am trying to typeset a title with titleformat as in the following example: I like the overall result, but when the title wraps around it is not left-aligned. Is there any way to indent the second ...
4
votes
2answers
11k views

Spacing before and after section titles

I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command ...
0
votes
1answer
360 views

Strict \titlespacing without glue

Problem Description TeX seems to adjust the vertical space in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization ...
2
votes
1answer
870 views

\titlespacing* defaults using the compact option

Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the ...
18
votes
1answer
802 views

Different vertical spacing (parskip) between concurrent section titles and paragraphs

I'm trying to remove the spacing between section headings, but maintain the paragraph to section heading spacing. Even though I set titlespacing before and after to *0, there is still spacing - quite ...
7
votes
3answers
1k views

How can I make \titlespacing not omit the top spacing?

In a multicols*{2} environment for 12pt linehight text, I use \titlespacing*{\subsection}{0pt}{12pt}{12pt} To create exactly 12pt of space before and after subsections. Together with a line height ...
7
votes
1answer
481 views

Translating custom \section format to titlesec

I have some custom \section formatting with a horizontal rule, and I'm trying to DRY out my code by using titlesec to define default formatting options. But I can't exactly reproduce what happens when ...
1
vote
1answer
985 views

titlesec - set top margin for the appendix and bibliography

A while ago I was helped using titlesec to format the chapter title for my thesis. Today a reviewer says that the appendix and the bibliography need 1in top margin. How do I do it? Thanks. ...
15
votes
1answer
719 views

Remove spacing above section in titlesec

I'm writing a document optimized for mobile usage, and as such I want to conserve my space. The spacing that titlesec adds to sections, subsections, etc. is getting somewhat annoying. Is there a ...
0
votes
1answer
221 views

Chapter titles distance

I am using the titlesec package to adjust the chapter titles/headings of my text. Yet, I have trouble with the resulting distance between these new titles and the body of the text. Namely, the ...
3
votes
1answer
321 views

Distance between chapter title and the baseline of the following text

Consider the code below. The distance between the chapter title and the baseline of the following text is font dependent. I assume that there is a glue between the chapter title and the top of the ...
7
votes
1answer
992 views

Space above chapter with titlesec

The following code gives me some space above the chapter title, that I'd like to avoid: \documentclass{book} \usepackage[showframe]{geometry} \usepackage{titlesec} \titleformat{\chapter}[frame] {} ...
12
votes
1answer
6k views

How to decrease spacing before chapter title?

I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two ...
10
votes
1answer
614 views

Chapter heading

I was trying to personalize the chapter and section headings using titlesec for my master thesis using the following code \documentclass{book} \usepackage{tikz} \usepackage{titlesec} ...
5
votes
1answer
733 views

Package titlesec adds extra space on top of \chapter, despite commands to the contrary

My university's Ph.D. thesis guidelines specify an exact top-margin on the first pages of chapters. I am trying to use titlesec to set this margin, but it seems to always set it to be more than it ...
4
votes
1answer
842 views

Setting the upper margin of chapter titles in scrbook

In a scrbook document I need to set the chapter titles close to the upper page margin, without leading number and with a \hrule afterwards. Redefining \chapterheadstartvskip does the trick with the ...
5
votes
1answer
572 views

Positioning the beginning of table of content (toc) to the top of the page

I managed with great help from here to shift the beginning of the chapter titles to the top of the page, but it doesn't affect the table of content. Why is that? And how could I do that? I don't ...
4
votes
1answer
145 views

Setting vertical spacing between different document elements at the same time

I have the following problem. Let's define three types of document elements: Titles, Paragraphs and Longtables. The problem is to setup vertical spaces between them independently. For example, let's ...
11
votes
1answer
5k views

Obtaining the default section spacing into the \titlespacing* parameters

I'm using the book class. I want to modify the spacing before and after my sections using the \titlespacing* command. However, before I do that, I want to let its parameters be such that they ...
5
votes
2answers
4k views

How can I hide the chapter headings number on LaTeX and change the spacing?

I'm writing my Thesis but I have run into some layout troubles, I'm using the standard book document class, which results in my Chapters headings in the form of: Chapter # Name of my chapter ...
2
votes
1answer
9k views

Vertical space before section title with titlesec

I was trying to eliminate the vertical space before and after the title of a section by using the titlesec package and the command \titlespacing*{\section}{0pt}{0pt}{0pt}, but it works only in ...
8
votes
1answer
1k views

Strange behaviour of titlesec, with colored titlerule

With the following MWE, i get the Section title underlined in black : \documentclass[12pt]{article} \usepackage[explicit]{titlesec} \usepackage[dvipsnames]{xcolor} \titleformat{\section}% ...
4
votes
1answer
473 views

\addvspace after a titlesec heading

So, I'm trying to make an environment that is always padded above and below by a certain vertical space, no more and no less (unless the previous or following elements require even more space). My ...
6
votes
1answer
1k views

titlesec: Vertical space that I don't want

Again me, still trying to emulate a very specific layout... I used the titlesec package to define chapter and section titles, and am very pleased with the outcome... except of some ponts' worth of ...
1
vote
1answer
270 views

Help understanding/debugging spacing around headings (and other places)

I am trying to get my headings set up to meet my university's thesis formatting requirement. I'm using the titlesec package because it has the ability to suppress the spacing before the second heading ...
5
votes
2answers
264 views

Adjust settings that determine when sections should start on a new page/column

I'm using titlesec in a two column environment, and sometimes my sections start on a new page or the second column, and leave blocks of white space at the bottom of the previous page/column. I am ...
7
votes
1answer
1k views

Titlesec: remove space after empty margin section

I'm using titlesec to assign some custom formatting to my sections. In particular I want to use margin \section's, so that the title section is typeset on the left margin, and the text of that section ...
1
vote
1answer
175 views

Why chapter label below the section label on new page even if by setting same spacing before title (use titlesec package)?

\documentclass{book} \usepackage[margin=0pt,papersize={50pt,70pt}]{geometry} \usepackage{titlesec} \titleformat{\chapter}{\Huge\bfseries}{}{0em}{} \titleformat{\section}{\Huge\bfseries}{}{0em}{} ...
4
votes
2answers
1k views

Vertical space after title of unnumbered chapters (bibliography/ToC)

The title pretty much says it all: It is possible to add arbitrary vertical space after the title of the ToC or bibliography page within the report document class?
6
votes
1answer
3k views

Increase title spacing stretchability using titlesec with compact

I have a two-column document that uses the titlesec package with the compact option. This mostly produces the spacing that I like, but it doesn't give enough stretchability above the section titles ...
9
votes
2answers
3k views

Prevent a paragraph break after a section heading

In my .cls file for my thesis, I have defined \subsection as follows: \newcommand{\subsection}[1]{% \pagebreak[2] \refstepcounter{subsection} \addcontentsline{toc}{subsection}{ ...
21
votes
2answers
20k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} ...