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

learn more… | top users | synonyms

19
votes
2answers
1k views

Incompatibilities between KOMA-Script and titlesec

This is a complementary question to About memoir and titlesec incompatibility. The titlesec manual states (p. 2) that the package [...] works with the standard classes and with many others, ...
28
votes
2answers
16k views

How to set the font for a \section title (and chapter etc)

How do I specify the fonts, and general font size, for the titles, chapters and sections in my document Update: I can see how my question is confusing. I use \section and \chapter etc. to organise ...
16
votes
1answer
18k views

Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...
17
votes
1answer
736 views

About memoir and titlesec incompatibility

In page 2 of the titlesec documentation, Javier Bezos writes titlesec works with the standard classes and with many others, including the AMS ones, and it runs smoothly with hyperref. ...
17
votes
3answers
29k views

Change size of section, subsection, subsubsection, paragraph and subparagraph title

I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text. I read about the titlesec package, but can't seem to find good example how to use ...
16
votes
2answers
685 views

How to extract the value from a pgfkeys style element

Lets say I have defined some style: \tikzset{mystyle/.style={inner xsep=2pt, outer xsep=10pt}} Given the name of the style: How can I later get the (possibly overriden) value of one of its element, ...
13
votes
2answers
11k views

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
11
votes
1answer
2k views

Section title gradient

Background Writing a manual using KOMA Script. The default fonts are perfect and should not be changed. Problem KOMA Script produces the following section outline: The desired outline looks ...
18
votes
1answer
703 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
4k views

Changing the section title style for an article document type

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. ...
10
votes
2answers
2k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
6
votes
2answers
7k views

How to set the chapter style in report class?

I want to set chapters to look like 'bigger' sections. Now in the report class I have a style like: Chapter 1 Introduction 1.1. Section What I want to achieve is: Introduction ...
6
votes
1answer
476 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 ...
4
votes
2answers
376 views

Chapters and verses of current page in header

This question is linked to my other titlesec question Does any one know how to add the current segment location at the top of any particular page. What I need is the reference at the top of a ...
2
votes
2answers
7k 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 ...
12
votes
1answer
4k 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
1k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
8
votes
2answers
5k views

Section and subsection colors using titlesec

Im trying to alter the colors on my section, subsection and subsubsection. I do so using the titlesec page: \titleformat*{\section}{\Large\bfseries\sffamily\color{red}} ...
21
votes
2answers
18k 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} ...
9
votes
2answers
537 views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
10
votes
1answer
646 views

Shaded box around multiline section heading?

I'm using LaTeX to write up an assignment which comprises a number of questions. I'd like to break up the questions from my answers by placing the section headings inside a shaded box. I'm relatively ...
9
votes
2answers
1k views

How to get multi-line chapter name with ClassicThesis package?

I'm using the ClassicThesis by Miede for writing my thesis, the support package is Arsclassica. It's a nice template, however I got a little problem with the Chapter name, some of them can be very ...
7
votes
4answers
2k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
5
votes
1answer
3k views

Center aligning chapters

I'm using the following to center align chapters. Heres the code \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}} And using \cchapter to format chapters. But the chapter heading for eg. ...
4
votes
2answers
3k views

Removing vertical space before chapter headings.

I have a problem that I can't seem to solve. Basically, I want my chapter headings to be at the same position relative to top of the page as the rest of the text. I've looked at numerous resources ...
9
votes
2answers
7k views

Format ToC for thesis

I apologize for the unspecified and broad question but I have no way to be specific. I'm looking to generate the TOC and List of Figure, List of Table according to the format required by my school. ...
7
votes
2answers
1k views

How do I reset paragraph numbering only after new chapter?

I'm writing a report that needs some annoying formatting. The \chapters and \paragraphs need to be numbered using arabic numbers. The paragraph numbering needs to be reset at the commencement of each ...
6
votes
2answers
595 views

How can I number paragraphs without higher level counters?

How can I redefine the paragraph counter such that instead of revealing all superior counters, it only reveals the paragraph counter. I assume this is possible with titlesec. I would like to have ...
4
votes
1answer
188 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. ...
4
votes
2answers
1k views

How can I get legal style indentation on section, subsection, subsubsec.. using titlesec?

So far, I've been trying code from various examples, and landed with: \usepackage(titlesec) \titleformat{\section}[block]{\bfseries}{\thesection.}{1em}{} ...
3
votes
2answers
356 views

How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error ! Package ...
2
votes
3answers
3k views

How to change the style of “Contents” heading?

Help me, please to make the style of "Contents" heading to be as \chapter{Le choix du thème}. Also I would like to put all headings a little bit higher and to fix the hyperref for "Contents" in pdf ...
7
votes
1answer
776 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] {} ...
7
votes
1answer
953 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}% ...
5
votes
1answer
388 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 ...
5
votes
2answers
3k 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 ...
5
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 ...
4
votes
2answers
1k views

titlesec versus titling; mangling \thetitle

I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the ...
2
votes
0answers
80 views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter ...
14
votes
2answers
3k views

Formatting a \paragraph to look like a \section

I'm writing a document that contains a rather deep tree of nested lists, and was wondering if how I would go about reformatting the \paragraph macro to format the text contained within it as a ...
11
votes
1answer
4k 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 ...
4
votes
2answers
287 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
10
votes
1answer
401 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
10
votes
3answers
1k views

Customize headers without fancyhdr

I have strange, old book chapter to rewrite in LaTeX. The most iritating thing is the header. On odd pages the header should consist of the section name etc. But the problem is that if the page starts ...
9
votes
2answers
603 views

Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
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}{ ...
5
votes
4answers
499 views

Color background of chapter headings

I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule. Currently they look like ...
5
votes
1answer
295 views

chapter style with lateral bar

Is is possible to have a different text/layout for the chapter page, and a vertical bar? What I want to achieve is something like this:
3
votes
2answers
5k views

Problems with fontspec and titlesec packages

I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used \documentclass[a4paper,10pt]{article} %A Few Useful Packages \usepackage{marvosym} ...
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 ...