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

learn more… | top users | synonyms

3
votes
3answers
202 views

Double Names being included in Table of Contents

I have a final report that I am writing in LaTeX. I have a code to make the section headings appear in the center of the page (thanks to Jubobs): \titleformat{\section} ...
5
votes
2answers
983 views

extra } when use titlesec package

In the .tex file, I want to use the package titlesec. But there is a error: ! Argument of \subparagraph has an extra }. Is there some simple method to fix this? The code is: ...
3
votes
2answers
649 views

Section title with subtitle

I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
1
vote
1answer
255 views

Conflict between titlesec and colortbl

I'm getting a conflict between titlesec and colortbl that I can't seem to fix. The minimal working example is below. As soon as I put a \section in, pdflatex errors with ! Missing number, treated as ...
3
votes
1answer
3k views

titlesec and \section* in \titleformat

I use \titleformat (titlesec package) to make some fancy headings in my documents. But I did not find a way to know, in the \titleformat specifications, if the section is made with a \section or a ...
4
votes
1answer
348 views

Multiline title vertical alignment using classicthesis and arsclassica

I would like to align the 2nd line of my title to have the same baseline with the chapter number. What I have now is , but I would like to have instead. I found that the tweak in How to get ...
6
votes
2answers
270 views

write to back page of part

I have defined (using koma-script), that chapters only start on the right side. The same applies to part pages. So far this is ok. But now I want to insert a contents list (using titletoc) on the ...
18
votes
1answer
900 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 ...
8
votes
2answers
230 views

Page number in the margin and separator

I want to produce this kind of header. My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
2
votes
1answer
160 views

Transfering Style of Sectioning-Titles to TOC-, LOF-, LOT-Titles

This is a continuation of my last (answered) question: I want to style the Title of TOC, LOF and LOT exactly the same as the Sectioning-Titles. Problem is that they (a) start "higher" than normal ...
5
votes
1answer
483 views

Emulating book-class-sectioning using titlesec and modifiying it

In short: Prerequisite: Need to emulate book-class for \part and \chapter using titlesec Change both to hang, start on same page Add titlerule to \chapter I want to optimize my rather hacked ...
2
votes
1answer
130 views

Make the titles centered using the titlesec package

I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
2
votes
1answer
407 views

Titletoc and Titlesec in just some chapters

I have a twocolumn document and I should insert the minitoc in the first chapters with titlesec and titletoc. I read the answer to Customize minitoc; however, if I change the \titleformat before ...
6
votes
1answer
279 views

Why do I need \newrefsegment when I already specify refsegment=section?

The following works well and shows exactly what I want. I am just wondering about this: Why do I have to use \newrefsegment, if I already specified refsegment=section? I expected everything to work ...
2
votes
1answer
693 views

how to color the header's bottom line or footer's upper line?

The title is self-explanatory. In my document's current state, I get this rendering result after compiling with XeLaTeX : Here's a MWE of which packages and commands I use to obtain my current ...
4
votes
2answers
626 views

Heading number in margin using titlesec and/or komascript

Using titlesec and/or komascript how do I format all headings so the number is left aligned in the margin, the title to the right, with a horizontal rule underneath it all (from margin to text width ...
16
votes
4answers
546 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 ...
2
votes
1answer
295 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
163 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
285 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} ...
4
votes
1answer
321 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
456 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
195 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
334 views

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

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
1k 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 ...
8
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 ...
2
votes
1answer
241 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
147 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
509 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
235 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
628 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
225 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
190 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
152 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
1k 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
244 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
295 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
727 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
255 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
716 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
751 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 . ...
7
votes
1answer
586 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
1k 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
764 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
1k 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
2k 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
327 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
3k 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
418 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 ...