{titlesec} is a package providing an interface to {sectioning} commands.
1
vote
0answers
28 views
Figure between title number and title
I'm using titlesec package and \titleformat command in display shape mode. (Unfortunately I am forced to do it, it's the format required for MSc thesis in my university...). The command in my .cls ...
2
votes
0answers
35 views
Titlesec and Babel incompatibility?
I cannot find a way to change chapter style with babel included (for hungarian language). Here is the example:
\documentclass[a4paper]{report}
\usepackage[magyar]{babel}
\usepackage{titlesec}
...
24
votes
3answers
8k views
How to set the font for a \section title (and chapter etc)
How do I specify the fonts, and general font size, for the titles, chapters and sections in my document
Update:
I can see how my question is confusing.
I use \section and \chapter etc. to organise ...
3
votes
2answers
57 views
Don't want sections to have titles/headers [duplicate]
If you use a default section in an article like this:
\section{something}
Lorem ipsum dolor sit amet
you get the "1 something" in the toc. And your page looks like this:
1 something
Lorem ...
3
votes
1answer
38 views
titleformat has no effect!
I have tried to specify the color for my section as shown here, but it has no effect. What am I doing wrong?
MWE:
\documentclass[10pt,letterpaper]{article}
\usepackage{lipsum}
\usepackage{multirow}
...
4
votes
1answer
53 views
Same vertical spacing for chapter and chapter*
I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter.
I use titlesec and the styling of the chapter headings is this:
\documentclass[10pt,a4paper,openany,oneside]{book}
...
...
3
votes
2answers
108 views
Alignment marginnotes
I am trying to write a report for Uni, where I need something like what marginnotes does. The problem is I would need two different margins on the left side of the page. One for the chapter or ...
3
votes
2answers
54 views
Section command with default spaces between title and rule
Ho can I make a section command that have the same spaces between the \titlerule and the title of the original \section command? The overall look must be equal to the original \section command. So, Is ...
5
votes
1answer
95 views
chapter style with lateral bar
Is is possible to have a different text/layout for the chapter page, and a vertical bar?
What I want to achieve is something like this:
4
votes
1answer
35 views
Is there any way to put the section numbers after titles like “axiom”, “theorem”, etc?
The normal LaTeX input and output would be something like
\subsection{Theorem (Fundamental Theorem of Calculus)}
1.1 Theorem (Fundamental Theorem of Calculus)
Is there any way to use a ...
4
votes
2answers
165 views
Custom titlemarks
My title marks are not working as I want them to. I had to move away from using the native section and subsectionand therefore my title marks does not work. I had a look at the extramarks feature of ...
5
votes
0answers
87 views
titlesec titlemarks not working with pdfcolparallel
As you can see from the screenshot the numbers showing the verse locations in the titlemarks only show the very last values which were set. If you comment out the line \usepackage{pdfcolparallel} and ...
3
votes
1answer
107 views
Chapter title alignment with titleformat
I am trying to typeset a title with titleformat as in the following example:
I like the overall result, but when the title wraps around it is not left-aligned. Is there any way to indent the second ...
4
votes
1answer
51 views
Bad cross-reference using titlesec
When I define two new level using titlesec, the reference doesn't work correctly.
This is an example:
\documentclass{article}
\usepackage{titlesec}
% First level
...
4
votes
1answer
73 views
how to add number to the title of sections and subsection using the titlesec package
I am using the titlesec package but the numbering of section and subsections disappeared. I need to retrieve it. my code is
...
3
votes
2answers
70 views
The problem with the command: titleformat it is important
This is my first post here.
I am using a few commands and packages to make the titles behave according to my thesis specifications but when I used the \titleformat I get an error:
! Package ...
0
votes
0answers
50 views
titlesec and fancyhdr not compatible?
When I am writing my thesis, I define a new pagestyle called "main" using titlesec package, for all the chapters, as follows:
\newpagestyle{main}{
\sethead{\bfseries \chaptertitle}{}{\bfseries ...
4
votes
2answers
92 views
How can I get legal style indentation on section, subsection, subsubsec.. using titlesec?
So far, I've been trying code from various examples, and landed with:
\usepackage(titlesec)
\titleformat{\section}[block]{\bfseries}{\thesection.}{1em}{}
...
0
votes
1answer
83 views
modifying the page header
This is a MWE
\documentclass[paper=a4,10pt, twoside]{scrbook}%
\usepackage{tgtermes}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\makeatletter
...
1
vote
2answers
104 views
Spacing before and after section titles
I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command ...
3
votes
2answers
65 views
\clearpage after every subsubsection
I'd like to clear the page at the end of every \subsubsection. I tried
\usepackage{titlesec}
\newcommand{\subsubsectionbreak}{\clearpage}
But this appears to force a \clearpage at the start of ...
2
votes
0answers
56 views
Follow-up question to: titlesec: \sectionmark breaking \ifthesection?
In answer to this question egreg showed how to trick titlesec into ignoring the fact that sectionmark command makes \ifthesection false when defining customization commands in headers. The solution ...
2
votes
1answer
52 views
\titlespacing* defaults using the compact option
Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the ...
0
votes
1answer
57 views
Strict \titlespacing without glue
Problem Description
TeX seems to adjust the vertical space in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization ...
1
vote
0answers
28 views
Latex: conflict titlesec and tikz packages [duplicate]
I am using the IEEEtran class and I also call in my preamble the titlesec and tikz packages.
If tikz is not called my code runs fine. Otherwise, (when calling the tikz package) I am given this error ...
4
votes
1answer
45 views
Using \toptitlemarks and \bottitlemarks with any counters
\toptitlemarks and \bottitlemarks don't seem to work with random counters:
\documentclass[paper=a4,pagesize=pdftex]{scrbook}
\usepackage[pagestyles]{titlesec}
\usepackage{lipsum}
...
3
votes
1answer
63 views
New titleclass not counted in the table of contents
The following defines a new titleclass which I would prefer not counted in the table of contents defined. How can this be achieved?
\documentclass{book}
\usepackage{titlesec}
\usepackage{titletoc}
...
5
votes
1answer
83 views
Spacing in \chaptertitlename
Consider the following MWE:
\documentclass{book}
\usepackage{titlesec}
\usepackage{lipsum} % just to generate text for the example
\usepackage[tracking=smallcaps]{microtype}
...
2
votes
2answers
149 views
extra } when use titlesec package
In the .tex file, I want to use the package titlesec. But there is a error:
! Argument of \subparagraph has an extra }.
Is there some simple method to fix this?
The code is:
...
0
votes
1answer
95 views
fancy heading … \section{} titles disappears
By combining the next two questions-answers Fancy chapter headings and Section title gradient
. I have this effect.
The problem is that the name of \section{} disappears. What is wrong?
...
1
vote
1answer
61 views
How to use a counter inside \titleformat in LaTeX?
I am writing a text in LaTeX and I want my \paragraphs to be numerated. I am using package titlesec and the following sentences:
\newcounter{artNumber}
\setcounter{artNumber}{1}
...
3
votes
1answer
138 views
Custom chapter title protruding in left margin
Based on this answer, I tried my hand at defining my own chapter title formatting. The idea is to align the chapter title to the right (a chapter always opening on an odd page) and underline it with a ...
3
votes
1answer
124 views
Two-line spanning number in chapter title
I try to have the chapter's number in my document twice as big as the title on the left and the two-line chapter title on the right. The number should span two lines, so the two lines of the title are ...
3
votes
1answer
320 views
How to change section/subsection font size? [duplicate]
I'm writing a paper that requires the section titles to be in 12pt font, I can get the title to be in 12pt using:
\section{\fontsize{12}{15}\selectfont Introduction}
but the section number does not ...
3
votes
3answers
102 views
Double Names being included in Table of Contents
I have a final report that I am writing in LaTeX. I have a code to make the section headings appear in the center of the page (thanks to Jubobs):
\titleformat{\section}
...
3
votes
2answers
202 views
Section title with subtitle
I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
1
vote
1answer
66 views
Conflict between titlesec and colortbl
I'm getting a conflict between titlesec and colortbl that I can't seem to fix.
The minimal working example is below. As soon as I put a \section in, pdflatex errors with ! Missing number, treated as ...
5
votes
2answers
74 views
write to back page of part
I have defined (using koma-script), that chapters only start on the right side. The same applies to part pages. So far this is ok.
But now I want to insert a contents list (using titletoc) on the ...
15
votes
1answer
333 views
Different vertical spacing (parskip) between concurrent section titles and paragraphs
I'm trying to remove the spacing between section headings, but maintain the paragraph to section heading spacing.
Even though I set titlespacing before and after to *0, there is still spacing - quite ...
4
votes
1answer
116 views
Multiline title vertical alignment using classicthesis and arsclassica
I would like to align the 2nd line of my title to have the same baseline with the chapter number. What I have now is
, but I would like to have
instead.
I found that the tweak in How to get ...
1
vote
1answer
92 views
titlesec and \section* in \titleformat
I use \titleformat (titlesec package) to make some fancy headings in my documents. But I did not find a way to know, in the \titleformat specifications, if the section is made with a \section or a ...
7
votes
2answers
141 views
Page number in the margin and separator
I want to produce this kind of header.
My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
2
votes
1answer
77 views
Transfering Style of Sectioning-Titles to TOC-, LOF-, LOT-Titles
This is a continuation of my last (answered) question:
I want to style the Title of TOC, LOF and LOT exactly the same as the Sectioning-Titles. Problem is that they (a) start "higher" than normal ...
5
votes
1answer
131 views
Emulating book-class-sectioning using titlesec and modifiying it
In short:
Prerequisite: Need to emulate book-class for \part and \chapter using titlesec
Change both to hang, start on same page
Add titlerule to \chapter
I want to optimize my rather hacked ...
2
votes
1answer
73 views
Make the titles centered using the titlesec package
I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
15
votes
4answers
306 views
Using fixed space aroung headings to get text in sync with baseline grid
In order to make my text stay in sync with the baseline grid, I've set the vertical spacing before and after \section headings to integer multiples of \baselineskip (using the titlesec package). A ...
1
vote
1answer
122 views
Titletoc and Titlesec in just some chapters
I have a twocolumn document and I should insert the minitoc in the first chapters with titlesec and titletoc. I read the answer to Customize minitoc; however, if I change the \titleformat before ...
6
votes
1answer
106 views
Why do I need \newrefsegment when I already specify refsegment=section?
The following works well and shows exactly what I want. I am just wondering
about this: Why do I have to use \newrefsegment, if I already specified
refsegment=section? I expected everything to work ...
2
votes
1answer
109 views
how to color the header's bottom line or footer's upper line?
The title is self-explanatory.
In my document's current state, I get this rendering result after compiling with XeLaTeX :
Here's a MWE of which packages and commands I use to obtain my current
...
8
votes
2answers
991 views
How to get multi-line chapter name with ClassicThesis package?
I'm using the ClassicThesis by Miede for writing my thesis, the support package is Arsclassica.
It's a nice template, however I got a little problem with the Chapter name, some of them can be very ...

