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

learn more… | top users | synonyms

1
vote
0answers
37 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, ...
4
votes
2answers
51 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 ...
1
vote
2answers
49 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
66 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
37 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 ...
2
votes
1answer
148 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 ...
3
votes
2answers
65 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
40 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
25 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
444 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
52 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 ...
0
votes
1answer
41 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 ...
1
vote
2answers
103 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
150 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
178 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 ...
4
votes
1answer
38 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
22 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
20 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
33 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
26 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
61 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 ...
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 \raggedright\...
3
votes
3answers
209 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
67 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
24 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
125 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
166 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
29 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
42 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
70 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
25 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
77 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
46 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} {\titlerule[...
1
vote
1answer
48 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
46 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
74 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
61 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
65 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
192 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: ...
5
votes
1answer
110 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 "\titleseccommand[<a>]{<b>}{<...
2
votes
1answer
30 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
65 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
48 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 ...