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

learn more… | top users | synonyms

0
votes
1answer
23 views

Set heading in the margin to the left of text

I would like to style the \paragraph heading so that it is set in the margin to the left of the text. I experimented with the titlesec package, and I get the heading wrapped to the left of the text, ...
0
votes
0answers
41 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}} \titleformat*{\subsection}{\...
0
votes
0answers
26 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 \raggedright\...
1
vote
1answer
30 views

Why does titlesec make boxes thicker and how can I fix it?

I am trying to give my section headings a light grey box around the text. However, for some reason, when I add the titlesec package (which I am using to format chapter titles) it changes the ...
0
votes
1answer
35 views

Change \Chapter Font size in Lyx/Latex in Koma-Script Report using titlesec / redeclaresectioncommand

I am absolutely new to latex so please dont bite my head off if this question is not. Problem I am trying to change my \chapter style in a koma-script report in Lyx, meaning that i want to change ...
2
votes
1answer
79 views

How to change space before and after chapter / section etc

I would like to have the following spacing: \titlespacing*{\chapter}{0pt}{50pt}{30pt} \titlespacing*{\section}{0pt}{13.2pt}{*0} \titlespacing*{\subsection}{0pt}{13.2pt}{*0} \titlespacing*{\...
1
vote
1answer
34 views

titlesec entered into horizontal mode during tableofcontents or printindex [closed]

I am trying to convert a 300 page book originally done with pdflatex and the tufte package into an ebook. For the conversion I have been using LuaLaTex and the tex4ebook package as described here At ...
2
votes
1answer
67 views

Section title centering

I am writing my PhD thesis in LaTeX. When I tried to center the section titles, awkwardly, it compiles without table of contents but whenever I write \tableofcontents an error occurs. For centering, ...
2
votes
1answer
154 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 ...
2
votes
1answer
24 views

Issue with titlesec section styles and appendix in article class

I am trying to let the title name of the appendix appear just before the appendix letter. However, at the same time I am using titlesec to adjust the appearance of section titles. I found a similar ...
4
votes
3answers
86 views

How can I write <section counter value>:<section title>:<page>:<file>:<line> to the log whenever (and whereever) a macro is called?

I am working on context-based log entries. Each time a selected (patched) macro is called, it should provide its contents along with a meaningful log entry. "Meaningful" log entry defined: The ...
0
votes
1answer
37 views

How to make a section heading indented using value of parindent?

While trying to use the titlesec package to format subsection headings, I have run into some trouble. I need subsection headings formatted so that they are indented using the value that is set with ...
0
votes
1answer
45 views

Boxed section heading style

I'd like the section title to look just as it does by default, except the following changes: No spacing (before/after) Text is inside black filled box Text color is white I've tried to use the ...
2
votes
1answer
67 views

Creating a macro which draws rectangle on the edge of the paper

How can I write the following macro to compile in XeLatex The Paper to be divided into two columns by using a borderless table (middle | is for conceptualization purpose only. it will not be visible) ...
0
votes
1answer
45 views

Use Part title as header

In this question I asked how to use the argument of a new sectioning level defined with the titlesec pkg as header. Now repeating the same code I'd like to ask how can I use the argument of \part ...
2
votes
2answers
97 views

Why does source code in my header of report appear?

In my header is source code where nothing is supposed to be. Main document: \documentclass[a4paper,12pt]{report} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{layout} \usepackage[headheight=...
3
votes
1answer
72 views

How to stop new subsubparagraph entry appearing in TOC

I added a new subsubparagraph section level using the titlesec package, with help from How to add an extra level of sections with headings below \subsubsection and http://tex.stackexchange.com/a/94404/...
4
votes
1answer
185 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
2answers
55 views

How to set font family of chapter labels

This question provides a code to set chapter font using titlesec, but doesn't say how to change the font family of each part (label and title). How to change the font family of the "Chapter first" in ...
1
vote
1answer
84 views

Modifying Table of contents using titletoc

I need to remove the roman numbers of the part class and the alphabetic enumeration marks from the subpart entry. Then I want the chapter to have arabic numbers. As I tried to show some chapter ...
2
votes
2answers
40 views

Linebreak problem with titlesec

I'm trying to format the section titles in my article to be Large, centered and underlined using titlesec. Some of my section titles are quite long so i need them to be in multiple lines. However, I ...
3
votes
2answers
76 views

Format the chapter name to have letterspacing

I'm using the memoir class, and the microtype and titlesec packages. I have the chapter names appearing in smallcaps, and I would like the spacing between the letters increased a little bit. Here's ...
2
votes
1answer
50 views

Change Title Spacing

I am currently trying to fulfill the layout requirements of my university, which request vertical spacing of 24pt before and 12pt after section titles. I am using the titlesec package, but every time ...
1
vote
0answers
28 views

Change Appendix Title Style Back To Normal

I am writing my thesis and copied the following nice piece of code off of a thread on stackexchange to produce my nice, fancy chapter titles. However, whilst I like this for my chapter headings, I ...
5
votes
0answers
37 views

Spacing between titles depending existence of subsection

By normative control standarts, spacing between title of a section and one of a subsection (similarly for subsection/subsubsection) must have length 0.8 cm and spacing between any title and a text ...
11
votes
2answers
2k views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
2
votes
2answers
549 views

Multiple Missing number, treated as zero. and Illegal unit of measure (pt inserted). on \section

I'm writing with TeXStudio, and create pdfs with "pdflatex.exe -synctex=1 -interaction=nonstopmode "Fallout Equestria - Torn Skies".tex" I updated with the MikTex. Before everything went just fine. ...
0
votes
1answer
55 views

Changing the page following each chapter

I'm currently using the titlesec package and TikZ to modify chapter and section headings (see attached image). Notice the dark gray box where the chapter number is displayed. My question is: is there ...
1
vote
2answers
106 views

LaTeX vertical spacing after numbered paragraphs

I'm relatively new to this forum and LaTeX in general, so please excuse me if I'm duplicating a question, but I can't find a satisfying solution to my problem. I have introduced numbered paragraphs by ...
5
votes
3answers
158 views

How to calculate width of remaining part of line

I wish to create section heading using titlesec like image But I have some difficulties in determining the width of remaining of line to include blue box containing section label, my method ...
4
votes
1answer
43 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
0
votes
0answers
28 views

Titlesec, space between header and chapter style

I tried to adapt @Bernard solution to my case, but I am facing some troubles. It is possible that I just simply don't understand the code, but I tried to change almost every parameters, and I can't ...
0
votes
0answers
23 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
35 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} \usepackage[...
2
votes
1answer
30 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
66 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 ...
3
votes
3answers
214 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
74 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
27 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
32 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
166 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
170 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
30 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
43 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 couldn'...
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
79 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?
2
votes
0answers
26 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} \setlength{\droptitle}{-...
5
votes
2answers
95 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
28 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
62 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. ...