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

learn more… | top users | synonyms

1
vote
1answer
78 views

Background package - \NoBgThispage different output

This question related with my oter two questions: Replacing \fancyhdr with \titlesec in complicated design documents White fields in ltjsarticle class The design, which has been reached in these ...
1
vote
3answers
1k views

titlesec messin' up my hyperref'd table of contents

Please consider the following multipage MWE, which contains page number restarting; made to compile with pdflatex test.tex: \documentclass[12pt]{article} \usepackage{geometry} ...
1
vote
2answers
100 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
70 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 ...
1
vote
1answer
96 views

Remove newline *before* \section

I have searched a lot to find an answer to this question, but I could only find how to remove a newline after \section (or \chapter). How can one remove the newline before \section, as defined by ...
1
vote
1answer
410 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 ...
1
vote
2answers
165 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 ...
1
vote
1answer
2k 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
285 views

How to change the formatting of chapter titles in the endnotes

I'm using pagenotes in the memoir class for a book. This is all the code I'm using that I think is relevant: \let\pagenote=\endnote \makeatletter \renewcommand*\prenotetext{% \list{}{% ...
1
vote
2answers
836 views

Use sections “inline”

How can I get the startpoints for my sections (see top part of MWE) as one inline text, similar to what can be done with the bottom part of my MWE? I need the sections since my title marks etc work ...
1
vote
1answer
454 views

is it possible to fake the amsart class format?

I often use the amsart documentclass. I like it because it is very compact (it also seems to be an industry standard in my area). What I don't like about it is that I'm not able to use kpfonts or ...
1
vote
1answer
81 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
41 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 ...
1
vote
1answer
82 views

Problems with \nameref{} not refering to the correct label x titlesec

I'm using hyperref package to do cross-referencing, but I'm encountering some problems and it is related to \usepackage{titlesec,titleps} , for instance: \documentclass[a4paper,12pt,twoside]{report} ...
1
vote
1answer
250 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} ...
1
vote
1answer
180 views

Why chapter label below the section label on new page even if by setting same spacing before title (use titlesec package)?

\documentclass{book} \usepackage[margin=0pt,papersize={50pt,70pt}]{geometry} \usepackage{titlesec} \titleformat{\chapter}{\Huge\bfseries}{}{0em}{} \titleformat{\section}{\Huge\bfseries}{}{0em}{} ...
1
vote
1answer
36 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
50 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 ...
1
vote
1answer
43 views

Latex document contains only \section{}?

I want to typeset a document with desired output such as: 1. blah blah ... blah blah .... 2. blah blah ... blah blah .... 3. blah blah ... blah blah .... That is simply numbered ...
1
vote
1answer
57 views

Text titles in table

I'm trying to universally adjust my text titles via titlesec package. Though I cannot use those titles (subparagraph in my case) in a table - there are excessive vertical gaps I'm not able to get rid ...
1
vote
1answer
85 views

tex4ht table of contents problems related to titlesec

I am having a problem that titlesec is making the sections disappear from the tex4ht table of contents. Here is the M(N)WE: \documentclass[10pt]{book} \usepackage{titlesec} \usepackage{titletoc} ...
1
vote
1answer
383 views

Titlerule and Wrapfig Interaction

Hey y'all I need some help! I would like to have my section headers have a titlerule underneath, but titlerule isn't playing nice with wrapfig. I'm using wrapfig and tcolorbox to make a sidebar, and ...
1
vote
1answer
167 views

\titleformat (titlesec) overfull vbox page break issue

I am currently writing a rule book using sections/subsections/subsubsection/paragraphs to break the rules down into parts. I am using the titlesec package to format the sections; however, the problem ...
1
vote
1answer
428 views

How do I put a short title in the header but a long title in the toc (clashing of titlesec package with sectionmark)?

The format of my thesis is as follows: \documentclass[oneside,11pt,english]{book} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{titlesec} \setlength{\headheight}{26pt} ...
1
vote
1answer
289 views

\titleformat is causing the section title to appear twice in Table of Contents

Here is how it shows: The section appears twice. Ideally I'd like it to be BACKGROUND AND RATIONALE with that dot and no bold. Here is the \titleformat that is causing this behavior: ...
1
vote
1answer
254 views

titlesec: \assignpagestyle problem with part

According to the titlesec documentation (section 3.5): You can assign a page style to levels of class top and page, as well as the default chapter with the following command: ...
1
vote
1answer
261 views

Titlesec: \ifthesection command issue with biblatex refsegment

I'm using titlesec to set my page style and biblatex to print a cumulative bibliography subdivided by chapter. There seems to be some problem with the \ifthesection command because in the following ...
1
vote
1answer
606 views

Strict \titlespacing without glue

Problem Description TeX seems to adjust the vertical space in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization ...
1
vote
1answer
287 views

Conflict between the packages titlesec and marginnote

In the following code, the use of the package titlesec modifies dramatically the formatting based on the package marginnote. The package titlesec is needed so as to use this. Is there one possibility ...
1
vote
2answers
2k views

Customizing Table of Contents Formatting

For the most part, the default formatting for the ToC, LoF, and LoT is fine. But I need to add an extra line (university's requirements for my thesis) between each numbered entry. In order to do this, ...
1
vote
1answer
849 views

Hiding chapter headings and including chapter name in section headings

I would like chapter names to not be printed but to appear in each section heading. For example: \chapter{Mychapter} \section{} \blinddocument \section{} Would print something like Mychapter 1 ...
1
vote
1answer
12 views

Easy mode of titlesec not working with beamerarticle

I can't get the "easy" mode of titlesec to work with beamerarticle. With the following example: \documentclass{extarticle} \RequirePackage{beamerarticle} \RequirePackage{titlesec} ...
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] ...
1
vote
2answers
57 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 ...
1
vote
1answer
37 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 ...
1
vote
1answer
40 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 ...
1
vote
1answer
90 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} ...
1
vote
1answer
41 views

