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

learn more… | top users | synonyms

2
votes
1answer
856 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 ...
1
vote
0answers
30 views

Latex: conflict titlesec and tikz packages [duplicate]

I am using the IEEEtran class and I also call in my preamble the titlesec and tikz packages. If tikz is not called my code runs fine. Otherwise, (when calling the tikz package) I am given this error ...
4
votes
1answer
72 views

Using \toptitlemarks and \bottitlemarks with any counters

\toptitlemarks and \bottitlemarks don't seem to work with random counters: \documentclass[paper=a4,pagesize=pdftex]{scrbook} \usepackage[pagestyles]{titlesec} \usepackage{lipsum} ...
4
votes
1answer
246 views

New titleclass not counted in the table of contents

The following defines a new titleclass which I would prefer not counted in the table of contents defined. How can this be achieved? \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} ...
5
votes
1answer
434 views

Spacing in \chaptertitlename

Consider the following MWE: \documentclass{book} \usepackage{titlesec} \usepackage{lipsum} % just to generate text for the example \usepackage[tracking=smallcaps]{microtype} ...
0
votes
1answer
511 views

fancy heading … \section{} titles disappears

By combining the next two questions-answers Fancy chapter headings and Section title gradient . I have this effect. The problem is that the name of \section{} disappears. What is wrong? ...
1
vote
1answer
206 views

How to use a counter inside \titleformat in LaTeX?

I am writing a text in LaTeX and I want my \paragraphs to be numerated. I am using package titlesec and the following sentences: \newcounter{artNumber} \setcounter{artNumber}{1} ...
3
votes
1answer
396 views

Custom chapter title protruding in left margin

Based on this answer, I tried my hand at defining my own chapter title formatting. The idea is to align the chapter title to the right (a chapter always opening on an odd page) and underline it with a ...
5
votes
1answer
16k views

How to change section/subsection font size? [duplicate]

I'm writing a paper that requires the section titles to be in 12pt font, I can get the title to be in 12pt using: \section{\fontsize{12}{15}\selectfont Introduction} but the section number does not ...
3
votes
3answers
183 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
905 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
573 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
228 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
323 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
241 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
795 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
212 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
150 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
438 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
125 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
376 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
254 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
601 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
544 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
509 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
272 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
157 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
267 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
307 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
412 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
185 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
326 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
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 ...
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 ...
2
votes
1answer
224 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
144 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
478 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
230 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
558 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
219 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
177 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
147 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
968 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
224 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
280 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
666 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
232 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
661 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 ...