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

learn more… | top users | synonyms

1
vote
0answers
14 views

section spacing from top of page vs normal text spacing

I'm trying to change the distance from the top of the page that text starts appearing when I use \section, so that it matches the distance when I just use regular formatting (not in a section). Below ...
2
votes
2answers
35 views

How to prevent page break between two section headings with color formatting using titlesec?

Description This question is based on almost the the following question, How to prevent page break between two section headings. The answer given there explains that the problem is with \color, which ...
2
votes
1answer
27 views

Using titlesec with mwrep class

I use mwrep class in my document and try to customize section titles with titlesec. It works OK for sections and subsections but it has no effect for chapters. Here I read that "The mwrep class uses ...
1
vote
1answer
11 views

inline uppercase chapter title

Hi I want to put the chapters title in one line and uppercase, I found this code that makes it inline but how ti make it uppercase too code: \usepackage{titlesec} \titleformat{\chapter}[hang] ...
2
votes
2answers
97 views

What is the proper way to change the section title font in LaTeX?

Suppose I wanted to use a different font for a title then the body text in LaTeX (pdflatex). (For example, if I wanted to use a slightly fancier font for titles, or a sans-serif one.) How would I do ...
5
votes
1answer
117 views

How to make headers uppercase without breaking references in latex?

I am trying to make section headers uppercase. I tried different packages (titlesec and sectsty) but always get broken references. \documentclass[english]{article} \usepackage[T1]{fontenc} ...
3
votes
1answer
43 views

Redefining commands in Latex (\section in particular)

A few days ago I asked a question about how to redefine the \section command to be able to write content just after the head of the section with no line breaking: Redefining \section command (I ...
2
votes
1answer
34 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
1
vote
2answers
98 views

Redefining \section command

I'm writing a draft of my notes with Latex. They are basically definitions related to a particular concept from different sources. Therefore I have used the command \section to highlight the concept ...
1
vote
1answer
78 views

Chapter formatting and spacing

I use report document class and the thing is that I would like to change the chapter both in format, letterspace and place on the page. Right now a chapter look like this: I want it to look like ...
1
vote
1answer
38 views

Make subsection text appear left aligned within the defined left margin?

How can I make subsection text appear left aligned within the defined left margin, with its "own" margin of 0.75in (instead of 3.0in)? I believe the package for the task is titlesec but I'm open to ...
3
votes
1answer
67 views

LaTeX: How to change size only with titlesec

I need to change the font size of my \subsection headings. Although when I use the \titleformat{\subsection}{\Large\bfseries}{\thesubsection}{0.7em}{} command, the font of the heading is also ...
1
vote
2answers
48 views

Reduce white space above chapter title, and reduce space between title and text, for unnumbered chapters

How can I reduce the white space above the chapter heading? How can I reduce the space between the heading and the text? I want to be able to do this for selected chapters only, or after a given ...
4
votes
1answer
113 views

Starting counter from 0

I'm working on a sheet of exercises using LaTeX. I've set up my sections to look like Exercise # | <title>. How can I force the section counter to start from 0, so that I can have an exercise 0 ...
0
votes
1answer
25 views

Latex reference obtaining a section including color

I have the code: \definecolor{amaranth}{rgb}{0.9, 0.17, 0.31} \titleformat{\section} [runin] {\color{amaranth}\sffamily\filright} {\thesection} {0.5em} {} ...
5
votes
1answer
36 views

Stop page break between title and contents

I am using the article class in LaTeX, and I want a page break between sections, so I added the following to the preamble: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage} However, I ...
1
vote
2answers
63 views

Width of section name within a rectangle using titlesec

I just stumbled upon this question about fancy heading. I want to know if there is a way for the rectangle to cover the section name no matter how long or short it is? \documentclass{article} ...
0
votes
0answers
45 views

Customizing a title section with titles package

Looking at the titlesec documentation I found a example suitable for me, so I made a little modifications and get something like this with the following code \documentclass{article} ...
1
vote
1answer
35 views

Tracking in chapter titles with titlesec

I've been trying to add tracking (letter spacing) to my chapter titles with titlesec, but to no avail. I'm using fontspec and XeTeX, so microtype isn't available to me. Another post said this can be ...
3
votes
1answer
25 views

Computation of size in titlespacing

Consider the following example: \documentclass[11pt,a4paper]{book} \usepackage{lipsum} \usepackage{titlesec} \newlength{\textsize} \makeatletter \setlength{\textsize}{\f@size pt} \makeatother ...
2
votes
1answer
31 views

Adding chapter prefix for Appendix

I am working on a larger report and need help with chapter naming for the appendices. I want to add "Appendix" as a prefix to the chapter numbering for the appendices in my document in the actual ...
3
votes
2answers
26 views

Titlesec commands creating “bookmarks” on file structure

I used the titlesec package to customize my sections. When I use the commands \titleformat and \titlespacing, a "bookmark" is created because I wrote \section inside those commands, which according to ...
2
votes
1answer
44 views

dynamic title size using titlesec

Is there a way to dynamically size titles as part of a \titleformat (from the titlesec package) definition? I'd like to scale titles of different lengths to be the same width (relative to \textwidth) ...
1
vote
1answer
31 views

titlesec: different formats for numbered and unnumbered sections/chapters

I'm not sure if this is too minimal. (In the real document the problem appears at the bibliography, table of contents and \chapter*) \documentclass[a4paper, 11pt]{report} \usepackage[utf8]{inputenc} ...
1
vote
2answers
46 views

Change color of numbers of sections

I want to change this box in which I have the section number to black, which I can do. But then the text is the same color and illegible. I need to make it white. I tried this but it didn't do ...
3
votes
1answer
16 views

Titlesec and \ref do not match

