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

learn more… | top users | synonyms

1
vote
0answers
29 views

Margin adjustment for section text

I've been messing with my margins, section dimensions, geometry package dimensions, and titlesec settings to get this layout (and have, so far, failed): HEADER LEFT HEADER ...
2
votes
0answers
25 views

How do I align the first section title with the top of the first column when using multicol?

I'm using multicol for a two-column layout so I can have column balancing/equalizing at the end of every chapter. I'm also using titlesec to format my chapter/section/subsection titles. I've been ...
4
votes
1answer
60 views

Trouble setting header content conditionally with titlesec and extramarks

I'm writing a commentary on a Classical text and trying to imitate many of the layout choices of the Cambridge Greek and Latin Classics series. In particular, I've been working on having the header ...
3
votes
1answer
88 views

TikZ&Titlesec: complicated part design

I am trying to do the design as shown on the picture below. The background includes two layers: vertcal line pattern and gradient layer where is lower color is transperent and upper color is white ...
3
votes
2answers
151 views

Replacing \fancyhdr with \titlesec in complicated design documents

Thes page on the picture below (from this post) has been created within \fancyhdr package, but I need to something like this keeping incompatible \titlesec usage and using twopage layout. Really, I ...
2
votes
1answer
52 views

Display \parttitle in header\footer with titlesec package

I want the \parttitle displays in the header, however, as you see on the picture below, this command has been ignored: I tried solutions from there questions: How to get part name in LaTeX ? ...
1
vote
1answer
62 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 ...
0
votes
0answers
41 views

titletoc: strange output

Using the titletoc and titlesec packages and creating the specific pagestyle, I got the strange output as shown on the pictire below. The MWE is... \documentclass[a4paper,twoside]{article} ...
2
votes
1answer
25 views

titlesec-package prevents TOC from showing full subsection number

I'm using titlesec for customizing section titles. The problem is, that it prevents TOC from showing full (sub)subsection numbers. This applies to referring to section labels as well: ...
3
votes
1answer
26 views

How do I avoid `sectsty` removing a line break when using `paragraph` as a subsubsubsection

I am trying to use the first bit of code in this answer to use paragraph like a subsubsubsection. The problem is that there is a conflict with sectsty - without this the output is exactly as in ...
7
votes
1answer
42 views

Two footnotes in a heading, only one is displayed at the end of the page

I'm adding two footnotes to a section heading: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lipsum} ...
5
votes
1answer
82 views

confine heading in tikz node using titleformat

I'm using a quite fancy style for my chapter heading, i.e. \documentclass[12pt,open=left]{scrbook} \usepackage{tikz} \usepackage{pgfplots} \usepackage{titlesec} \usepackage{titletoc} ...
3
votes
1answer
53 views

Remove both number and chapter but keep in TOC

I am using \documentclass{book} with both packages tocloft and titlesec. I can't figure out if there is a way to remove both numbering and 'Chapter' (e.g "Introduction") from my \chapter's, but keep ...
0
votes
0answers
41 views

Prevent titles at bottom of page—sometimes

I have a book that contains both prose and poetry. I don't want a poem to start too close to the bottom of the page. That's what the nobottomtitles option of titlesec is for. I don't want this to ...
0
votes
0answers
24 views

\titlesec mesh up with bookmark anchor in star-section

When \titlesec is enable, the bookmark anchor to \section*{text} is shifted one line. How can I redifine \titlesec so it does not add a line in *-mode? \documentclass{book} \usepackage{titlesec} ...
3
votes
2answers
113 views

How to have colored headings with one color per chapter

I'm typesetting a proceedings-style book that contains articles in their chronological order. Since the articles are also categorized, each category is assigned a color and the the chapter styles are ...
3
votes
1answer
48 views

Different titleformat style for different numberless chapters

I want each numberless "chapter" page to have a different style for the title. Please see: \documentclass{book} \usepackage{titlesec} \titleformat{\chapter}[display] ...
2
votes
1answer
54 views

What do I tell titlesec to get default values?

I'm making a style package for my student union, changing to our official fonts and adding other convenience methods. I've declared a main (serif) font and a title (sans) font family, and I want to ...
1
vote
0answers
32 views

How to match vertical alignment of titlesec with tocloft?

I want to vertically align the Contents title including the horizontal rules (using tocloft) with the Introduction chapter title (using titlesec). However, I am confused as both packages seem to ...
1
vote
1answer
29 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
64 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 ...
3
votes
1answer
47 views

Vertical space within chapter label using titlesec

I am required to have a chapter heading formatted in the following way to obey thesis formatting rules at our institution: CHAPTER Chapter Title The vertical space between "CHAPTER" ...
0
votes
1answer
53 views

How to update \sectiontitle and \chaptertitle with \putbib and \bibliography?

Pagestyles are defined with titlesec. A two-sided template is used, and in the main pagestyle \chaptertitle is shown in the header of even pages and \sectiontitle in the odd ones. natbib is used to ...
3
votes
1answer
24 views

Tab stops and consistent indentation in headings

I'm trying to create a documentclass that has some unusual headings and indentation. My goal is to have the width of chapter/section number + whitespace equal to the text \leftskip 2.5cm. I get an ...
2
votes
2answers
63 views

Match white space above chapter title to top margin as defined in geometry package

I would like to change the position of chapter titles, specifically the amount of white space above them. I am using the book class and defining margins using the geometry package. The chapter command ...
0
votes
0answers
49 views

Formating section headings

