The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [titlesec]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Redefine \part title with fncychap Glenn

Inspired by this example, I would like to do something similar with \part with the only exception being that I would like to use the Glenn instead of the Conny style from fncychap. titlesec appears ...
2
votes
2answers
84 views

tilesec error with babel

\documentclass[ukenglish,10pt,a4paper,openany]{book} \usepackage{babel} \usepackage[pagestyles]{titlesec} \titleformat{\chapter}{\normalfont\Large}{\thechapter}{12mm}{}[\titlerule] \...
4
votes
1answer
41 views

Titlesec - vertical align \chapter and \section

I've found a nice \titlesec style for my chapter that I want to use for my thesis. Unfortunately the \chapter text doesn't align vertical with the \section text: (I've added the red line in paint to ...
0
votes
0answers
22 views

How to remove space before chapter title?

I am writing a thesis report and when I start including the chapters in preamble, there's a huge space before the title. The first thing that should appear on the page is CHAPTER 1, then in next line, ...
1
vote
1answer
32 views

Single Space Title in Article Class

I am writing a paper in the article class with a very long title. Here is an MWE: \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{setspace} \newcommand\e{\emph} \newcommand\tb{\...
8
votes
1answer
167 views

Conflict between titlesec package and scrbook class after most recent update of TeXLive2019

I just performed a full TL update (--all) (1 hr ago) and noticed that one of my documents which used to compile OK now gives an error. After trial and error, found the problem shows up when including ...
0
votes
0answers
9 views

Customising two-part chapter titles with titlesec

I have a question about the formatting of chapter titles with titlesec. I would like my chapter titles to broadly adhere to the display option similar to the one in this example, based on the code ...
1
vote
3answers
67 views

Toying with `titlesec` to maximize text inside a page and fancy features

This is a follow up to controlling the gap between footer and body of text. Remember, the goal is to max text within a page. To that end, how can I use the drop or wrap shapes to work using titlesec (...
2
votes
1answer
38 views

How to emphasize parts of title when italic

In a book project of mine, journal titles always have to be in italics, also in titles, also in the TOC. But what to do if the style dictates that some titles shall be italic in themselves? What I ...
0
votes
1answer
35 views

How to set different fonts for headings, text and captions

I want my Chapter names, section/subsection/... and other similar titles to be in gfsneohellenic Main text to be in libertine and libertinust1math. The captions of figures and tables will be some ...
0
votes
0answers
42 views

How to get attractive table of contents in Latex

I am currently using the \tableofcontents from \usepackage{titlesec} to insert the table of contents in my report. Are there any templates available in LaTeX for a more attractive table of contents ...
1
vote
1answer
26 views

Spacing of Chapter Name and Chapter Number when using package sectsty

Hello my dear fellow latex users! I've been trying to fancy my thesis by setting a color to the chapter names and in order to do so, I used the package sectsty, because I am using a template where if ...
1
vote
1answer
33 views

How to get back Arsclassica's default section style

I'm using the arsclassica option of the classicthesis package. I changed the section's format so that they are aligned to the left on odd pages and to the right on even ones. In doing so I lost the ...
2
votes
3answers
37 views

Using titletoc to redefine chapter toc entry as part number + chapter

I am trying to get the part number appended to a chapter within that part. E.g. I would like to get: I Part One I.1 Chapter One I.2 Chapter Two II Part Two II.3 Chapter Three II.4 Chapter ...
1
vote
1answer
34 views

Vertical space between a theorem environment and a customized section title is large

I need to mark some section titles with asterisks to represent special sections. I adopted the method provided by titlesec document (sec. 6.7). Also, I found this topic had been discussed here. ...
1
vote
2answers
53 views

How to set margin between section number and section title in TOC?

I want to create a TOC, that will have equal margins between section numbers and section titles regardless of the number of digits in section number. I have an example of solution, but I want to use ...
1
vote
1answer
26 views

Using tocloft together with titlesec

I'm using tocloft for modifying the appearance of my toc. But it will disable the style of the toc title modified with titlesec. If I disable \usepackage{tocloft} and the two renewcommands, my ...
0
votes
2answers
41 views

How to format chapter headings like section headings with no pagebreak and in twocolumn mode

I looked into a dozen threads on how to get chapters to not produce a new page. None of the solutions worked for me. For instance, this solution, produces an error when two chapters occur on the same ...
3
votes
1answer
76 views

Titlesec not showing bookmarks in right hierarchy and not correctly typeseted in ToC for new classes

I'm creating new classes with titlesec package to work in this hierarchy: PART - Prechap -- Presec --- Presubsec I implemented them as seen in the MWE below. When I compiled the file ...
3
votes
3answers
41 views

Using the titlesec package with dgruyter style gives “Error: Entered in horizontal mode”

I'm trying to use the titlesec package with the dgruyter style from this page, and I get a compilation error "Error: Entered in horizontal mode." Many questions already exist for this error, but none ...
0
votes
0answers
26 views

Change font type and size of all section and subsection headings

The font for normal text should be Times New Roman. But I want to change the section and subsection headings to Uppercase-Arial-12 Size.The MWE is shown below. documentclass[letterpaper,11pt]{...
0
votes
1answer
32 views

How do I add chapter title format in appendix?

MWE \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{makeidx} \makeindex \usepackage{tikz} \newcommand{\chaptercolor}{blue} \titleformat{\chapter} [display] {\normalfont\filcenter} {\...
1
vote
1answer
52 views

How to align the section title and its subtitle?

I'm using the extarticle class and I want to have a \subtitle command to add subtitles for sections. Here's what I expected: Here is my current solution, quite ugly to be frank: \documentclass{...
0
votes
0answers
16 views

report - headings of part/chapter on same page and each of them on same line

I am using the report document class and would like to have part and chapter headings on the same page and each of the headings on the same line. I already found a solution to have the two headings on ...
1
vote
1answer
44 views

Changing section font in a res document

I'm using res.cls to write a CV. I'd like to unbold the section title and use the italic font (as the picture below). \documentclass[margin]{res} \setlength{\textwidth}{5.1in} % set width of text ...
0
votes
1answer
40 views

How include two horizontal lines below and above section in scrartcl as well as “Chapter X” label?

I am using the scrartcl document class in LaTeX (and I need to use this for several reasons). Now, I want to get something like this for every section: Currently I am doing the following: \...
2
votes
2answers
52 views

titlefont, chapter, section

I am struggling to get chapter section like the picture below. So far i have got this which basically not produce the sectioning i want My code is as; \usepackage{titlesec,geometry,lipsum} \...
0
votes
0answers
34 views

Spacing different between two different versions of XeTeX

I am struggling with a project where the output is different depending on the PC I build the LaTeX file. I have reduced my original document to this snippet: \documentclass{article} \usepackage[...
1
vote
1answer
21 views

Titleps pagestyle not applying to chapter opening pages

In the below MWE, my custom page style cannot get applied to the first page of a chapter, as can be seem be examining the style of the page number; all subsequent pages seem to be styled corretly. Why ...
1
vote
1answer
34 views

customise only one section

I have already asked this question but I have not received answers. I tried to find a solution but I still have problems. I want to make a document in which all the sections appear with a style and ...
0
votes
1answer
41 views

Changing the subsection color modify page header

Here is my problem: I'm trying to recreate my university template. I created an article document where the first page has a different header and footer than the other pages. It's a little bit dirty ...
0
votes
1answer
71 views

Customize a single section [duplicate]

How can i customize the title of a single section that would be different from the titles of the other sections, for example, frame the section title exercises. Something like this picture :
1
vote
2answers
43 views

Surround chapter number with horizontal rules

I want to format my chapter headings so they look something like this: ------ 1 --------------------------------- % horizontal rule here Here is the title for chapter 1 -------------------...
0
votes
1answer
24 views

Need border or underline Heading/Section

I am using the article class and need to underline or put a box around the section. It's a resume heading so it needs to be neat. \documentclass{article} \usepackage[a4paper,bottom = 0.6in,left = 0....
4
votes
1answer
59 views

How to write Chapter no. left side with this code

I want the chapter no. along with chapter title. Chapter No. it should be left side on top. \documentclass{book} \usepackage{tikz} \usepackage{fourier} \usepackage[explicit,calcwidth]{titlesec} \...
3
votes
2answers
58 views

How do I change a section title to include a small note?

I am creating an information document for some animals that I work with at a zoo. The general format that I would like to use is: \subsubsection*{\color{Blue}Animal Name}\textit{scientific name} ...
3
votes
2answers
148 views

titlesec’s update 2.10.2 → 2.11 caused subparagraphs not working in scrbook+classicthesis

I read that classicthesis is somewhat incompatible with KOMA-script, nevertheless I am working on a large document that uses scrbook and classicthesis (that invokes titlesec) and this pair has been ...
0
votes
0answers
31 views

Chapter header in separate page with tikz design

My question is exactly the same as this one: Chapter header wanted in a separate page except I also want to use a tikz environment inside the 'label' section such that I can make a nice design of ...
4
votes
1answer
148 views

Make decrease the space between title of list of figures and list of tables on the same page

I try to reduce the space between the title name of list of figure ("Liste des Figures" on the image below) and the list of figures. I would like to do the same for the title name of list of tables ("...
0
votes
0answers
22 views

Simplest way to color section names in amsart

I would like the font of the title of every section (and subsection) to be colored (say, blue, but ideally want to be able to use colors from the xcolor package). I am using the amsart document class ...
0
votes
0answers
24 views

Error while redefeiing part

I want to customize the part in latex with the following code : \documentclass{article} \usepackage[margin=2.5cm]{geometry} \usepackage{titlesec} \usepackage{tikz} \newcommand*\partlabel{} \...
0
votes
0answers
30 views

How do you change the font style of a part or section without changing its size and spacing?

I'm trying to make all of my parts, sections, and subsections in article class \scshape. First, being the naïve LaTeX user I am, I tried \renewcommand{\part}[1]{\part{\scshape #1}} and \renewcommand{\...
3
votes
0answers
51 views

two double spaces above heading iff text is above

My dissertation style guide specifies double spacing throughout, and two double spaces above section or subsection headings if there is text above the heading but a normal double space if there is ...
0
votes
0answers
16 views

How do I specify font size for headings in my Latex file? Also Contents page is not showing 'abstract' 'acknolwdgement''

% I want chapter heading {INTRO} to be of font 16, section heading of 14, and %subsection of 12. \documentclass[a4paper,12pt, twoside]{report} \usepackage[margin=1in]{geometry} \usepackage{...
2
votes
1answer
55 views

Is it possible to vertically center a chapter title and a big chapter number side by side?

This would have been so easy to do in ConTeXt... :( I've been trying with this layout for a while now, and nothing seems to work as I intended. I have a custom chapter title, created with titlesec....
0
votes
0answers
24 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
40 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
36 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
64 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
22 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 ...