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

learn more… | top users | synonyms

1
vote
1answer
20 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
20 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
14 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
18 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
32 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
22 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
42 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
14 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
83 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
57 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
117 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
45 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
34 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
54 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
50 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 ...
7
votes
2answers
64 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
58 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
25 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
44 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
26 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
60 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
26 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
62 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
55 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
60 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
52 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
75 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
41 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
32 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
72 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
33 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
40 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 ...
5
votes
1answer
177 views

Chapter title page with a tikz mindmap image

This question is an extension of Visual table of contents using tikz mindmap or similar. Now, I would like to use the mindmap for a given chapter on that chapter page, to produce something like the ...
0
votes
0answers
43 views

Custom subsection without newline

I've applied solution Chapters and verses of current page in header into my bible style. It gives text like this In above solution each verse is created by \subsection in new paragraph. I want to ...
1
vote
1answer
78 views

Add parts titles to the LOF

I would like to add parts and chapters to the LOF. I can add chapters but the \apptocmd{\@part} doesn't work unless I comment \titleformat{\part}. Why ? I have found a workaround with ...
3
votes
2answers
119 views

Can someone walk me through how this command works?

I am trying to make it so that my chapters aren't labelled as 'chapter 1', 'chapter 2' etc. I just want it to have the number, with no 'chapter'. I want the word 'chapter' gone. A quick Google search ...
3
votes
1answer
61 views

How to replace the word “Chapter” for appendix items with “Appendix” in book using titlesec

% %-------------------------------------------------------------------------- % \documentclass[11pt]{book} % %-------------------------------------------------------------------------- % % ...
5
votes
2answers
79 views

Adding colon or dash after section

I changed the format of subsubsection to remove the line breaks after them using titlesec package and the command \titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection.}{3pt}{} ...
2
votes
2answers
124 views

Formatting and Styling of Headers using titlesec in scrbook-class

I'm trying to write a book in LaTeX with scrbook class. I'm not that experienced in typography with TeX, nevertheless I would like to give my chapter-headings a special style. I found a very nice ...
3
votes
1answer
89 views

How to create specific section style using titlesec?

I would like to create section style like in the attached picture, but I didn't find any way how to do it. Usually I'm using titlesec package for section style customizing. Is there any way how to ...
1
vote
1answer
72 views

Customizing titlesec-etoc (further question)

Referring to this discussion: Further titlesec-etoc customization, I've a further question. Consider the fine working code furnished to me by Gonzalo Medina: \documentclass[a4paper,11pt]{report} ...
3
votes
1answer
55 views

Further titlesec/etoc customization

I've the following code: \documentclass[a4paper,11pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{etoc} ...
0
votes
0answers
45 views

Add vertical space after section only if at top of the page (documents requiring titlesec)?

Sometimes one needs to change the vertical space after a given \section, but only if the section starts at the very top of a page. How could that be done automatically, when the document requires the ...
3
votes
2answers
111 views

List of Theorems and tikz overlay

Suppose you call \listoftherems from the thmtools package, and use titlesec package to modify appearance of chapter headings. Suppose further that in titleformat, you include a simple tikzpicture, ...
2
votes
1answer
78 views

titlesec with the explicit option messes up toc title

When using titlesec with the option explicit the toc title "Contents" is formatted using settings from the (where the explicit #1 parameter must be used). I think the MWE shows it all. %!TEX ...
2
votes
2answers
71 views

Titlesec: Redefinition of sectioning command leads to endless execution of latex

I'm new at TeX.SX and I hope I do everything correct. To avoid answers like "Why do you do this?" I'd first like to describe briefly what I want: I'm developing a class based on tufte-book, which ...
2
votes
1answer
54 views

Stacking section labels in left margin

I am starting to convert to LaTeX to do my homework for Math courses. I want to use sectioning to separate questions \section{5.3} \subsection{1} \subsubsection{a} and look something like this: ...
3
votes
3answers
152 views

How can I maintain the current page nodes for portrait when temporarily entering landscape mode in TikZ?

Question How can I keep the current page nodes aligned with the same physical corners of the page in a document where the main layout is portrait, but some pages with longtable are in the landscape ...
2
votes
1answer
75 views

How can I exclude a custom sectioning command from the table of contents?

Question How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra ...
4
votes
2answers
54 views

Preserving part of Chapter text “as is”, from becoming uppercase as per titlesec definition?

Having this MWE: \documentclass{book} \usepackage[explicit]{titlesec} \titleformat{\chapter}[block]{\filcenter}{}{0pt}{\MakeUppercase{#1}} \begin{document} \chapter*{This should be all Uppercase. ...