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

learn more… | top users | synonyms

0
votes
0answers
18 views

No numbers with titlesec and [hang] [duplicate]

If I use the [hang] format of the titlesec package (using a quite recent version of titlesec, namely 2016/03/15 v2.10.1, and TeX Live 2015), the section is not numbered. It seems that the [hang] ...
0
votes
1answer
31 views

Chapters not starting on the same height

And I have no idea why ! Why in my example, do I have the first chapter ok, and the second that stand higher on the page ? \documentclass[12pt]{report} \usepackage[utf8]{inputenc} ...
2
votes
1answer
20 views

Collapsing section ranges in titlesec page headers

I'm attempting to use dictionary-style ranges for page headers using titlesec, but I'm running into a problem when trying to collapse them if there's only a single range on a given page. The ...
5
votes
2answers
57 views

incompatibility between biblatex and titlesec?

My goal is to have a separate reference list for each chapter and to have custom headers and footers. For the former I am using biblatex and for the latter I am using titlesec. Using the attached tex ...
2
votes
1answer
139 views

Change spacing before chapter title within frontmatter

I am using the report class for my dissertation, which requires 2 inch margin beginning at each chapter. I am using the following command: \titlespacing*{\chapter}{0pt}{2in}{1in} This works fine ...
0
votes
0answers
19 views

Remove chapter number space arising from \chapter*{}

I am using the titlesec package to format my chapters in the following way: \titleformat{\chapter}{\rmfamily\bfseries}{\resizebox{!}{2cm}{\Roman{chapter}}}{0pt}{\vskip 0.25\baselineskip ...
3
votes
3answers
202 views

Part title framed

I was wondering how I could put a blue ({cmyk}{1,0.80,0.30,0.05}) coloured frame around my chapter titles, leaving out "PART 1" and just give the part title name itself, as is depicted in the picture ...
4
votes
1answer
60 views

How to get a section style in KOMA Script without titlesec package?

Well, this time I have a very concise doubt about how to get a section style diferent from the default one in KOMA Script (actually within the scratcl class) without use the titlesec package. With ...
1
vote
1answer
23 views

Can't Change subsubsection to runin with titlesec

I followed previous examples on here, but could not eliminate the newline after the subsubsection (I want it to runin just like paragraph does) \documentclass[oneside,openany,openbib,11pt]{memoir} ...
1
vote
1answer
25 views

Formatting section title text only

There are several posts on this site about formatting section titles, but I haven't seen one yet shows me how to edit the section title without editing the default spacing. I would like to have ...
0
votes
1answer
111 views

Changing the font style for chapters, sections and subsections

Can anyone please help me change the font style (say the LaTeX font: accanthis) only for the chapter name while the text in the article still has a palatino font (I am using \usepackage{palantino}). ...
3
votes
1answer
155 views

How to match vertical alignment of titlesec with tocloft?

I want to vertically align the Contents title including the horizontal rules (using tocloft) with the Introduction chapter title (using titlesec). However, I am confused as both packages seem to ...
1
vote
1answer
27 views

Ttitlesec package and underlining subsubsections

I am desperately trying to underline the headings of the subsubsection title. Here is my problem. If I use this piece of code: \documentclass{article} \usepackage{sectsty} \usepackage{titlesec} ...
1
vote
1answer
37 views

Extra section between part and chapter [duplicate]

I want to have an extra sectioning level under \part{}, say \subpart. It has no difference as for the location on the page or the size of the font with \part{} command. I tried titlesec but I ...
0
votes
0answers
13 views

Why is there inconsistency in the spacing set by \titlespacing?

I have a 1in margin on each side. When I set the spacing with \titlespacing, the upper spacing for the headings are definitely larger than 1in. It is larger than the left and right margin I will have ...
3
votes
1answer
58 views

Page numbers on bottom right footer

I'm using class report (one sided document) and the package titlesec. How can I put the page numbers on bottom right footer on all the pages?
4
votes
1answer
172 views

Bad interaction between titlesec/titleps and packages that use \markboth internally

The following MWE demonstrates a bad interaction between endfloat and titleps. The second page has the word FIGURES in all caps in both the header and the footer, contrary to the page style ...
1
vote
0answers
20 views

How to remove space after a section, and remove before a subsection?

I'm trying to get rid of the blank lines that appear after I begin a section, and between subsections (so before a subsection?) Currently I'm using \usepackage{titlesec} ...
5
votes
2answers
68 views

How can I have a vertical bar in chapter title which scales with the broken title?

I am trying to reproduce a nice chapter title as shown as Less is More in this blog using titlesec: \documentclass{report} \usepackage[T1]{fontenc} \usepackage{titlesec, blindtext, color} ...
1
vote
1answer
27 views

Horizontal little box before section's heading?

I cannot find properly what I need about my topic. I would like to set customized section's heading like in the example, but I am not so good with latex. Can someone maybe implement my code or ...
2
votes
2answers
32 views

Center the “part name” in the table of contents [duplicate]

I want to change in the table of contents the look of the parts. I reproduced on Word what I want : I've looked into the site if the question was already answered but I didn't found what I want. ...
0
votes
1answer
1k 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? ...
0
votes
0answers
19 views

Title table of content spacing

I am actually using the following commands to format my chapter titles: \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\bfseries\filcenter} {\LARGE } {1ex} ...
1
vote
1answer
42 views