For a journal, I have to format the headings as followed: Title, subtitles, and text subheadings should be chosen for succinctness and interest. Primary (an "A Head") and secondary (a "B Head") ...
2
votes
1answer
60 views

Vertical color background of section title

Good night. It's my problem about gradient colored section title, with vertical length. It's codes are, \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
2
votes
1answer
36 views

Titlesec creates entry in ToC for a starred part

I have the following code, creating section titles starting with "Section [number].", exactly as I wish: \documentclass{article} \usepackage[hidelinks]{hyperref} \usepackage[explicit]{titlesec} ...
3
votes
1answer
31 views

Glossary heading not showing up with amsart

after getting a great solution to my problem, amsart with table of contents with "to" and "from" hyperlinks , I've now spent over a day - which is why I keep a template usually :) ...
3
votes
1answer
43 views

Wrong hyperref link using biblatex and titlesec

I'm using biblatex together with titlesec (yes, I know that they don't work well together ...). When I include the titlesec-package the hyperref bookmarks link to the wrong page. Consider the ...
0
votes
0answers
37 views

New section using titlesec and titleclass

I'm trying to define an Appendix section with titlesec but I get an error every time I try to use \appendix . My code is \titleclass{\appendix}{straight} \newcounter{appendix} ...
2
votes
1answer
61 views

How to insert a paragraph before the chapter title?

I need to include several lines before the chapter title for some (not all) chapters. A new chapter always starts with a new page, how to realize the following layout for certain chapter while other ...
0
votes
0answers
26 views

How can I get unnumbered chapters in the center of headers?

With titlesec, how can I include unnumbered chapter titles in the center of headers?
5
votes
1answer
48 views

Section title with runin and KOMA class?

I would like to have section titles with runin so that there is no newline after the section title. This can be done with \documentclass{article} \usepackage{titlesec} ...
3
votes
1answer
74 views

titlesec formatting

\documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in,showframe]{geometry} \usepackage{titlesec} ...
3
votes
0answers
65 views

I can not modify the chapter in latex

Sorry for my English. Hello, I want to get something like this: Latex My level is not so high to do so. I tried to do it with the following code, but not sure it will help some. He had thought ...
0
votes
2answers
57 views

Custom section in conflict with TOC

I adapted this answer to make a custom section I need. My intention is that it looks something like the second heading from this image: So the numbering must be made using (\Alph) and it must be ...
2
votes
2answers
50 views

Page breaks inside titlesec section headings

I use LaTeX to generate contracts and agreements. In most cases, it works okay but, every so often, it causes problems with pagination; specifically, if I have too many subsections without an explicit ...
2
votes
0answers
87 views

Using Titlesec, titletoc, and titleps together affects the command \tableofcontents

Writing a book of probability in arabic, I want to use the titleps package for different beautiful headpages, in my files where I use titletoc for partial table of contents. All was good until I used ...
4
votes
2answers
106 views

Different numbering format between toc and body

To complete my memory, I would like to display different numbering format beetween my section in the body of my document and the one in the toc You will find just below my MWE : \documentclass{book} ...
3
votes
2answers
54 views

Environment begin or end in Heading definition

I'm trying to include an automatic \end{multicols} and \begin{multicols}{2} before and after my Chapter headings. (The document is 2 column, the chapter headings are meant to be across the page.) ...
4
votes
1answer
121 views

Problem with titlesec and appendix

I am using the titlesec package and the code under the usepackage to make parts appear on the same page as chapters, not on an individual page. Sorry I don't remember where I got the code from, but it ...
4
votes
1answer
45 views

Don't separate section heading from its line

I have my sections format defined with titlesec like this: \documentclass{report} \usepackage{xcolor} \usepackage{titlesec} \definecolor{shadecolor}{HTML}{A3B9FF} ...
2
votes
0answers
36 views

Having the same amount of space with and without multicol when using with titlesec and itemize

I am trying to use multicol and itemize to spread a list over several columns. I am also using titlesec to style my headings. One part of my document uses multicol and the other does not and both have ...
1
vote
0answers
53 views

Missing font shapes

I have a problem with missing font shapes. I'm working on lecture notes and made some corrections to a very large latex document, so I did not set up everything by myself. Now I encoutered the problem ...
0
votes
1answer
50 views

Defining a header style for acknowledgements (saying no to Chapter*{} !!!)

I'm using \documentclass{book} and I have also redefined my \chapter and \part heading styles. However, these styles do not apply to the heading of the Acknowledgements page (the word ...
5
votes
2answers
214 views

How to have titlesec like behaviour for a Koma Script

I am using \documentclass{scrartcl} which I believe is a Koma-Script type. I now wish to have each \section{} start in a new page, similar to what \usepackage{titlesec} offers, as shown on this ...
0
votes
2answers
70 views

How to reduce spacing between titles of chapters?

I want to reduce spacing between titles of chapters. What changing should I do in the following example? \documentclass[12pt]{report} \usepackage[dvipdfm]{graphicx} \usepackage{amsfonts} ...
1
vote
0answers
42 views

New class prevent XeLaTeX to compile the section title

I created a new class, called capitulo to prevent a page break with every chapter. But when I activate those code lines, the section number won't print. Here's a MWE: ...
1
vote
1answer
57 views

Too much vertical space after long section title using titlesec

I'm using titlesec to change the style of my section titles. Sometimes, when the title is long, but just short enough to fit on one line, some extra vertical spaces is add. The following MWE ...