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

learn more… | top users | synonyms

2
votes
2answers
50 views

Formatting and Styling of Headers using titlesec in scrbook-class

I'm trying to write a book in LaTeX with scrbook class. I'm not that experienced in typography with TeX, nevertheless I would like to give my chapter-headings a special style. I found a very nice ...
3
votes
1answer
47 views

How to create specific section style using titlesec?

I would like to create section style like in the attached picture, but I didn't find any way how to do it. Usually I'm using titlesec package for section style customizing. Is there any way how to ...
1
vote
1answer
41 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} ...
3
votes
1answer
28 views

Further titlesec/etoc customization

I've the following code: \documentclass[a4paper,11pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{etoc} ...
0
votes
0answers
37 views

Add vertical space after section only if at top of the page (documents requiring titlesec)?

Sometimes one needs to change the vertical space after a given \section, but only if the section starts at the very top of a page. How could that be done automatically, when the document requires the ...
3
votes
2answers
77 views

List of Theorems and tikz overlay

Suppose you call \listoftherems from the thmtools package, and use titlesec package to modify appearance of chapter headings. Suppose further that in titleformat, you include a simple tikzpicture, ...
2
votes
1answer
41 views

titlesec with the explicit option messes up toc title

When using titlesec with the option explicit the toc title "Contents" is formatted using settings from the (where the explicit #1 parameter must be used). I think the MWE shows it all. %!TEX ...
2
votes
2answers
50 views

Titlesec: Redefinition of sectioning command leads to endless execution of latex

I'm new at TeX.SX and I hope I do everything correct. To avoid answers like "Why do you do this?" I'd first like to describe briefly what I want: I'm developing a class based on tufte-book, which ...
2
votes
1answer
49 views

Stacking section labels in left margin

I am starting to convert to LaTeX to do my homework for Math courses. I want to use sectioning to separate questions \section{5.3} \subsection{1} \subsubsection{a} and look something like this: ...
3
votes
3answers
127 views

How can I maintain the current page nodes for portrait when temporarily entering landscape mode in TikZ?

Question How can I keep the current page nodes aligned with the same physical corners of the page in a document where the main layout is portrait, but some pages with longtable are in the landscape ...
2
votes
1answer
57 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 ...
4
votes
2answers
47 views

Preserving part of Chapter text “as is”, from becoming uppercase as per titlesec definition?

Having this MWE: \documentclass{book} \usepackage[explicit]{titlesec} \titleformat{\chapter}[block]{\filcenter}{}{0pt}{\MakeUppercase{#1}} \begin{document} \chapter*{This should be all Uppercase. ...
1
vote
2answers
26 views

Include class numbering in TOC with a subclass entry when using titlesec and titletoc

I am trying to use titleclass to define two new classes : savoir and subsavoir. In the TOC, I would like to get something like this : Savoir 1 -- First knowkledge title Savoir 1.a -- First ...
4
votes
1answer
75 views

How can I calculate the distance added between a title and a titlerule?

Question How can I calculate the distance after a title such that I can place a node where the title rule would go? Example I would like a bar to drop from the top righthand corner of the page down ...
1
vote
1answer
34 views

Remove indent of first paragraph when using titlesec package

I use the titlesec to format section in book class. The section pos to leftmargin, but when I compiled, the firs paragraph have indent. How to remove indent automatically. \usepackage{titlesec} ...
2
votes
1answer
47 views

What is causing the letters to be “all capitalized” in the section and subsection created below?

\documentclass{book} \usepackage[x11names]{xcolor} \usepackage[explicit]{titlesec} \usepackage{framed} \colorlet{shadecolor}{Thistle3!30!} \colorlet{framecolor}{PaleVioletRed3} ...
2
votes
1answer
40 views

Using titleformat, “frame” is supposed to result as “hang”, but in a box (numbers followed by text)

\documentclass{book} \usepackage{titlesec} \usepackage{color} \definecolor{darkblue}{rgb}{0,0.08,0.45} \titleformat{\chapter}[frame] % was display {\normalfont\Large\sffamily\bfseries} ...
2
votes
1answer
54 views

Why are the frame and color fill not properly aligned vertically?

% %---------------------------------------------------------------------------------------------------------- % \documentclass[11pt,a4paper,reqno,fleqn]{amsbook} % ...
0
votes
0answers
17 views

Hyperref warning when combined with package titlesec [duplicate]

How can one get rid of the hyperref warning about the $ signs in the subsection title that are generated in the following minimal example? \documentclass{book} \usepackage{titlesec} ...
3
votes
1answer
62 views

Editing the section's ToC entry with the titlesec package

I want to know how can I change the ToC entry of sections when using the titlesec package? I am using the command \section[short title]{long title}, but the short title does not appear in the Table ...
6
votes
1answer
118 views

Titlesec package - paragraph level headings as margin notes

After hours of pointless googling around I did not manage to find out how... I'm new to LaTeX templates and now I'm trying to make simple (?) modification so that I could have paragraph level headings ...
2
votes
1answer
57 views

problem with titlesec package with tex4ht when using starred version of \section

I just updated my texlive 2014 using tlmgr to fix an older related problem with using titlesec with tex4ht. But it seems a new problem now shows up. This show up only when using the starred version ...
3
votes
2answers
51 views

Problem with customized \part

I use titlesec package to set part style, but I also would like to put the name of the part in header. I try the way proposed in this thread (How to get part name in LaTeX ?). I get the header as I ...
2
votes
2answers
83 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 ...
0
votes
0answers
75 views

Format Latex report Chapter, Section, Subsection header styles

I'm writing my thesis and instructions for chapter, section and subsection are as following. - Chapter heading :All Capital—14 Font size, Bold - Section heading :Title case-12 Font size, Bold - ...
1
vote
1answer
57 views

Classicthesis remove cleardoublepage after part

I am trying to remove the double page break after the start of each part in classicthesis v4.1. I believe I need to modify the following code on lines 376-381 of classicthesis.sty: ...
2
votes
1answer
41 views

I want to place a dot after the numbers of sections, subsections, and subsubsections [duplicate]

My goal is as stated in the question title. There are other questions addressing this, but the answers selected, as best I can tell, don't get along with my other existing code, which is summarized ...
3
votes
1answer
46 views

Aligning a parbox inside titlesec

I'm trying to produce a document with section numbers in the page margin. I found a pseudo-solution which llaps the section numbering to mimic the result. I'm not happy with the way the number and ...
3
votes
1answer
46 views

Footheight and footrule using titlesec and geometry

Consider the following MWE \documentclass[a4paper,twoside]{article} \usepackage[width=14cm,left=3.5cm,marginparwidth=3cm,marginparsep=0.35cm, ...
1
vote
1answer
31 views

linebreaking when using raisebox in section

How to break the line when using raisebox command in \section. My MWE is : \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{lmodern} \usepackage{graphicx} ...
4
votes
1answer
73 views

Help on adding color option to chapter title

I'm trying to create an option to easily change a color bar in a chapter title. This code works on changing the color of the bar, but ruins the formatting. All of the chapter text is to be aligned ...
5
votes
2answers
81 views

titlesec problems

I am trying to use the titlesec package to redefine some of my sections and subsections commands. I want the \subsection to have the text following it become wrapped but if it has a title define in it ...
4
votes
1answer
74 views

Line spacing of chapter headings when using titlesec and setspace packages

I have defined my own chapter heading with modified font size and spacing above and below. \documentclass[final]{book} \usepackage{titlesec} ...
6
votes
2answers
158 views

How to get Section without numbers in Title and TOC, but subsections with them

First of all, I have been searching on the web and I have found similar cases but nothing useful for my problem, and more over, I'm pretty new in LaTeX. The Problem If I take off the numbers from ...
3
votes
1answer
51 views

How do you add a newline between section number and section title?

Basically I want something to look like: 1 Section title I'm using the titlesec package. Also on another note, I managed to get my subsubsections to not show without any numbering as 1.1.2 (as is ...
1
vote
1answer
35 views

Latex document contains only \section{}?

I want to typeset a document with desired output such as: 1. blah blah ... blah blah .... 2. blah blah ... blah blah .... 3. blah blah ... blah blah .... That is simply numbered ...
3
votes
1answer
52 views

section head two environment with different size boxes

I have two arguments in section and how to print the second optional argument in the same boxes. How do increase the box width should be upto paperwidth. My MWE is: \documentclass{book} ...
2
votes
1answer
51 views

section head box different font-size and two arguments in a level section

I'm expecting the below section heading is different box and section number is different box. After A level section default 4 icons need to print below (please refer screenshot). ![enter image ...
2
votes
1answer
34 views

Line break between \partname\thepart and \part in formatted header

How can I get the formatted \part to show Part I in one line and the Name of the Part One in the other line (line break) as it shows in the \chapter without formatting? \documentclass{report} ...
2
votes
1answer
82 views

Table of Contents with custom section titles

I am overriding the default section titles for a large document. This consists of adding words such as "Section", and using alpha or roman numbers. However, the table of contents is continuing to ...
0
votes
0answers
22 views

Change spacing above and below chapter [duplicate]

I have following document: \documentclass[final]{book} \usepackage{lipsum} \usepackage{titlesec} \titlespacing{\chapter}{0pt}{0pt}{0pt} \begin{document} \chapter*{Chapter One} \lipsum{1-5} ...
3
votes
1answer
39 views

Can I change how titlesec prioritizes padding values?

I've run into a situation in a document where I sometimes have a section heading that follows directly after a subsection heading with no generic paragraph content inbetween. In these cases the value ...
1
vote
1answer
44 views

Problems with \nameref{} not refering to the correct label x titlesec

I'm using hyperref package to do cross-referencing, but I'm encountering some problems and it is related to \usepackage{titlesec,titleps} , for instance: \documentclass[a4paper,12pt,twoside]{report} ...
1
vote
0answers
34 views

What are skip values? [duplicate]

On page 5 of the titlesec manual (released on June 14, 2000), it is written that full skip values, including the plus and minus parameters can be abbreviated as * n. The example on page 24-25 (the ...
1
vote
1answer
56 views

Background package - \NoBgThispage different output

This question related with my oter two questions: Replacing \fancyhdr with \titlesec in complicated design documents White fields in ltjsarticle class The design, which has been reached in these ...
9
votes
1answer
212 views

How I can improve the style of this title?

I'm working on book class and happen to have a relatively long title, when I write I get this: I would go up a bit the title, but that short titles remain in place but that short titles remain ...
0
votes
1answer
44 views

titlesec: \paragraph don't displays with explicit option

I need to use the explicit option of titlesec package. However, the paragraph is not displays with follow code: \titleformat{\paragraph}[hang]{\bfseries}{}{}{}[] Maybe I dont' know the explicit ...
0
votes
0answers
97 views

Fancy part title page with titleformat and centering problem

I would like to create a fancy part title page but I have some issues with titleformat. Currently, I use : \titleformat{\part}[display] {\normalfont\filcenter\thispagestyle{empty}} {}{0pt}{ ...
1
vote
1answer
61 views

Remove newline *before* \section

I have searched a lot to find an answer to this question, but I could only find how to remove a newline after \section (or \chapter). How can one remove the newline before \section, as defined by ...
2
votes
2answers
348 views

How to make nice chapter headings without titlesec

I am looking for a way to make the first page for a chapter (a.k.a. the chapter heading) have approximately the upper half of the first page with a chapter number and title, and the text of the ...