{titlesec} is a package providing an interface to {sectioning} commands.
3
votes
2answers
55 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
30 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
52 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
52 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 ...
3
votes
2answers
104 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 ...
4
votes
1answer
31 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 ...
5
votes
0answers
84 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
87 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
50 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
70 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
68 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
47 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
90 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
82 views
modifying the page header
This is a MWE
\documentclass[paper=a4,10pt, twoside]{scrbook}%
\usepackage{tgtermes}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\makeatletter
...
5
votes
1answer
92 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:
1
vote
2answers
101 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
61 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
54 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 ...
0
votes
1answer
53 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 ...
2
votes
1answer
50 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 ...
1
vote
0answers
27 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
62 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
77 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}
...
0
votes
1answer
89 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
58 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
135 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 ...
2
votes
1answer
258 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
100 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}
...
2
votes
2answers
135 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:
...
3
votes
2answers
195 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
63 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 ...
1
vote
1answer
81 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 ...
4
votes
1answer
107 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 ...
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
324 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 ...
7
votes
2answers
138 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
74 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
127 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 ...
1
vote
1answer
119 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
104 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
103 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
...
4
votes
2answers
162 views
Heading number in margin using titlesec and/or komascript
Using titlesec and/or komascript how do I format all headings so the number is left aligned in the margin, the title to the right, with a horizontal rule underneath it all (from margin to text width ...
15
votes
4answers
300 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
101 views
Special chapter title formatting
Using the book class. I would like to have chapter titles that look like this:
| CHAPTER ## |
| Chapter Title (italic) |
Can titlesec do this?
0
votes
0answers
141 views
Paragraph headings followed by line space and no indent, but indents or line space for “unheaded” paragraphs [closed]
I would like to have paragraphs with a heading followed by a line space (i.e. blank line) and then no indent for paragraph text after that line space.
By "paragraphs with a heading", I mean ...
1
vote
1answer
66 views
How do I hide “Chapter 0” in this custom style when using a numberless chapter?
Everything works perfect when I use \chapter{chaptername}, but I noticed that my table of contents and other similar non-numbered chapters have a "Chapter 0" in my header.
\titleformat{\chapter}
...
0
votes
1answer
102 views
\titleformat does not seem to work when used within a class file
The following block of code doesn't seem to do anything when I define it in a custom class. But when I use the class but put this block in my preamble, it works as expected.
\titleformat{\chapter}
...
3
votes
1answer
120 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 ...




