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

learn more… | top users | synonyms

4
votes
1answer
595 views

\normalsize for \section, \subsection and \subsubsection

I tried to change the font size of titles using titlesec, I want all my document in normalsize, and I have an error. Please help me. The error description is: Runaway argument? ./Thesis.tex:13: ...
0
votes
2answers
165 views

Avoid chapter pagebreak in twocolumn document

It took me a while to locate the error, but here's a MWE. I am using my own class, provided below: \documentclass[fleqn,10pt,twocolumn]{MWEclass} \usepackage{lipsum} % Required to insert dummy text ...
4
votes
2answers
223 views

same space between number and text in chapters/sections

I have been googleing for several hours now, my goal is to have the same indent for each chapter/section. Meaning there is the number but every chapter starts for example at 3cm from the left margin. ...
10
votes
1answer
142 views

Is it possible to embed section titles within subsections?

I would like to to do the following \section{Animals} \subsection{Mammals} \subsection{Birds} and have it result in 1 Animals 1.2 Animals>Mammals 1.3 Animals>Birds I have tried to do this ...
2
votes
1answer
105 views

titlesec errors out with res documentclass?

\documentclass{res} \usepackage[compact]{titlesec} \begin{document} \end{document} gives ! Argument of \section has an extra }. error and few other errors. Is there anything wrong ...
8
votes
1answer
435 views

Positioning of the chapter number in the margin note space

How can I fix the position of my chapter number? I would like to put it right in the middle of the space for the notes, and aligned with the first line of text of the chapter. I am undecided for the ...
9
votes
2answers
191 views

Placing a bar/graphic before the section headers

I've used the titlesec package to produce section headers like this: Click for a full-resolution version. Using this minimal code: \documentclass{article} \usepackage[compact]{titlesec} ...
3
votes
1answer
50 views

Issue wrapping a titlesec titleformat in a newcommand

I have a long document where I change the style of subsection headings in different parts of the document. I'm using titlesec with the explict option as it is necessary for the way I'm formatting ...
1
vote
1answer
178 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
208 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 ...
3
votes
1answer
325 views

How to change horizontal spacing before section number

How do i change the small horizontal spacing that is present before a section number? I have used the command \titlespacing from package titlesec to set the left spacing to 0, but it is still ...
5
votes
2answers
180 views

Issue with titlesec page styles and appendix in book class

I'm using titlesec to set my page style in a book class. If I include an appendix, the header corresponding to the first chapter is "Appendix 1" instead of "Chapter 1". \documentclass{book} ...
1
vote
0answers
54 views

Figure between title number and title [closed]

I'm using titlesec package and \titleformat command in display shape mode. (Unfortunately I am forced to do it, it's the format required for MSc thesis in my university...). The command in my .cls ...
3
votes
2answers
139 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
82 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
132 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
224 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
149 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
318 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
172 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
139 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
339 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
1k 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 ...
6
votes
2answers
3k 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
185 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
389 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:
8
votes
2answers
19k 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
440 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 ...
1
vote
1answer
510 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 ...
3
votes
1answer
1k 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
33 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
79 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
308 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
544 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
701 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
232 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
489 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 ...
7
votes
1answer
24k 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
221 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
1k 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
760 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
296 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
395 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
288 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 ...
19
votes
1answer
990 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
245 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
168 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 ...