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

learn more… | top users | synonyms

3
votes
1answer
140 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
1answer
264 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] ...
3
votes
1answer
169 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} ...
3
votes
1answer
718 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}{} ...
3
votes
1answer
11k views

Vertical space before section title with titlesec

I was trying to eliminate the vertical space before and after the title of a section by using the titlesec package and the command \titlespacing*{\section}{0pt}{0pt}{0pt}, but it works only in ...
2
votes
2answers
47 views

How to prevent page break between two section headings with color formatting using titlesec?

Description This question is based on almost the the following question, How to prevent page break between two section headings. The answer given there explains that the problem is with \color, which ...
2
votes
1answer
70 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
2
votes
1answer
91 views

How can I exclude a custom sectioning command from the table of contents?

Question How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra ...
2
votes
2answers
133 views

Show all level section numbering in text, but not in ToC?

I want section numbering in ToC to appear as \renewcommand\thesection{\Roman{section}} \renewcommand\thesubsection{\alph{subsection}} \renewcommand\thesubsubsection{\arabic{subsubsection}} but in ...
2
votes
2answers
283 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
2
votes
1answer
128 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 ...
1
vote
2answers
100 views

Redefining \section command

I'm writing a draft of my notes with Latex. They are basically definitions related to a particular concept from different sources. Therefore I have used the command \section to highlight the concept ...
1
vote
1answer
91 views

Customizing titlesec-etoc (further question)

Referring to this discussion: Further titlesec-etoc customization, I've a further question. Consider the fine working code furnished to me by Gonzalo Medina: \documentclass[a4paper,11pt]{report} ...
1
vote
1answer
255 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
2answers
165 views

Add a hrule to only chapter not numbered

I am thinking of adding a hrule to only chapters that are not numbered, in other words the chapters created using chapter*{}. I thought of using the titlesec package- My problem is that I cannot find ...
1
vote
1answer
679 views

Titlesec ruins Table of Contents formatting

I'm trying to use the titlesec package, but somehow section names in the \tableofcontents become overlapped with the TOC numbers and subsection names become improperly indented. Here's an example, ...
1
vote
1answer
287 views

Conflict between the packages titlesec and marginnote

In the following code, the use of the package titlesec modifies dramatically the formatting based on the package marginnote. The package titlesec is needed so as to use this. Is there one possibility ...
1
vote
1answer
180 views

Why chapter label below the section label on new page even if by setting same spacing before title (use titlesec package)?

\documentclass{book} \usepackage[margin=0pt,papersize={50pt,70pt}]{geometry} \usepackage{titlesec} \titleformat{\chapter}{\Huge\bfseries}{}{0em}{} \titleformat{\section}{\Huge\bfseries}{}{0em}{} ...
0
votes
1answer
110 views

Titlesec command blocked by frontmatter

\frontmatter blocks the propagation of the \titleformat from the preface to the first chapter. Is there a way to avoid that ? \documentclass[11pt,A4]{book} \usepackage{titlesec} ...
0
votes
1answer
103 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 ...
0
votes
1answer
978 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? ...