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

learn more… | top users | synonyms

9
votes
3answers
211 views

how to get chapter title in a rectangular frame

how to get chapter heading like this in pdflatex can titlesec be used? % hanging chapters \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont \Large \bfseries}{\chaptertitlename\ ...
0
votes
1answer
86 views

Get chapter numbers as text in the report class

im trying to get my chapter numbers printed as text, but on the way there i messed up my section numbers with text "ONE" and "TWO" an such, here is what i was doing, This code centers, pull up and ...
1
vote
0answers
73 views

Setup Multiline Title in Titlesec

I need to put next line in multiline title aligned with label title. How can I accomplish this? I guess it has to do with removing the auto-indentation of the next line.
6
votes
1answer
131 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
5
votes
1answer
165 views

Title formatting with graphics

I am trying to achieve this look for my chapter titles: To achieve this formatting I use titlesec package like this : \titleformat{name=\chapter}[hang] ...
5
votes
1answer
271 views

Flexible rule length in titlesec

I'm trying to get a rule just after the label of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this: \titleformat{\chapter}[display]% ...
4
votes
1answer
196 views

Titlesec, runin shape and amsthm

I'm trying to have an old fashioned style of (sub)section numbering as in EGA (Eléments de Géométrie Algébrique, by A.Grothendieck and J.Dieudonné). For a LaTeX written example, see here. I did it ...
10
votes
1answer
187 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
3
votes
1answer
180 views

Chapter header with super huge numbers [duplicate]

I'm trying to get the chapter heading to look like this I am using the following code but the number are still so small \usepackage{titlesec} \definecolor{gray75}{gray}{0.75} ...
4
votes
2answers
281 views

titlesec troubles

I am working on a document that will consist of many sections and subsections. I want to have a table of contents per section. I am using titlesec, titletoc and titleps. I have the following MWE: ...
2
votes
1answer
84 views

Error compiling edited subsections

With reference to the question: Change size of section, subsection, subsubsection, paragraph and subparagraph title I tried this. While it works, it produces the following error when compiling: ...
2
votes
1answer
144 views

Getting table of contents to recognize titlesec paragraph

I am using hyperref to make a clickable table of contents. I am using titlesec to use \paragraph{ } as if it were a subsubsubsection. How do i get this use of \paragraph to display in my table of ...
3
votes
1answer
453 views

Adding a period after section

I have \usepackage{titlesec} \titleformat{\section}[runin] {\normalfont\Large\bfseries}{\thesection}{1em}{} \titleformat{\subsection}[runin] {\normalfont\large\bfseries}{\thesubsection}{1em}{} ...
0
votes
0answers
185 views

How to force lower case in small caps section titles? [duplicate]

I want my section titles to appear in lower case small caps. I tried to define a way to force lower case, but it doesn't work. \\documentclass[12pt]{article} \\usepackage{textcase} ...
4
votes
2answers
327 views

Problem with titlesec/titletoc/tikz

I have a problem in the sheet dedicated to the table of contents. I'm using titlesec/titletoc/tikz which works fine except in the page "table of contents". I have this result : The problem is that ...
3
votes
2answers
998 views

How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error ! Package ...
4
votes
1answer
235 views

Customizing titlesec

I've read through section 2 and 3 of titlesec's package documentation, and unfortunately I find it extremely cryptic, so I've given up trying to come to terms with it. Please bear with me as I'm just ...
1
vote
1answer
290 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} ...
5
votes
1answer
58 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
127 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
168 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
397 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 ...
3
votes
1answer
177 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
189 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
867 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
739 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
752 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
1k 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
189 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
215 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: ...
5
votes
2answers
400 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
190 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
124 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
128 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
210 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
148 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
2k 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
168 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
549 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
281 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
563 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
161 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
217 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
141 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
426 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
190 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
171 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
206 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 ...