Tagged Questions
4
votes
1answer
53 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}
...
...
3
votes
1answer
107 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 ...
1
vote
2answers
104 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
57 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
52 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 ...
15
votes
1answer
334 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
302 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
198 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
211 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.
...
13
votes
1answer
316 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
144 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
148 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
300 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]
{}
...
10
votes
1answer
907 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 ...
7
votes
1answer
391 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}
...
4
votes
1answer
465 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
451 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
169 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
126 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
2k 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
2k 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
5k 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 ...
7
votes
1answer
535 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
385 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 ...
4
votes
1answer
706 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
217 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
222 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
936 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
153 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
808 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
2k 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 ...
6
votes
2answers
2k 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}{
...
14
votes
2answers
8k 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}
...