linebreaking when using raisebox in section

How to break the line when using raisebox command in \section. My MWE is : \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{lmodern} \usepackage{graphicx} ...
1
vote
1answer
77 views

How can I access short section content to avoid repetition?

I'm making frequent use of short section names for styling. I want the short names to appear in page headers and the longer name only in the document itself. I have that worked out, but it requires a ...
1
vote
1answer
205 views

Using titlesec to have \chaptertitle and \sectiontitle in twosided report

I would like to customize the headers of my report. These should contain chaptertitle and sectiontitle. From here: Header not displaying correctly on chapter page due to subsection I have made an ...
1
vote
1answer
77 views

Indent entire section using only preamble

I heavily use org-mode in Emacs to create TODO lists with timekeeping, which has a handy export to LaTeX feature. The problem is that in order to get my exported LaTeX document to look right, I want ...
1
vote
1answer
317 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 ...
1
vote
1answer
678 views

Titlesec ruins Table of Contents formatting

I'm trying to use the titlesec package, but somehow section names in the \tableofcontents become overlapped with the TOC numbers and subsection names become improperly indented. Here's an example, ...
1
vote
1answer
324 views

Help understanding/debugging spacing around headings (and other places)

I am trying to get my headings set up to meet my university's thesis formatting requirement. I'm using the titlesec package because it has the ability to suppress the spacing before the second heading ...
1
vote
1answer
25 views

Titlesec shows in ToC

I use titlesec to show the writer and translator of each chapter of my book as follows: \documentclass[10pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage{titlesec} ...
1
vote
1answer
26 views

Change spacing before chapter title within frontmatter

I am using the report class for my dissertation, which requires 2 inch margin beginning at each chapter. I am using the following command: \titlespacing*{\chapter}{0pt}{2in}{1in} This works fine ...
1
vote
0answers
39 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
47 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 ...
1
vote
2answers
39 views

Include class numbering in TOC with a subclass entry when using titlesec and titletoc

I am trying to use titleclass to define two new classes : savoir and subsavoir. In the TOC, I would like to get something like this : Savoir 1 -- First knowkledge title Savoir 1.a -- First ...
1
vote
1answer
103 views

Classicthesis remove cleardoublepage after part [closed]

I am trying to remove the double page break after the start of each part in classicthesis v4.1. I believe I need to modify the following code on lines 376-381 of classicthesis.sty: ...