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

learn more… | top users | synonyms

16
votes
4answers
480 views

Using fixed space aroung headings to get text in sync with baseline grid

In order to make my text stay in sync with the baseline grid, I've set the vertical spacing before and after \section headings to integer multiples of \baselineskip (using the titlesec package). A ...
1
vote
1answer
232 views

Special chapter title formatting

Using the book class. I would like to have chapter titles that look like this: | CHAPTER ## | | Chapter Title (italic) | Can titlesec do this?
1
vote
1answer
139 views

How do I hide “Chapter 0” in this custom style when using a numberless chapter?

Everything works perfect when I use \chapter{chaptername}, but I noticed that my table of contents and other similar non-numbered chapters have a "Chapter 0" in my header. \titleformat{\chapter} ...
0
votes
1answer
240 views

\titleformat does not seem to work when used within a class file

The following block of code doesn't seem to do anything when I define it in a custom class. But when I use the class but put this block in my preamble, it works as expected. \titleformat{\chapter} ...
3
votes
1answer
283 views

Two-line spanning number in chapter title

I try to have the chapter's number in my document twice as big as the title on the left and the two-line chapter title on the right. The number should span two lines, so the two lines of the title are ...
4
votes
0answers
358 views

Trouble with titlesec

I've been using titlesec for quite some time now and want to "pimp up my style" ;) I've read How to change header to list first section on page and not last section and tried to adapt the code for ...
4
votes
1answer
162 views

Customize the section title with Latin Modern

I have created a thesis using mathptmx font. Now I would like to customize only the section title using Latin Modern Sans Bold. I used titlesec with \usepackage{titlesec} \titleformat{\section} ...
1
vote
0answers
314 views

How to assign distinct font, color and style to each sectioning environment of a document?

I am trying to compose with *TeX a document that looks like a GDR manual. Basically I need to set a different font, style and color for chapter, section, subsection and subsubsection labels. It is ...
3
votes
1answer
882 views

New line after subsubsection with llncs class

I get a new line after each chapter, section, and subsection, but not after anything lower than subsection, e.g. subsubsection or paragraph. MWE: \documentclass[runningheads]{llncs} ...
0
votes
0answers
88 views

How to install titlesec? [duplicate]

I see all the files in titlesec here at ctan: http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/ I also see a titlesec folder in my texmf-texlive tree. Apparently what happened is that ...
7
votes
3answers
884 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 ...
2
votes
1answer
195 views

Using both titlesec and fncychap in the same document

I have created my thesis using fncychap to customize the chapters. There are also chapters starred created using chapter*{}. I would add an hrule in those chapters. As the user mafp suggested me, it ...
1
vote
2answers
134 views

Add a hrule to only chapter not numbered

I am thinking of adding a hrule to only chapters that are not numbered, in other words the chapters created using chapter*{}. I thought of using the titlesec package- My problem is that I cannot find ...
7
votes
1answer
438 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 ...
4
votes
2answers
217 views

Custom titlemarks

My title marks are not working as I want them to. I had to move away from using the native section and subsectionand therefore my title marks does not work. I had a look at the extramarks feature of ...
6
votes
1answer
473 views

Title between lines

So I want to have one line above and one under the title of a chapter in scrreprt, like: _________________________________________________ 1. Introduction ...
5
votes
1answer
199 views

Section header for references shows wrong number

So I downloaded a nice looking article template which has a custom look for section titles. But now the number next to the References header is the same as that of the last section. How do I fix ...
7
votes
1answer
166 views

titlesec: why is contents a section?

I've been playing around with the titlesec package combined with the scrartcl class. I find the headings titles of scrartcl a bit ugly, but I do like the fact that I can scale font sizes to 8pt. ...
6
votes
2answers
136 views

Can't increase spacing before section title

I'm having troubles with increasing spacing between the header and section title. As suggested in titlesec package documentation, I added the following line to my preamble: ...
1
vote
1answer
758 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. ...
1
vote
1answer
199 views

Using titlesec in beamerarticle with a modified section command

This is further to the solution provided to my previous question about allocating short and long titles correctly to the beamer and article output of a beamerarticle. The solution provided there ...
5
votes
1answer
263 views

Move (sub)section number right of (sub)section title in table of contents

I restyled the \section and \subsection a little bit, to better suite my needs when writing assignments. Using titlesec, I moved the (sub)section number to the right of the (sub)section title. In my ...
2
votes
1answer
548 views

Reducing/removing gap between header and custom chapter title

I'm writing a portfolio/report with pdflatex and while trying to get a header and footer I have got a situation where there's now a significant gap between the header and the chapter title, whereas ...
2
votes
1answer
193 views

Getting chapter title bigger

I would get bigger only the chapter title. I heard I should use titlesec package but I didn't understand how I should use it to achieve what I mean. I'm using book class
7
votes
1answer
599 views

How can I get the Title, Author, and Date on the same line?

I would like to have Title flush left Author flush right Date flush right How can I do this on the same line or on a shared line? I was hope to achieve the following: This is as far as I got ...
6
votes
2answers
543 views

