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

learn more… | top users | synonyms

3
votes
1answer
116 views

Titlesec and Babel incompatibility?

I cannot find a way to change chapter style with babel included (for hungarian language). Here is the example: \documentclass[a4paper]{report} \usepackage[magyar]{babel} \usepackage{titlesec} ...
3
votes
2answers
81 views

Don't want sections to have titles/headers [duplicate]

If you use a default section in an article like this: \section{something} Lorem ipsum dolor sit amet you get the "1 something" in the toc. And your page looks like this: 1 something Lorem ...
3
votes
1answer
121 views

titleformat has no effect!

I have tried to specify the color for my section as shown here, but it has no effect. What am I doing wrong? MWE: \documentclass[10pt,letterpaper]{article} \usepackage{lipsum} \usepackage{multirow} ...
4
votes
1answer
194 views

Same vertical spacing for chapter and chapter*

I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter. I use titlesec and the styling of the chapter headings is this: \documentclass[10pt,a4paper,openany,oneside]{book} ... ...
3
votes
2answers
138 views

Section command with default spaces between title and rule

Ho can I make a section command that have the same spaces between the \titlerule and the title of the original \section command? The overall look must be equal to the original \section command. So, Is ...
3
votes
2answers
280 views

Alignment marginnotes

I am trying to write a report for Uni, where I need something like what marginnotes does. The problem is I would need two different margins on the left side of the page. One for the chapter or ...
4
votes
1answer
63 views

Is there any way to put the section numbers after titles like “axiom”, “theorem”, etc?

The normal LaTeX input and output would be something like \subsection{Theorem (Fundamental Theorem of Calculus)} 1.1 Theorem (Fundamental Theorem of Calculus) Is there any way to use a ...
5
votes
1answer
161 views

titlesec titlemarks not working with pdfcolparallel

As you can see from the screenshot the numbers showing the verse locations in the titlemarks only show the very last values which were set. If you comment out the line \usepackage{pdfcolparallel} and ...
4
votes
1answer
2k views

Chapter title alignment with titleformat

I am trying to typeset a title with titleformat as in the following example: I like the overall result, but when the title wraps around it is not left-aligned. Is there any way to indent the second ...
4
votes
1answer
123 views

Bad cross-reference using titlesec

When I define two new level using titlesec, the reference doesn't work correctly. This is an example: \documentclass{article} \usepackage{titlesec} % First level ...
4
votes
1answer
232 views

how to add number to the title of sections and subsection using the titlesec package

I am using the titlesec package but the numbering of section and subsections disappeared. I need to retrieve it. my code is ...
3
votes
2answers
961 views

The problem with the command: titleformat it is important

This is my first post here. I am using a few commands and packages to make the titles behave according to my thesis specifications but when I used the \titleformat I get an error: ! Package ...
5
votes
2answers
2k 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}{} ...
0
votes
1answer
173 views

modifying the page header

This is a MWE \documentclass[paper=a4,10pt, twoside]{scrbook}% \usepackage{tgtermes} \usepackage[titles]{tocloft} \setcounter{tocdepth}{3} \makeatletter ...
5
votes
1answer
345 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:
4
votes
2answers
12k 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 ...
3
votes
2answers
355 views

\clearpage after every subsubsection

I'd like to clear the page at the end of every \subsubsection. I tried \usepackage{titlesec} \newcommand{\subsubsectionbreak}{\clearpage} But this appears to force a \clearpage at the start of ...
0
votes
1answer
370 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 ...
2
votes
1answer
940 views

\titlespacing* defaults using the compact option

Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the ...
1
vote
0answers
30 views

Latex: conflict titlesec and tikz packages [duplicate]

I am using the IEEEtran class and I also call in my preamble the titlesec and tikz packages. If tikz is not called my code runs fine. Otherwise, (when calling the tikz package) I am given this error ...
4
votes
1answer
74 views

Using \toptitlemarks and \bottitlemarks with any counters

\toptitlemarks and \bottitlemarks don't seem to work with random counters: \documentclass[paper=a4,pagesize=pdftex]{scrbook} \usepackage[pagestyles]{titlesec} \usepackage{lipsum} ...
4
votes
1answer
262 views

New titleclass not counted in the table of contents

The following defines a new titleclass which I would prefer not counted in the table of contents defined. How can this be achieved? \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} ...
5
votes
1answer
461 views

Spacing in \chaptertitlename

Consider the following MWE: \documentclass{book} \usepackage{titlesec} \usepackage{lipsum} % just to generate text for the example \usepackage[tracking=smallcaps]{microtype} ...
0
votes
1answer
549 views

fancy heading … \section{} titles disappears

By combining the next two questions-answers Fancy chapter headings and Section title gradient . I have this effect. The problem is that the name of \section{} disappears. What is wrong? ...
1
vote
1answer
212 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} ...
3
votes
1answer
423 views