Personalize title 2

Seeing my previous question (solved), I have another doubt. Now that I have personalize also the contents, the TOC style is in conflict with the chapters style. There is another thread about this ...
0
votes
0answers
45 views

How to modifier chapter*?

\documentclass{book} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[charter]{mathdesign} \usepackage{graphicx, calc} ...
3
votes
2answers
70 views

Change format of chapter

How to change format of chapter like this photo, please? \documentclass{book} \usepackage{titlesec} \usepackage[tracking=true]{microtype} \usepackage{lipsum}% juts to generate text for the example ...
2
votes
1answer
57 views

Automating Title Capitalization in Sections, Subsections, etc

I'm trying to automate the capitalization of titles in sections, subsections, etc. Basically, I'd like to format every title with \capitalize from the stringstrings package. One approach I've tried is ...
1
vote
1answer
58 views

Long title problem with fancyhdr and titlesec

I have the same problem as How to use short subsection title in header but not in table of contents?, and the solution given works almost well. The difference is that also use the package titlesec. ...
4
votes
2answers
184 views

Is there a way to set colors of hyperref links and urls differently in headings / sections than in the body?

I know hypersetup from hyperref needs to be added before \begin{document} but after \usepackage{hyperref} and \usepackage{bookmark}. For example, you can inject it like the following to ensure this: ...
4
votes
1answer
99 views

A titlesec to KOMA-script lexicon: how to emulate titlesec commands into KOMA native ones?

Could we create a titlesec to KOMA-script lexicon? Or, in other words, how to emulate titlesec commands with native KOMA ones? The point would be to define ...
2
votes
1answer
23 views

Add a period after section number with memoir class

I was using the titlesec command \titlelabel{\thetitle.\quad} to add a period after the section number, but it isn't compatible with the memoir options : \section[Section title in TOC][Heading ...
1
vote
2answers
61 views

Blank page before titlepage using indented sections

I'm trying to indent all my contents except for all headings. I tried using the method described in this method for indenting all the normal text. However, if I combine it with either a \title command ...
3
votes
2answers
45 views

Section headings in a separate column

I'm interested in achieving a two-column layout like the following, where the columns are flush with the left and right margins of the page: | section heading | lorem ipsum lorem ipsum lorem ipsum ...
0
votes
1answer
20 views

Latex titleformat not applied to the section number

