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

learn more… | top users | synonyms

5
votes
1answer
57 views

Change Sectional Skip Conditioned on Text Existing or not Before Sectional Division

I have a simple document layout with a main heading for the title, and the possibility of starting the first sectional unit (with a standard \section command) right after the title -- meaning, with no ...
6
votes
1answer
118 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
2
votes
0answers
120 views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter ...
4
votes
1answer
298 views

How to align the chapter number to the right?

Is there any way to align the chapter number to the right (without the CHAPTER word!) and the chapter title itself to the left? The chapter title must be on the line below the chapter number Here is ...
2
votes
1answer
167 views

Is it possible to have section titles inside paragraphs?

Is there a way to have section titles that are inside paragraphs, especially when using titlesec package? The runin style and others cause a paragraph break after the input line. What I am aiming for ...
6
votes
2answers
167 views

Spacing after Section

I have some subsubsection-titles that break the line and some that don't. The spacing after the title is different for those two cases. I am currently using so many packages and stuff (titlsec is one ...
5
votes
4answers
633 views

Color background of chapter headings

I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule. Currently they look like ...
8
votes
1answer
696 views

chapter style latex horizontal line

I want a chapter style like this: 1 ------chapter name------------- text text text text tex t text text text text t I have come this far: ...
8
votes
1answer
597 views

How to draw a gradient box around sections

How would you implement a margin-to-margin gradient using TikZ that is slightly larger than the text and that cover the whole lines of section text? The following code produced the results shown below ...
6
votes
2answers
818 views

How can I number paragraphs without higher level counters?

How can I redefine the paragraph counter such that instead of revealing all superior counters, it only reveals the paragraph counter. I assume this is possible with titlesec. I would like to have ...
3
votes
1answer
152 views

Section and subsection numbering

I'm new to LATEX language and now a have a problem with section and subsection numbering. I want to make my text look like this: 1. Sun 1.1 Moon 2. Bed I was tried to figure out how to make it, ...
9
votes
2answers
203 views

\section* no longer hides the section number

I wanted to add a background color to my sections, but by doing so \section* no longer works properly, ie, it now shows the section number when I want to hide it. Any ideas? Here's my code: ...
3
votes
2answers
288 views

titlesec \clearpage before a part

I'm using the titlesec package for my sectioning. I want to have a \clearpage before every \part however when I put it into the format field of ...
1
vote
1answer
153 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: ...
2
votes
2answers
119 views

Multiple sections on same level with diferent labels

This is a follow up to this question. I would like to have multiple subsections with different labels (in this situation the sign off boxes) all in the same numbering sequence. My attempt at this has ...
4
votes
1answer
123 views

another specific section format

Is there a way to implement the following style in LaTeX? "Sections should be numbered using upper-case roman numerals (I, II, III, etc.). Section titles should appear on the first line of text, ...
3
votes
1answer
190 views

Moving the chapter name in a titlesec frame?

I'm messing around with titlesec to make a frame with the chapter name in it. I can't figure out how to move the chapter name ("Chapter Foo" in the example). Here's the MWE: ...
2
votes
1answer
115 views

\nameref breaks for star versions of section/paragraph when titlesec is loaded

\nameref breaks for the star versions of section, paragraph when titlesec is loaded. I have a document that numbers paragraphs by default, but I have a few I do not want to number but would like to ...
4
votes
2answers
1k views

Underline subsections

I am able to make subsections italic and larger using the titlesec package, but there seems to be no working solution to make them underlined. Here is my current document: ...
3
votes
1answer
141 views

titleps' page styles inserted just before chapters start too early

The following MCE and image show that titleps' page styles inserted just before chapters start too early: the head rule begins with the 'test' page style which should be applied only after the end of ...
3
votes
1answer
262 views

titlesec warnings

I am trying to make my own style for chapter headings using koma-script and titlesec. The document compiles fine, but some errors are generated: Package titlesec Error: Entered in horizontal mode ...
4
votes
1answer
240 views

Using the titlesec package with the res document class

I am trying to redefine the formatting of the my sections using the titlesec package within a res document. However, I am getting the following error message which only occurs if I try to run the ...
4
votes
1answer
408 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
142 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
201 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
136 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
87 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
388 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
177 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
46 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
133 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
176 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
209 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
158 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
50 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
1answer
113 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
120 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
187 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
133 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
268 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
62 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
155 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
122 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
214 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
912 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
171 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
333 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: