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

learn more… | top users | synonyms

0
votes
1answer
33 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, ...
1
vote
1answer
31 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
38 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
25 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 ...
1
vote
1answer
35 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 ...
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
47 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
68 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) ...
3
votes
1answer
73 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/...
2
votes
1answer
68 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
3answers
87 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
1answer
85 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 ...
1
vote
2answers
56 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 ...
3
votes
2answers
77 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
2answers
41 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
51 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 ...
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 ...
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 ...
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 ...
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 ...
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
44 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
67 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
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\...
4
votes
1answer
75 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
168 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}). ...
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
97 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
63 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
0answers
25 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[...
0
votes
0answers
48 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} \...
1
vote
1answer
53 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 ...
3
votes
2answers
77 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 \...
4
votes
2answers
198 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: ...
1
vote
1answer
74 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. ...
2
votes
1answer
76 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 ...
5
votes
1answer
121 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
34 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
70 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 ...