1
vote
1answer
30 views

Too much vertical space after long section title using titlesec

I'm using titlesec to change the style of my section titles. Sometimes, when the title is long, but just short enough to fit on one line, some extra vertical spaces is add. The following MWE ...
5
votes
1answer
17 views

Spacing after first line with titlesec using runin option in titleformat

I'm using the titlesec package to format my (sub)section titles. I'd like to use the runin option in \titleformat to place my subsections titles within the first paragraph of each subsection. However, ...
3
votes
1answer
38 views

How to get the chapter title in a single page - titlesec

Because of my thesis report style, I want to have the chapter title in a single page. I'm working with titlesec package. I used \clearpage and \newpage to solve this, but doesn't work. I also used ...
2
votes
1answer
17 views

Modifying Section Style modifies the style of Contents in ToC

In the article class, if the style of the section heading is changed, the style of the contents heading in the Table of Contents is also changed. How to prevent this? ...
2
votes
2answers
86 views

redefine starred command \section*

with \usepackage[explicit]{titlesec} I have defined \section like \titleformat{\section} {\ttfamily\Large\bfseries\color{red}} {\thesection} {1em} {#1} i want to redefine the starred ...
1
vote
0answers
74 views

How to get just ONE space between the number of a section's title and its title in the TOC (memoir class)?

In my Toc Iam trying to get just one space from the escape key between the number of the section and its title. Example (TOC): 1. My section For the moment, I am using this many time: ...
2
votes
2answers
47 views

How to create a subsubparagraph appearing in the TOC ? (memoir class)

I'am trying to create a subsubparagraph counter. \titleclass{\subsubparagraph}{straight}[\subparagraph] \newcounter{subsubparagraph} ...
3
votes
1answer
35 views

Equivalent of titlesec with sectsty

I am using \usepackage{titlesec} \usepackage{tipa} \titleformat{\section} {\normalfont\huge\bfseries} {\thesection\hskip 10pt\textpipe\hskip 10pt} {0pt} {} for formatting my sections. The ...
3
votes
4answers
66 views

Spacing capitals in section headings

I'm using titlesec to customise my section headings. I want to have my subsections in capitals, which I can achieve with the \uppercase function, but all typographic style guides suggest that caps ...
2
votes
2answers
89 views

Section Headings With Long Titles

I am trying to use latex to write my thesis, and I have modified a template to use, but am having trouble with some of my section headings. Specifically, with the weird spacing between words caused by ...
3
votes
1answer
53 views

How to not display chapter number in section number (titlesec)

I'm using titlesec to manipulate title and section and other. Here is what I'm using: \titleformat{\chapter} [frame] {\normalfont} {\filright \footnotesize \enspace LP \thechapter ...
5
votes
1answer
61 views

How to generate a “<section>-continued” heading after page-break which works with longtable?

I have read the question and answers about the "-continued" heading. The code given in the answers doesn't help me. Thats why I am posting a follow-up-question here. I want to re-display the ...
7
votes
1answer
196 views

Custom chapter style with Tikz and the report class

I'm trying to use the same procedure than Customizing chapter style with tikz, for the report class and twoside printing. However for even pages i'm having an unespected behavior (see Fig 2). While ...
3
votes
2answers
66 views

Unbold section and subsection heading [duplicate]

I am using this format for my section and subsection headings (it is centered and numbers have dots): \documentclass[12pt]{article} \usepackage[center]{titlesec} \titlelabel{\thetitle.\quad} %dots ...
22
votes
2answers
403 views

Gradient fill around section headings

Trying to make a document that has gradient fill around section titles, that are not effected by margins, as such: I managed to get the gradient effect but I can't figure out how to get it to start ...
1
vote
3answers
168 views

Chapter Title adjusting with koma-script

The following minimal working example is not giving me the desired results. I would like to keep the chapter titles layout, but without using the titlesec package. The titlesec package is interfering ...
2
votes
2answers
55 views

Misalignment chapter titles with hang option of titlesec package and redefined \cleardoublepage

When I redefine the command \cleardoublepage to include the words "This page has been intentionally left blank", the titles of the chapters are misaligned. \documentclass{book} \usepackage[a4paper, ...
8
votes
1answer
295 views

How to make this chapter heading style?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? title ...
3
votes
1answer
69 views

Sectioning using \titleformat results in problems with \subsection*

I am trying to write a Preface with subsections, but without sectionnumbers (since the preface is technically not really part of the report). The sections and subsections are constructed using ...
4
votes
2answers
78 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
6
votes
1answer
116 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
7
votes
2answers
127 views

\newcommand for centered \section

I am trying to use the titlesec package to achieve this but I'm not certain as to what the syntax should be... \usepackage{titlesec} \newcommand{\centeredsection}{\titleformat{\section}{\centering}} ...
3
votes
1answer
57 views

How can I create a 'little subtitle' for a section? [duplicate]

Here's my code: \documentclass[]{article} \usepackage{titlesec} \begin{document} \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] \section*{29th March ...
6
votes
1answer
77 views

Making section headers look like chapter headers

I would like to make my section headers look like this with the titlesec package. Is there a good way to do that? EDIT - I am using the scratcl document class.
3
votes
1answer
90 views

titlesec image after

Can someone explain to me why the second of these two doesn't work? The first produces an image before the section name, where the second produces an error claiming there is no \begin{document} ...
11
votes
2answers
376 views

How to achieve this chapter style without using the memoir class?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? Table ...
5
votes
1answer
200 views

Width of \chapter section with titlesec

I use the titlesec package for styling the sectioning commands. But I have a problem with the chapter width or right margin: The width of the text should only reach to the blue line, "Organisation" ...
3
votes
1answer
65 views

\chaptertitle from titleps ignored after redefinition of \chapter macro

The following MWE shows that, if the \chapter macro is redefined as in a previous question of mine: Prepend different stuffs to starred and unstarred \chapter commands, the \chaptertitle macro from ...
6
votes
1answer
141 views

Have the chapter title stick out of the type area

I'm trying to place my chapter titles to the edge of the page, with a colored background box surrounding them. The surrounding boxes would need to be set outside of the body of the document. So far I ...
2
votes
2answers
139 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
4
votes
1answer
855 views

Formatting chapter headings using the titlesec package

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts. I'd like to change the chapter style. Instead of Chapter 1 Introduction I'd like to have C H A P T E R 1 ...
4
votes
2answers
206 views

Chapter title format back to default

I messed with various chapter title formats and now that I want to go back to default i.e Chapter 1 Title I only get 1.Title which misses "Chapter 1" appearing before the chapter title. I ...
5
votes
2answers
515 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
2
votes
1answer
105 views

Why won't I see the table of contents?

I tried to write table of contents to my book but encountered a problem, as it prints "Sisältö" but there is no table of contents. What is the mistake I made? ...
2
votes
1answer
58 views

Properly render unnumbered sections

I have added an \ast before every numbered section by adding \titleformat{\section}{\Large\scshape\bf}{$\ast$}{.5em}{\thesection ~}. However, it produces improper rendering for unnumbered sections. ...
2
votes
1answer
67 views

Chapter Name not appearing

I wanted to style the chapter name. I referred the following link : how-to-create-specific-chapter-style-in-book-documentclass Here is my code: %Template for Technical Document \documentclass{book} ...
4
votes
1answer
114 views

How to get sentence case in section titles without biblatex

I would like to change my section titles into sentence case just like the solution here: How to make sections into sentence case The titlesec package is already included in my document to modify ...
3
votes
1answer
114 views

Spacing after section title with res.cls

It is possible to change spacing after a section title with following \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{1em}{2em} However, when I am using res.cls by \documentclass{res} ...
2
votes
1answer
79 views

Alignment of the subsection changed after styling

I applied some styling to my page.But my alignment of the sub section headers changed.Here is the code: \documentclass[12pt,oneside]{book} \usepackage{graphicx} \usepackage[explicit]{titlesec} ...
10
votes
2answers
748 views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
2
votes
1answer
58 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
3
votes
1answer
267 views

Titlesec problem, defining space before section with \titlespacing

I am using the article document class and have trouble with the \titlespacing command of the titlesec package (explicit). I want to have more space before the \section. MWE: ...
7
votes
1answer
134 views

Problem using a tikzpicture in \titleformat

I'm trying to customize the style of my chapter headings with tikz. Unfortunately, I can't figure out how to properly use tikz in the (optional) ⟨after⟩ argument of the the \titleformat command. With ...
1
vote
0answers
48 views

titleformat deviation from specified vertical space

I have specified using titleformat (titlesec) the distances around different headings. This works fine, however sometimes, LaTeX deviates from the specified spaces, presumably to better fill up the ...
2
votes
1answer
292 views

Titlesec numberless section numbering

I've run into a problem where with using titlesec where my numberless sections are numbered. I took a look at a few other questions here, and the titlesec package help, where I saw the numberless ...
3
votes
1answer
89 views

Define number in \subsection in book class

I must define number be for subsubsection form : \chapter : 1 \section : 1.1 \subsection : 1.1.1 \subsubsection : 1.1.1.a Can you help me define form.
9
votes
3answers
187 views

how to get chapter title in a rectangular frame

how to get chapter heading like this in pdflatex can titlesec be used? % hanging chapters \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont \Large \bfseries}{\chaptertitlename\ ...
5
votes
1answer
119 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
5
votes
1answer
195 views

Flexible rule length in titlesec

I'm trying to get a rule just after the label of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this: \titleformat{\chapter}[display]% ...
10
votes
1answer
167 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...