I am using the titlesec package to modify how the sections are numbered. The problem is that when I label it and refer latter, the reference will use the standard section number. Here is a minimal ...
0
votes
2answers
101 views

TOC and header versions of section titles (titlesec interferes with fancyhdr)

I am working on a long document with many chapters, using report class. I would like to have three different versions of certain section titles (long for document, medium for TOC, and short for ...
0
votes
1answer
93 views

Put the § symbol before each section number [duplicate]

I'm writing a document (article class). I'm using the clever reference package to crossreference sections, and I have modified the references so the \cref{label} produces, for example if it's section ...
5
votes
3answers
132 views

How do I redefine the paragraph style midway through the document (and then go back to the default)?

I prefer to build my bibliography manually because I'm finicky about the formatting, and I need each bibliographical entry to have a hanging indent and an empty line after it. I'm doing fine with this ...
2
votes
1answer
69 views

Fancyhdr - No “Chapter” Word, but part number

I am having trouble defining my headers with the fancyhdr package. Here is what I want : - on the left page, on the left side : partnumber.chapternumber. Chapter Name - on the right page, on the right ...
0
votes
1answer
39 views

Renumbering chapter after part, correct ref, ToC and chap header aspect

The title may seems unclear. I have a document with several parts, including several chapters. I want the numbering of the chapter to be reset after each new part (easy) BUT : - I want the header of ...
2
votes
2answers
71 views

How to convert titlesec code to scrlayer-scrpage code

In my LaTeX code I use the actual version of the KOMA-script bundle and its documentclass scrbook. In this regard I wonder how to convert code which uses the package titlesec to code which should use ...
1
vote
2answers
58 views

Changing space before chapter without titlesec package

I am sorry if this is a repeated question, I could not find anything similar on the forum search. How to adjust the space before the chapter heading without using titlesec package. I tried this code ...
8
votes
2answers
75 views

Converting “section” into “\section” to pass to the titleformat command

The \titleformat command of the titlesec package is invoked in the following way: \titleformat{\section}{<a few formatting options>} \titleformat{\subsection}{<a few formatting options>} ...
2
votes
2answers
84 views

\titlesec and chapter&section missing zero error

I've looked and looked on here for a possible answer but i'm coming short. I even referenced the titlesec .pdf instructions and still no clue. I'm having an issue with my \chapter in the main body, ...
2
votes
1answer
29 views

Problem with pagebreak in titlepage

I am trying to make a first page template. At this template I want a box at the bottom of the page with some text, but I can not get TeX to put it at the bottom, but rather it is moved to the next ...
0
votes
0answers
58 views

avoid hyphenation in chapter title using tikz and titlesec

[This question is similar to the one here, but the solutions given there do not work in my context] In a (fairly complex) book I'm using titlesec and tikz to produce fancy chapter headings, basically ...
0
votes
0answers
27 views

72 pt. spacing before Section heading [duplicate]

I'm trying to add a 72 pt. space before the section heading. I do not only want the 72 pt. between paragraphs but basically every section should start at a new page with a 72 pt. spacing before it. ...
3
votes
1answer
67 views

Do I need titlesec or is fncychap enough for doing the following?

i would like to change the "chapter" style of the documentclass "report" to read something like 1. Introduction in stead of Chapter 1 Introduction Can anyone help me with this? Do I need ...
2
votes
1answer
31 views

Hide titleformat in a macro when [explicit] is loaded

This is a follow-up question to: Different titleformat style for different numberless chapters I have something like the following macro: \titleformat{\chapter} {\normalfont\Huge\color{blue}} {} ...
4
votes
2answers
72 views

Start new page with each part

How can I automatically start a new page with each part? I found this answer, which work nicely for section breaks, but was unable to customize the command to works with parts. I looked the titlesec ...
1
vote
1answer
64 views

Change section command in article

In the document class article how do I change the command \section to behave exactly like the command \chapter in the document class book? i.e. write Chapter # and then the title and also leave some ...
4
votes
1answer
71 views

titletoc: getting rid of empty line at TOC start

Consider the following simplified TOC style (yes, the real-life version does look better than this MWE). Thing looks okay except for the fact that the first TOC line lies one line below where it ...
2
votes
1answer
62 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
3
votes
1answer
94 views

Why can't I change the title entry font of TOC using \cftsecfont?

Below is the MWE: \documentclass[a4paper]{article} \usepackage[adobefonts]{ctex} \usepackage{tocloft} \usepackage{titlesec} \begin{document} \title{Hello, \LaTeX !} \author{kk@latex.com} ...
0
votes
1answer
49 views

Thesis formatting according to given conditions

I want to set these properties in my thesis. Chapter heading :All Capital—14 Font size, Bold Section heading:Title case-12 Font size, Bold Sub-section heading :Sentence case-12 Font size, Bold ...
1
vote
1answer
35 views

How to set chapter layout to default?

I changed my chapter layout using the package "titlesec". Logically, the new layout impacts the heading of the table of contents and the bibliography as both are classified as "chapters". Is there a ...
0
votes
1answer
77 views

How to customise lower level heading titles when using the memoir class? (Or: is titlesec still incompatible with memoir?)

I'm using the memoir class I'm trying to customise the appearance of lower-level headings. In one case, what I want to accomplish is very simple: adding a period at the end of a heading title (for ...
1
vote
0answers
37 views

Titlesec problem with hang indent

I am trying to edit my subsection format with titlesec package. I'm using a runin style and adding a \hangindent to try and get the words following but the downside to that is when section numbering ...
1
vote
0answers
44 views

Formatting Appendix Title

I'm having a heck of a time trying to get the \chapter titles in my appendix section formatted correctly. My goal is to make it look something like this : I am able to change Appendix to Annex by ...