Questions tagged [titlesec]

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

0
votes
0answers
17 views

Underline small-capped section with titleformat?

With the MWE in place, i got the smallcaps into the section formatting (hopefully right), but cannot use \titleformat to uline the section, despite the doc saying: "The very last command can take an ...
3
votes
1answer
36 views

How to center particular sections?

I am a very new in LaTex. Can anybody help me with this: I need that some my sections will be centred and without a number, but other will be with the number and be aligned to the begining of text. ...
0
votes
1answer
30 views

add a horizontal rule below the title with length start end thickness

I'd like to add a segment rule with a certain thickness below the tile. It does not cover the full page or the full title length and I can control its thickness. I am using \maketitle to do the title ...
2
votes
1answer
42 views

Conflicts using package tcolorbox and titleformat

I am trying to use tcolorbox to highlight some words in a paper so I use this: \usepackage{tikz,lipsum,lmodern} \usepackage[most]{tcolorbox} \tcbuselibrary{listings,breakable} \newtcbox{\mybox}[2][]{...
1
vote
1answer
16 views

titlesec: display subsectiontitle in header only if there is a subsection

I want to have my header as the section name displayed on the left and the subsection name displayed on the right. This works well as long as every section has a subsection. However if there is no ...
2
votes
0answers
39 views

titletoc fails with custom titlecontents

I'm using titletoc for having a partial index going down to paragraphs. I wrote a custom formatting for it using \titlecontents and \titlecontents*. In some cases (some specific combination of ...
1
vote
2answers
37 views

Overleaf and Section Fonts

Oveleaf say that it's possible to use a set of pre-installed fonts here. One of these is "CMU Classical Serif" I want to change the section title in my document to be "CMU Classical Serif" I try ...
0
votes
1answer
18 views

Modify section (adding a vertical line to the left)

\documentclass{article} \usepackage{microtype} \usepackage[x11names]{xcolor} % \usepackage[explicit]{titlesec} \usepackage{fullpage} \titleformat{\section}[hang]{\sffamily\color{IndianRed3}\bfseries\...
0
votes
0answers
21 views

Suppress Chapter Number and Chapter Title Completely [duplicate]

I am working on the layout of my PhD thesis. For designing purpose, I would like to suppress the chapter number and chapter title completely without disturbing section numbering (Figure below). Well, ...
1
vote
0answers
38 views

Different math font for captions in LaTeX

I have two fonts in my LaTeX (not XeLaTeX or LuaLaTeX) document: Serif font: used in main text and math environment (mathpazo). Sans-serif font: used in titles and captions (pag). Math symbols in ...
0
votes
0answers
27 views

Convert titlesec titleformat to KOMA Script [duplicate]

Im quite new to Latex and i have created a document template based on several code snippets. The result looks not that bad but now i switched to KOMA Script scrreprt class. Not my titlesec part is not ...
0
votes
2answers
23 views

Indent wrapped chapter title

I want to indent the title block of my chapter heading. The code below is almost exactly how I want chapter titles displayed except for the fact that the second line and onward of the chapter title ...
0
votes
0answers
19 views

Bar behind section title spanning the width of the page

Is there a way I can use the titlesec package or the mdframed package to produce a section heading like the following: Here, the section title box begins at the left margin. As a followup question, ...
1
vote
1answer
35 views

How to convert \tableofcontents from interfaces-tocloft to titletoc package?

I'm trying to remove the interfaces-tocloft package from my documents, it causes problems in some and loads packages that I do not want in some occasions, so I've tried using titletoc (which is ...
1
vote
1answer
33 views

header conflict with mdframed

\documentclass{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[framemethod=TikZ]{mdframed} \begin{document} \renewcommand{\chaptermark}[1]{ \markboth{#1}{} } \renewcommand{\...
1
vote
0answers
26 views

How can I fix the problem: !undefined control sequence with \begin{thebibliography}{100}

The detailed error information !undefined control sequence \@markboth -> \ttl@savemark \@gobbletwo 1.1 \begin{thebibliography}{100}
3
votes
3answers
97 views

Chapter style minimal design

I am approaching LaTex to write my thesis and I have some problems on Chapter style format. I started to read some articles online and the manual of titlesec package, but they are to difficult for me ...
2
votes
1answer
51 views

Setting Chapter style with bar

I am using the setting from this post Chapter Style- Report Class With the solution developed by Gonzalo Medina \documentclass{report} \usepackage{graphicx} \usepackage{titlesec} \usepackage{...
1
vote
1answer
67 views

Word template with Latex

I am struggling to reproduce a Word template in Latex. I managed to reproduce the font (Calibri) switching to LualaTex with \usepackage{fontspec} \setmainfont{Calibri} I setup the margins using \...
1
vote
2answers
30 views

Override small-caps \chapter locally

When I customise the \chapter format using titlesec as follows (important bit is the \bfseries for small caps): \titleformat{\chapter}[block] {\titlerule[1pt]\addvspace{0pt}\Large\scshape\...
0
votes
1answer
27 views

Chapter Section to the left and Chapter title to the right

In a report document, how can I achieve something like this? The Chapter to the left, and the Chapter's title to the right of the page \documentclass{report} \usepackage{graphicx} \usepackage{...
1
vote
1answer
21 views

hyperref and titletoc: prints extra “section.1” or “Doc-Startchapter.1”

I'm using both hyperref and titletoc for writing my thesis, which is known to cause other kind of incompatibilities which I don't observe in my case. Using titletoc I'm adding a table of content at ...
1
vote
1answer
25 views

How to place part titles to top of paper

How to place part titles like chapter titles in book class? MWE: \documentclass{book} \usepackage{lipsum} \usepackage{titlesec} \titleclass{\part}{top} \titleformat{\part}[display]{} {\huge\bfseries ...
0
votes
2answers
72 views

How to get custom section style using titlesec?

I am trying to design a custom section. My desire section will be something like this : But I am unable to get the exact result. This is what I was trying : Horizontal rule will be joined at the ...
2
votes
2answers
45 views

titlesec: Want to remove section nums in TOC but not subsection

Title says it all. \documentclass[twoside]{article} \usepackage{graphicx} \usepackage{bm} \usepackage{amssymb,amsmath} \usepackage{mathrsfs} \usepackage{titling} \usepackage{bigints} \usepackage{...
2
votes
1answer
34 views

Option clash between elsarticle and titlesec?

Is there a way to avoid that the first line of a paragraph in an article using both elsarticle and titlesec be indented? I want to change in some minor way the section format but without losing the \...
4
votes
2answers
127 views

How to add double frame in tcolorbox?

Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page ...
1
vote
0answers
34 views

Print Chapter name in TOC but not where chapter starts

I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text. Following code give a blank page before the chapter title ...
0
votes
0answers
20 views

Titlesec: Need to make format exception for Contents and References

I am using titlesec to place the \S character the begining of each section and subsection title. It is also appearing on the title of the table of contents, and also the title of the references ...
4
votes
3answers
194 views

How to add frame around section using titlesec?

I want exact this section style but I am unable to add frame around it. Could you please help me? Here is my code snippet : \documentclass[10pt,a4paper,twoside]{report} \usepackage{blindtext} \...
0
votes
0answers
19 views

Use of packages \titlesec and \appendix in spanish babel with utf8?

My code is like this: \usepackage[utf8]{inputenc} %encoding multi-byte \usepackage[T1]{fontenc} %para los separación de palabras "can-ción" \usepackage[spanish]{babel} %traducir al español Chapters, ...
0
votes
0answers
33 views

Vertically rotated Chapter style with titlesec

Hi I'm trying to create a custom class for my thesis using article. I want the chapter title to appear vertical, so far I've tried using titlesec but I've encountered some problems. This is what I ...
1
vote
1answer
33 views

New title class doesn't increase counter

I'm fairly new to LaTeX and need to create a subsubsubsection in a document. After looking around I found that it could be done with titlesec. I've followed all instructions I've been able to find but ...
0
votes
2answers
24 views

How to get horizontal rules around title and left-aligned author details?

I want to format the title and author section of my report like the authors have done in the image below. I have tried putting two horizontal rules above and below the title, but, if I do this, the ...
1
vote
1answer
40 views

Legal-style indentation with text on the same line as the subsection title

A legal document requires the indentation format as in Question How can I get legal style indentation on section, subsection, subsubsec.. using titlesec?. I'm using the answer to the related question ...
0
votes
0answers
44 views

sectioning - section and subsection starting in the same line

I need to save as much space as possible in my document. So, I use \titleformat with the [runin] shape argument from the titlesec package to use the space after a section heading. Whereas this works ...
0
votes
0answers
31 views

Spacing between figure number and caption text in table of contents

I want to have equal spaces between my caption number and caption text on the list of figures and list of tables. I tried modifying the lines as given Here But the list of figures have less space in ...
1
vote
1answer
30 views

Changing Typeface of Part

How do you change the typeface used for the part environment to an Opentype font? (In the MWE below, I've used a TrueType font, but the method should be the same). It appears the standard titlesec ...
2
votes
1answer
160 views

epigraph and titlesec+titletoc create misbehaviour

I use titlesec and titletoc to create my own style of chapter that contains a minitoc after the chapter title. And I use epigraph when I want to have one before the chapter title. I am currently ...
0
votes
0answers
25 views

titlesec makes fancyhdr mistreating the document class

MWE is pretty simple: \documentclass[twoside]{article} %\usepackage{titlesec} \usepackage{fancyhdr} \begin{document} \pagestyle{fancy} \section{tist1} \subsection{a} \newpage \subsection{b} \end{...
0
votes
2answers
58 views

How do I center the table of contents title without using tocloft?

I would simply like to center the title of the table of contents in my "book" document. I just added dot leaders to the table of contents, and this appeared to be best accomplished by forgoing the ...
0
votes
0answers
36 views

section in-line numbering and vertical spacing with the titlesec package

I am writing a class file for a template with very specific requirements. One of those requirements is that a section title must be bolded, centered, and be written in single-spacing with a single-...
0
votes
0answers
33 views

Differentiate Chapter Headings in ToC and Body

Working on formatting a thesis (using the book class) and I need to format the TOC entries and the actually chapter headings in very different ways. For the ToC, entires are in all caps and use roman ...
1
vote
0answers
49 views

Subsection title does not align with its section title under [left margin]

I put section title in left margin with use of titlesec package, and the first line of its text aligns with the title as expected. But its subsection title does not align. I tried with titlespacing ...
0
votes
1answer
120 views

font change for chapter, section, subsection titles

So, i am struggling to change the font for title/section/subsection in latex. Here is my code : % !TEX TS?program = pdflatexmk \documentclass[fontsize=12pt]{book} \usepackage[T1]{fontenc} \...
0
votes
1answer
50 views

Fail to renewcommand contentsname if \pagesty{fancy} is introduced

When I customize the \contentsname with \renewcommand, I find that the existence of \pagestyle{fancy} or \thispagestyle{fancy} will cause compile fail. I can't understand this. why? Is this a problem ...
1
vote
1answer
35 views

Incompatibility of scrbook and titlesec when trying to have chapter heading on a single page

I am trying to display a chapter heading always on a single page with the document class scrbook. Gladly, I first found an answer here: How to display chapter header in 1 complete single page The ...
0
votes
1answer
51 views

Illegal unit of measure all chapters titlesec

I am trying to configure how my chapter headings look. So far, they looks as I want. However, there are some errors. All my \chapter are having these errors: Illegal unit of measure (pt inserted). \...
0
votes
0answers
45 views

Section numbering and package “sectsty” together with “titlesec”

I use both packages. However, if I load sectsty before titlesec the section numbering of a subsubsection ends with 1.1, but has to 1.1.1. And if I load titlesec before sectsty, subsubsection ...
2
votes
1answer
40 views

Arguments transmission in \titleformat of titlesec

I want make my own style of titles(section/subsection... etc.) by the package titlesec. The title name is specified by a macro. But it fails to pass compile. This do is a problem also for the other ...