I'm changing the structure of the title for a journal publication. I am using titleformat as follows \titleformat{\subsection}{\itshape}{\thesubsection.}{.7em}{} but the "problem" is that ...
1
vote
1answer
61 views

titlesec 2.10.1 seems to completely break \section

Here's my testcase: \documentclass[12pt,english]{scrartcl} \usepackage{titlesec} \begin{document} \section{Foo} \end{document} Using "pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015)" and titlesec ...
0
votes
0answers
32 views

Titleformat and underlining section heading

I have used the following code to format my sections, subsections and sub sub sections: \titleformat*{\section}{\fontsize{18}{18}\bfseries\color{blue!30!darkgray}} ...
1
vote
1answer
33 views

Section headings with horizontal rules above/below that aren't broken by page breaks

I want to create \section headings with horizontal bars before and after the title. I'm trying to mimic the top-level sections in the old old Coherent unix manual. On page 1: What I have so far: ...
10
votes
1answer
396 views

titlesec: loss of section numbering with the new update (2016/03/15)

After reinstalling TeXLive distribution (install-tl-20160318, Ubuntu 14.04), a issue occurs with the updated version of the titlesec package: the section numbering is lost. What could it be missing? ...
1
vote
1answer
73 views

Package titlesec 2.10.1 in XeLaTeX removes numbering on sections and subsections [duplicate]

I've been using titlesec in XeLaTeX for quite a long time and never had problems with it. But recently, I updated it via tlmgr (as I have TeXLive 2015) to 2.10.1 and now I'm facing this situation: ...
2
votes
1answer
34 views

Getting formatting and spacing of \section

I'm trying to create a new \section command with a slightly different text formatting. While I can figure out how to do this with the titlesec package, I would like to avoid manually inserting the ...
1
vote
0answers
23 views

Section numbering disappeared after updating titlesec package [duplicate]

I'm using classicthesis to write my reports. I've always use the tweaked version of it since 2011 for my stuffs (e.g. back then it was for the master thesis). Today after updating the package in ...
1
vote
1answer
42 views

When 2 \newpages in raw are joined, and when not?

I tried to define my chapter so it will have an empty page after it, using titlesec. Using 2 newpages in a raw didn't help. I concluded that they are joined together, as if I wrote only 1. Solved this ...
0
votes
0answers
50 views

title sec throwing error

I am getting an error while using titlesec package: \usepackage{titlesec} % Allows customization of titles \titleformat{\section}[block]{\large\scshape\centering{\Roman{section}.}}{}{1em}{} % Change ...
0
votes
1answer
36 views

How to force two “blocks” to be on the same page, without minipage?

I have the following situation (what follows is pseudo-code): \mySection*{Title} \begin{mdframed-theorem} Bla bla [...] that is long. \end{mdframed-theorem} Then something else, the starting of ...
1
vote
0answers
48 views

Titletoc / Titlesec numbers overlap text

Pretty simple problem, I have part numbers included in my section and subsection numbers, and I want to increase the space after the numbers, preferably without screwing up the rest of the alignment. ...
2
votes
1answer
58 views

Centering section with label and title on separate lines

I am trying to center a section title with the section label on one line, and the section name on the next. ie: | Article II This is the Title | My attempt: ...
3
votes
1answer
35 views

Length of Titlerule

I have a picture on the right side of the title. For the title I'm using the underlining with \titlerule. Is it possible to adjust the line in length? I would like to have the line only go to the ...
3
votes
1answer
96 views

Replace titlesec-chapter style with KOMA

I have built a very nice chapter style with titlesec: Unfortunately there's a warning for the use together with "scrbook". That's why I want to replace titlesec with KOMA. Can anyone please help me ...
16
votes
4answers
6k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
0
votes
0answers
18 views

Titlesec removes numbering on subsubsection [duplicate]

I am using report class with the titlesec package. When I enter a \subsubsection the numbering format is removed. MWE: \documentclass{report} \usepackage{titlesec} ...