Questions tagged [titlesec]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
30 views

Delete vertical text from empty pages

I already asked this question on this forum, (I would like to put a vertically oriented sentence on all page margins except the table of contents pages), and they gave me a solution that works ...
0
votes
1answer
25 views

Decrease Space Before and After Section Titles (titlesec alternative)

I using \documentclass[journal]{IEEEtran} and want to decrease the spacing before section and subsection. I have already tried \usepackage[compact]{titlesec}, but it breaks the formatting of the ...
0
votes
0answers
14 views

Properly aligning sections using titlesec package

I am using titlesec package to shape the section, subsection and subsubsection like this: \usepackage{titlesec} \newlength\titleindent \setlength\titleindent{1.3cm} \titleformat{\section}{% \...
1
vote
1answer
23 views

Paragraph ended before \ttl@format@si was complete

I've searched for similar errors, and usually it has to do with using \titleformat instead of \titleformat* This is what I am using \titleformat*{\subsubsection}{\large\color{gray}} However, it ...
0
votes
1answer
18 views

Pdfpages - titlesec seems to be ignored with option pagecommand

When using pdfpages, I got a problem with titlesec formatting with frame style. Excepted: Actual: Any ideas ? Here is my MWE (you can include whatever dummy pdf) : \documentclass{report} \...
0
votes
0answers
11 views

using \leftmark gives me the section label rather than the section name

I write my lectures in separate documents and when I include them in the main document I use \leftmark in the header to display the section. I tried something new, adding a footnote to the section ...
0
votes
0answers
27 views

Moving the numbering from the left to the right of a section adds large horizontal space in table of contents

I am trying to write solutions to exercises in a textbook. I am using subsubsections to serve as exercise headings like \subsubsection{Exercise}, where the natural subsubsection numbering is the ...
1
vote
1answer
14 views

Adjusting \Chapter spacing with \titlespacing not working and wraps headings

I would like to remove the default 50pt spacing before a chapter heading, I would like to use the titlesecpackage as I am not comfortable editing latex code. I have tried the \titlespacing command ...
0
votes
2answers
46 views

Show only chapter number (and not name) as chapter heading?

The chapters in the book I'm working on are all named. However, while I want the names to show up in the TOC, I want the numbers and the numbers only to show up as the chapter headings. (I know that ...
0
votes
2answers
35 views

Remove the Chapter Number from Section and Subsection Numbering

I'm trying to number each paragraph of a document, using section and subsection, but it continues to put in the chapter numbers as well...which is not what I want. Here's the MWE \documentclass[...
0
votes
0answers
16 views

Reference unnumbered starred header and titlesec [duplicate]

This is a follow up to this question: How to cross-reference an unnumbered section? My issue is that, in my document, I use the {titlesec} package. For some reason that package interferes with the ...
0
votes
0answers
22 views

Problem on content with titletoc

Here is my problem: I would like to make my content this way: Section 1 xxxx -----1 1.1 xxxx -------1 Section 2 xxxx -----2 2.1 xxxx -------2 That is, make the word 'Section' appear before ...
0
votes
1answer
28 views

Custom section titles do not look similar (despite having the same code)

I produce the following custom section titles: There is quite a bit of stuff that is hardcoded (i.e. requires me to eyeball it) in here, which makes me nervous. Why are the two vrules not the same ...
0
votes
0answers
25 views

Package graphics Error: Division by 0 while coexists with package titlesec

Hi I am getting this weird error Package graphics Error: Division by 0. I was debugging and trying to figure out when this happens. I could nail it down so that this error only occurs while I use the ...
0
votes
0answers
29 views

Fancy Chapter Format

Here is martin's code after some alterations, Now what I want is to get a small grey line of .2cm and 1.3cm height at the end of the line. I want a small rule like I have for section but on the right,...
0
votes
0answers
14 views

Table of Contents and frontmatter chapter header with titlesec

I am using titlesec for custom headers. They include the document title on one side and chapter title on the other. This is working fine for chapters of the mainmatter but for the frontmatter I would ...
0
votes
2answers
64 views

Replacing titlesec and customizing headings (part and chapter number in the middle of a string)

I used titlesec to define the chapter headings for a Chinese book. However, as of texlive 2020 there are incompatibilities with Koma Script and titlesec (in my specific setting, I cannot produce a ...
1
vote
1answer
31 views

Latex chapter customise- titlesec

I'm trying to make a template theme and I'm having a hard time. I can't see how to do this. I can change the colour of chapters and sections, but don't know how to put the number of chapter in black (...
3
votes
2answers
55 views

A specific fancy chapter heading

So, basically I'm working on my memoir. TeX and LaTeX are rather new for me. I really looked everywhere to be able to design the same chapter heading as Walter Appel does in his brilliant book called "...
3
votes
1answer
31 views

Define enumerate environment without linebreak before the first item

I have a formal, legal document with line numbering and many sections. I have defined a custom enumerate environment which allows to list paragraphs using \S as follows. \newlist{myenum}{enumerate}{1}...
0
votes
1answer
20 views

Remove the ')' after parentheses using titlesec

My code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{titlesec} \begin{document} % Set Section Title Formatting % \titleformat{\section}{\bfseries}{\thesection}{1em}{}[{\...
3
votes
1answer
128 views

Different toc and header titles (with titlesec and titleps)

I try to add a second optional argument to \section to specify different toc and header titles (like in the memoir class for example). I use titlesec (and titleps via the pagestyles option). My code ...
0
votes
2answers
46 views

Using titlesec, Space between titlerule and colorbox

I am using the package titlesec to format the titles in my document. As I don't want to have the titles in a closed box (we could use "frame" as format parameter of \titleformat for that), I use a \...
0
votes
2answers
23 views

Indexing problem in sections using titlesec

My probşem is pretty simple but I could not solve the problem. I use the titlesec to modify the font and bold of my section, subsection and subsubsection but this is kinda messed up the indexing of ...
0
votes
1answer
26 views

PDF bookmarks by hyperref linked to wrong page numbers following subsections

I have read a number of other threads about incorrect link anchors for PDF bookmarks but either the suggestions don't work for me or I don't understand them. I have the following document for which ...
1
vote
1answer
23 views

Section Header styles

I was updating my Resume and came across this header can anyone share the code to create this :
0
votes
0answers
30 views

Spacing of chapter title in Two-Column with titlesec

) I am trying to setup a new two column (from geometry package) and am setting up titleformats with titlesec. I have used multicols before and have thus never needed to fit title formats into the ...
0
votes
1answer
35 views

Adding numberless chapters to the table of contents with titlesec

How to add numberless chapters to the table of contents with titlesec avoiding \addcontentsline after \chapter? \documentclass[a4paper]{report} \usepackage{titlesec,titletoc} \titleformat{name=\...
1
vote
1answer
38 views

Swap section title and section number in KOMA Script scrartcl

Since it is not recommended to use titlesec in KOMA script, I'm looking for some alternative to swap section title and section number, having Title 1 instead of 1 Title Minimal example: \...
0
votes
1answer
23 views

Centred section title with lines on either side

I am trying to typeset a document with the following style for a section title: The text is centred. There is a thick line on either side of the text extending to the margin The rule is vertically ...
1
vote
1answer
24 views

Title formatting with titlesec

I am trying to format titles using titlesec. Here is what I want to do: \subsubsection: \paragraph: And this is my code: \setcounter{secnumdepth}{4} \renewcommand{\thesubsubsection}{\arabic{...
0
votes
1answer
22 views

Frame thickness with titlesec

How to change the thickness of the frame using titlesec? \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{titlesec} \begin{document} \titleformat{\section}[frame] {\...
0
votes
1answer
27 views

Table of contents invading section title

I am using \titleformat (together with titlesec and titletoc packages) to configure the aspect of the section titles. Since I needed a solid framed title I tried: \documentclass{article} \usepackage[...
1
vote
1answer
43 views

Organise endnotes by chapter titles

I am trying to use enotez to organise ("split") my endnotes by chapter and use the relevant chapter titles as headings (ideally centred) as demonstrated below and include the pagination the notes ...
3
votes
1answer
86 views

Customize section numbering format for Chinese typesetting

I have the following latex document compiled in org-mode. % Created 2020-03-29 Sun 00:33 % Intended LaTeX compiler: xelatex \documentclass[12pt,a4paper]{article} \usepackage{xeCJK} %\usepackage[...
1
vote
1answer
30 views

How can I display the short title of a (titlesec) part in the header?

I am writing a game rule-book in which titles of parts are displayed in two lines. The first line is the same as the short title (e.g. \part[introduction]{introduction\\PARTIE PREMIÈRE}\label{\thepart}...
0
votes
0answers
18 views

Changing the characteristics of \thesection in the \titleformat command

I want to create a title environment like this but with the text flushed right. I used the following code: \titleformat{\section}[display]{\bfseries \raggedleft \itshape \large}{\thesection\cdot} {...
0
votes
0answers
24 views

Difference between parameter position in titlesec

What is the difference between these two? \titleformat{\section}[display] {\normalfont\Large\bfseries\centering}{}{0pt}{} and \titleformat{\section}[display] {\normalfont\bfseries\centering}{}{...
3
votes
2answers
51 views

Format chapters except appendix

For the thesis I am writing it is demanded that the appendix chapters come in the form of "Appendix A", "Appendix B", etc.. I wanted different formatting for the chapters than the standard one so I ...
0
votes
0answers
27 views

Remove underline from table of contents (titlesec package)

quick question. So I tried to customize my section formatting, and wanted to underline sections (among other things). BUT! I'm using the titlesec package, and ToC is seen as a section from what I ...
1
vote
2answers
133 views

Re-creating a section style in LaTeX book

How does one go about recreating the following section style in LaTeX, so that the section title begins before the main body of the text and horizontal lines are drawn above and below it? Would the ...
1
vote
2answers
59 views

How to uppercase the word “CHAPTER 1” in chapter title?

I am using below code to make the chapter titles uppercased, \documentclass{book} \usepackage{titlesec} \begin{document} \titleformat{\chapter}[display] {\large \bfseries \centering}{\...
1
vote
0answers
33 views

Creating separate title page for each new section

I am new to LaTeX and I am writing my thesis atm. I want to have a separate title page for each new section where it states the Section number, title and a few lines explaining the contents of the ...
2
votes
1answer
139 views

Recreating this chapter style in LaTeX

I would like to recreate the following chapter style in LaTeX, where the '1' here is the chapter number. How do I go about doing this? I would've provided a base code but I have absolutely no idea how ...
1
vote
2answers
38 views

Sectioning items with links to their parents

Is there any way to have "sectioning" commands (\section \subsection, etc) create automatically a link with a specified symbol to their parent sectioning item? Illustration below The underlying ...
4
votes
1answer
57 views

minipage messes up spacings

I have some troubles with spacing when using minipages to keep some content together. \documentclass[a4paper,10pt,notitlepage]{article} \usepackage{geometry} \geometry{ a4paper, head=20mm, ...
4
votes
2answers
90 views

How to create a personalized chapter heading style

I'm writing a book on Latex and I found a chapter heading style in a book that is interesting, but I don't find any package, or code, that gives me what I research. The style is the following one : ...
0
votes
1answer
41 views

Latex showing error in producing Appendix

The Appendix is being shown as 'Chapter A' but not as 'Appendix'. Can anyone please help. the code I used was: \documentclass{book} \usepackage{titlesec} \titleformat{\chapter}{\Huge\bfseries}{\...
0
votes
1answer
82 views

curious, layout problem package: titlesec

My problem is the following. I'm currently working on my Bachelor thesis with Overleaf. I'm trying to do the same layout as a friend of mine. But even if I copy his project completly as it is. I get ...
0
votes
1answer
59 views

Why do I get and Illegal parameter number in definition of \ttlf@chapter/* When formatting titles?

I am trying to format the titles of a document using the titlesec package. Overall I want: Chapter numbers in romans, inline chapter number and chapter name preceded by "Capítulo" Sections, ...

1
2 3 4 5
23