How to apply a custom pagestyle (with titlesec package) to a part of a document

I have defined a personal page style using the package titlesec. The style defined is: \newpagestyle{myStylePage}[\large\sffamily]{\headrule \sethead{\thechapter . \chaptertitle}{}{\thesection . ...
6
votes
1answer
413 views

Weird behavior of Partial TOC with titletoc

I have been looking for two hours for an explanation to the problem I am facing, and so far I found no hint. In a document of the book class, I am trying to include partial TOC at the beginning of my ...
12
votes
1answer
854 views

My custom style doesn't work

It is my first experience with LaTeX. This may be some sort of dummy question. But anyway. I've spend a day with TeXLive on Fedora. And here is the problem. I have some file 1: \documentclass{book} ...
15
votes
1answer
634 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 ...
3
votes
2answers
834 views

Format appendix chapter title with titlesec in a scrbook

I'm writing a longer text and redefined the Design of a Chapter start page using titlesec. For example \documentclass[cleardoublepage=empty,fontsize=11pt,a4paper,twoside,DIV=calc]{scrbook} ...
4
votes
1answer
1k views

Creating a bold and indented title.

Im working with an existing template and I need to make my sections bold and my subsections indented. I use the titlesec package. My Section style is this ...
3
votes
2answers
266 views

Chapter format redefinition

I have change the \chapter section definition but in some chapters of the book I don't want to apply it. For example, in the code below I don't want to apply in \EjerPro. How can I do it? ...
6
votes
2answers
2k views

Chapter titles using titlesec

I want my chapter titles to look like as asked in this post. I have followed the method suggested by "lockstep", that is, using package titlesec. It works perfectly fine but here is the question: I ...
6
votes
1answer
341 views

Wrong section counter for references when using titlesec

Changing the style of my sections using the package titlesec works fine with these lines \usepackage{titlesec} \titleformat{\section}[block]{\large\scshape\centering{\Roman{section}.}}{}{1em}{} but ...
6
votes
2answers
398 views

titlesec: \sectionmark breaking \ifthesection?

In the titlesec package, one may use the \ifthesection (or \ifthechapter,...) command to apply some customization commands only when a \section has been defined. However, it seems that using ...
3
votes
1answer
241 views

Titlesec and ACM conference format: How to get proper capitalization of sections

The ACM conference format requires that the first three sections "Catagories and Subject Descriptors", "General Terms" and "Keywords" be special sections with lowercase titles. All other sections ...
3
votes
2answers
782 views

Problems with titlesec, hyperref, biblatex and tocbibind

I am using the titlesec package to change the section font to sans-serif. Unfortunately, this breaks the links to "unnumbered" sections both in the TOC and in the bookmarks sidebar of PDF readers. I ...
1
vote
1answer
217 views

How to change the formatting of chapter titles in the endnotes

I'm using pagenotes in the memoir class for a book. This is all the code I'm using that I think is relevant: \let\pagenote=\endnote \makeatletter \renewcommand*\prenotetext{% \list{}{% ...
0
votes
1answer
207 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 ...
5
votes
1answer
320 views

My titleclass breaks subsubsection headings

I am using the titlesec package in conjunction with the ACM SIG Alternate document class to create a special kind of subsubsection as follows: \documentclass{sig-alt-full} % +++++ Begin Experiment ...
1
vote
1answer
417 views

Titlesec ruins Table of Contents formatting

I'm trying to use the titlesec package, but somehow section names in the \tableofcontents become overlapped with the TOC numbers and subsection names become improperly indented. Here's an example, ...
3
votes
1answer
288 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
771 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] {} ...
2
votes
1answer
681 views

titlesec and bibliography

I use titlesec to capitalize and display the chapter title at the center. Everything is fine until I get to the bibliography, the word 'bibliography' is not capitalized. Here is an example ...
2
votes
1answer
212 views

Titlesec and xcolor not playing nicely?

I am trying to use the titlesec and xcolor packages together (well, actually, the tufte-book class is, but that's another story.) Here is a minimal LaTeX file that illustrates my problem: ...
5
votes
1answer
374 views

biblatex per-chapter bibliography and titlesec

This is a follow-up to my previous question Proper way to include unnumbered chapters in a per chapter bibliography using biblatex. The solution proposed by Audrey breaks when I use the titlesec ...
4
votes
1answer
1k views

Add a rule after chapter title using titlesec

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline ...
8
votes
1answer
525 views

Changing size of footnote symbols in titlesec-formatted chapter titles

I am using titlesec to define the formatting of Chapter titles. At present, footnote symbols within these titles appear in the same format, but my author would like them to be somewhat smaller. The ...
4
votes
1answer
182 views

Problems with paragraphs in margins

I am writing some papers for my class, and want to number the tasks with two or three levels. The first level should be a simple number like 1), while the next level should be labeled by numbers. ...
5
votes
1answer
433 views

Remove part page

In my thesis all my chapters are grouped as a part (titled CHAPTERS). I want the part to appear in the TOC, but do not want a part page. The part is showing up fine in the toc, but the part page shows ...