Custom chapter title protruding in left margin

Based on this answer, I tried my hand at defining my own chapter title formatting. The idea is to align the chapter title to the right (a chapter always opening on an odd page) and underline it with a ...
5
votes
1answer
17k views

How to change section/subsection font size? [duplicate]

I'm writing a paper that requires the section titles to be in 12pt font, I can get the title to be in 12pt using: \section{\fontsize{12}{15}\selectfont Introduction} but the section number does not ...
3
votes
3answers
192 views

Double Names being included in Table of Contents

I have a final report that I am writing in LaTeX. I have a code to make the section headings appear in the center of the page (thanks to Jubobs): \titleformat{\section} ...
5
votes
2answers
943 views

extra } when use titlesec package

In the .tex file, I want to use the package titlesec. But there is a error: ! Argument of \subparagraph has an extra }. Is there some simple method to fix this? The code is: ...
3
votes
2answers
595 views

Section title with subtitle

I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
1
vote
1answer
239 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 ...
3
votes
1answer
3k views

titlesec and \section* in \titleformat

I use \titleformat (titlesec package) to make some fancy headings in my documents. But I did not find a way to know, in the \titleformat specifications, if the section is made with a \section or a ...
4
votes
1answer
334 views

Multiline title vertical alignment using classicthesis and arsclassica

I would like to align the 2nd line of my title to have the same baseline with the chapter number. What I have now is , but I would like to have instead. I found that the tweak in How to get ...
6
votes
2answers
257 views

write to back page of part

I have defined (using koma-script), that chapters only start on the right side. The same applies to part pages. So far this is ok. But now I want to insert a contents list (using titletoc) on the ...
18
votes
1answer
835 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
229 views

Page number in the margin and separator

I want to produce this kind of header. My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
2
votes
1answer
155 views

Transfering Style of Sectioning-Titles to TOC-, LOF-, LOT-Titles

This is a continuation of my last (answered) question: I want to style the Title of TOC, LOF and LOT exactly the same as the Sectioning-Titles. Problem is that they (a) start "higher" than normal ...
5
votes
1answer
463 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 ...
2
votes
1answer
129 views

Make the titles centered using the titlesec package

I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
2
votes
1answer
391 views

Titletoc and Titlesec in just some chapters

I have a twocolumn document and I should insert the minitoc in the first chapters with titlesec and titletoc. I read the answer to Customize minitoc; however, if I change the \titleformat before ...
6
votes
1answer
266 views

Why do I need \newrefsegment when I already specify refsegment=section?

The following works well and shows exactly what I want. I am just wondering about this: Why do I have to use \newrefsegment, if I already specified refsegment=section? I expected everything to work ...
2
votes
1answer
645 views

how to color the header's bottom line or footer's upper line?

The title is self-explanatory. In my document's current state, I get this rendering result after compiling with XeLaTeX : Here's a MWE of which packages and commands I use to obtain my current ...
4
votes
2answers
587 views

Heading number in margin using titlesec and/or komascript

Using titlesec and/or komascript how do I format all headings so the number is left aligned in the margin, the title to the right, with a horizontal rule underneath it all (from margin to text width ...
16
votes
4answers
526 views

Using fixed space aroung headings to get text in sync with baseline grid

In order to make my text stay in sync with the baseline grid, I've set the vertical spacing before and after \section headings to integer multiples of \baselineskip (using the titlesec package). A ...
2
votes
1answer
282 views

Special chapter title formatting

Using the book class. I would like to have chapter titles that look like this: | CHAPTER ## | | Chapter Title (italic) | Can titlesec do this?
1
vote
1answer
162 views

How do I hide “Chapter 0” in this custom style when using a numberless chapter?

Everything works perfect when I use \chapter{chaptername}, but I noticed that my table of contents and other similar non-numbered chapters have a "Chapter 0" in my header. \titleformat{\chapter} ...
0
votes
1answer
279 views

\titleformat does not seem to work when used within a class file

The following block of code doesn't seem to do anything when I define it in a custom class. But when I use the class but put this block in my preamble, it works as expected. \titleformat{\chapter} ...
4
votes
1answer
311 views

Two-line spanning number in chapter title

I try to have the chapter's number in my document twice as big as the title on the left and the two-line chapter title on the right. The number should span two lines, so the two lines of the title are ...
4
votes
0answers
429 views

Trouble with titlesec

I've been using titlesec for quite some time now and want to "pimp up my style" ;) I've read How to change header to list first section on page and not last section and tried to adapt the code for ...
4
votes
1answer
189 views

Customize the section title with Latin Modern

I have created a thesis using mathptmx font. Now I would like to customize only the section title using Latin Modern Sans Bold. I used titlesec with \usepackage{titlesec} \titleformat{\section} ...