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

learn more… | top users | synonyms

3
votes
1answer
690 views

Center body and left margin in page

I'm using the titlesec package to put section titles to the left of their body, but I'd like for the entire page to appear centered. That is, I'd like for the space from the far left of the page to ...
1
vote
1answer
436 views

is it possible to fake the amsart class format?

I often use the amsart documentclass. I like it because it is very compact (it also seems to be an industry standard in my area). What I don't like about it is that I'm not able to use kpfonts or ...
4
votes
1answer
493 views

\addvspace after a titlesec heading

So, I'm trying to make an environment that is always padded above and below by a certain vertical space, no more and no less (unless the previous or following elements require even more space). My ...
10
votes
1answer
269 views

Strange behaviour of \renewpagestyle from the titlesec package

The following code uses the pagestyles option and \renewpagestyle from the titlesec package to redefine the plain style: \documentclass{book} \usepackage[paperheight=12cm]{geometry} ...
9
votes
1answer
659 views

Temporarily modifying the chapter headings' layout

I would like to modify the layout of some "special" chapters in my document, but afterwards reset to the layout I used before, i.e. \documentclass{report} \usepackage{titlesec} \begin{document} ...
1
vote
1answer
270 views

Conflict between the packages titlesec and marginnote

In the following code, the use of the package titlesec modifies dramatically the formatting based on the package marginnote. The package titlesec is needed so as to use this. Is there one possibility ...
23
votes
2answers
2k views

Incompatibilities between KOMA-Script and titlesec

This is a complementary question to About memoir and titlesec incompatibility. The titlesec manual states (p. 2) that the package [...] works with the standard classes and with many others, ...
4
votes
1answer
565 views

Current section title macro using titlesec

I have a macro that contains the title for the current section, however when using the titlesec package, it no longer works for \section and \subsection. I know titlesec redefines the functions I'm ...
3
votes
1answer
3k views

Usage of titlesec package when numbering sections

This question evolved from my earlier question posted here. It turnt out that what I gave as the MWE actually worked, so I investigated a bit and found the real problem. I have a document in which I ...
19
votes
1answer
904 views

About memoir and titlesec incompatibility

In page 2 of the titlesec documentation, Javier Bezos writes titlesec works with the standard classes and with many others, including the AMS ones, and it runs smoothly with hyperref. ...
11
votes
1answer
4k views

Adding section number after section title with titlesec package

I am having difficulty adding the section number after the section title. Normally the order is section number followed by section title. I want it to be the opposite. I am looking for what I should ...
4
votes
2answers
658 views

insert code before chapter title

I would like to insert some code before the chapter title appears. I have defined: \newcommand{\toptitle}[2]{\itshape #1 \hfill #2 \par} Then, if I am writing for example: \begin{document} ...
7
votes
2answers
1k views

Section titles, hyphenation, manual line breaks - and how to avoid them

I have several section titles in my document that are getting hyphenated, which is quite ugly. I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
6
votes
1answer
2k views

titlesec: Vertical space that I don't want

Again me, still trying to emulate a very specific layout... I used the titlesec package to define chapter and section titles, and am very pleased with the outcome... except of some ponts' worth of ...
1
vote
0answers
140 views

Subsection language problem [closed]

I work with LaTeX on Windows XP (MiKTeX 2.8, LEd 0.53) and I use Polish fonts that has several unusual letters like "ą, ż, ć" etc. I work in book mode and the problem is that I don't get Polish ...
2
votes
1answer
208 views

Firsttitlemarks does not appear consistently in header

I am using this code for my header marks, but as you can see it misses the very first mark for the subsection which should be the first verse. % definition of the page style with required headers ...
11
votes
2answers
318 views

Fix indent for section title

I like to recreate the layout of an official template, in order to get rid of Word. Because the template is from the government, I must recreate it 1:1. In the end, the document should look like ...
9
votes
3answers
4k views

Underline and center headings

For a paper I have to make my LaTeX document guideline conforming. Many of you will already guess now that this means dirty work by violating virtually all possible typography standards. My biggest ...
2
votes
1answer
212 views

titlesec: toptitlemarks and bottitlemarks broken when \section not called explicitly

This question is linked to my previous chapter-and-verse-in-header question I am trying to produce a Bible text where the Chapter and Verse references appear in the header of each page. As can be ...
4
votes
2answers
437 views

Chapters and verses of current page in header

This question is linked to my other titlesec question Does any one know how to add the current segment location at the top of any particular page. What I need is the reference at the top of a ...
4
votes
1answer
425 views

Funny-ness with titlesec and section labels (“missing \begin{document}”)

Having a problem somewhat akin to "How to put section number into the right side of section title in LaTeX" (and neither of the two answers there floating my boat), I was tinkering with titlesec, and ...
0
votes
1answer
1k views

How to change the section font to specific size by using \titleformat?

I want to set the section font to the specific size and type. But using \titleformat can only give few standard types, like Large, large... \titleformat*{\section}{\LARGE\headingfont} ...
3
votes
1answer
1k views

Suppress page number from Chapter side titlesec

I'm struggling with removing/suppressing the page number from pages with chapter headings. When using \usepackage[pagestyles]{titlesec} and \newpagestyle{mystylep}{ \setfoot{}{}{}} the page ...
1
vote
2answers
1k views

Customizing Table of Contents Formatting

For the most part, the default formatting for the ToC, LoF, and LoT is fine. But I need to add an extra line (university's requirements for my thesis) between each numbered entry. In order to do this, ...
1
vote
1answer
292 views

Help understanding/debugging spacing around headings (and other places)

I am trying to get my headings set up to meet my university's thesis formatting requirement. I'm using the titlesec package because it has the ability to suppress the spacing before the second heading ...
11
votes
3answers
1k views

Customize headers without fancyhdr

I have strange, old book chapter to rewrite in LaTeX. The most iritating thing is the header. On odd pages the header should consist of the section name etc. But the problem is that if the page starts ...
2
votes
3answers
3k views

How to change the style of “Contents” heading?

Help me, please to make the style of "Contents" heading to be as \chapter{Le choix du thème}. Also I would like to put all headings a little bit higher and to fix the hyperref for "Contents" in pdf ...
5
votes
2answers
270 views

Adjust settings that determine when sections should start on a new page/column

I'm using titlesec in a two column environment, and sometimes my sections start on a new page or the second column, and leave blocks of white space at the bottom of the previous page/column. I am ...
7
votes
1answer
1k views

Titlesec: remove space after empty margin section

I'm using titlesec to assign some custom formatting to my sections. In particular I want to use margin \section's, so that the title section is typeset on the left margin, and the text of that section ...
6
votes
1answer
475 views

Writing several lines before chapter title

How can I get the style like: chapter 1 bla bla bla bla ... bla bla bla bla ... A paragraph before chapter title --- this line is precisely on place where the first line of the other pages ...
1
vote
1answer
177 views

Why chapter label below the section label on new page even if by setting same spacing before title (use titlesec package)?

\documentclass{book} \usepackage[margin=0pt,papersize={50pt,70pt}]{geometry} \usepackage{titlesec} \titleformat{\chapter}{\Huge\bfseries}{}{0em}{} \titleformat{\section}{\Huge\bfseries}{}{0em}{} ...
4
votes
1answer
1k views

cleveref and titlesec, \section issues.

I have some problems with cleveref and titlesec, providing a minimal working example below: \documentclass{report} \usepackage{titlesec} %% <-- the issue as far as i know, but i need the package ...
5
votes
2answers
4k views

Removing vertical space before chapter headings.

I have a problem that I can't seem to solve. Basically, I want my chapter headings to be at the same position relative to top of the page as the rest of the text. I've looked at numerous resources ...
8
votes
2answers
2k views

How do I reset paragraph numbering only after new chapter?

I'm writing a report that needs some annoying formatting. The \chapters and \paragraphs need to be numbered using arabic numbers. The paragraph numbering needs to be reset at the commencement of each ...
2
votes
1answer
753 views

Passing shape argument to titleformat as a command

I aim at using to types of chapter headings in my document: for preambule and appendix, simple underlined upper case, while for the main chapters, I want to have a full page with "chapter n / Title" ...
3
votes
1answer
6k views

Hide part and chapter headings

Is there a way to completely hide the \part and \chapter headings when they are called (but still show them in the toc)? Maybe using titlesec? Note: I'm using something like this to capture the ...
1
vote
1answer
2k views

Use \titleformat inside \begin{document}

I would like to adjust section headings at some point in the document. However, \titleformat can only be used in preamble, something like the following fails: \documentclass{article} ...
1
vote
1answer
810 views

Hiding chapter headings and including chapter name in section headings

I would like chapter names to not be printed but to appear in each section heading. For example: \chapter{Mychapter} \section{} \blinddocument \section{} Would print something like Mychapter 1 ...
10
votes
1answer
1k views

titlesec, hyperref, algorithm2e, and \appendix

When I use titlesec, hyperref, and algorithm2e together, sections after an \appendix are not numbered properly. \documentclass{article} \usepackage{titlesec} \usepackage{hyperref} ...
3
votes
1answer
309 views

Strange interaction between natbib and algorithm2e

Here's a minimal example. \documentclass{article} \usepackage{titlesec} \usepackage{algorithm2e} \usepackage{natbib} \begin{document} \bibliographystyle{plainnat} \begin{thebibliography}{1} ...
3
votes
1answer
568 views

Section numbers behind section title

I'm an absolute newbie to TeX. I'm trying to get the section numbers of a section to be at the end of the title. In other words, something like "Question 4.2". Instead I get "4.2 Question 4.2" which ...
6
votes
1answer
4k views

Center aligning chapters

I'm using the following to center align chapters. Heres the code \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}} And using \cchapter to format chapters. But the chapter heading for eg. ...
4
votes
2answers
1k views

Vertical space after title of unnumbered chapters (bibliography/ToC)

The title pretty much says it all: It is possible to add arbitrary vertical space after the title of the ToC or bibliography page within the report document class?
4
votes
2answers
776 views

Memoir class — Displayed heading for subsubsection

I am trying to make a subsection heading with the memoir class. The problem is the following: I want to have a displayed heading for my subsubsection. The text should begin right after the subsubsec ...
14
votes
1answer
2k views

Section title gradient

Background Writing a manual using KOMA Script. The default fonts are perfect and should not be changed. Problem KOMA Script produces the following section outline: The desired outline looks ...
6
votes
1answer
3k views

Increase title spacing stretchability using titlesec with compact

I have a two-column document that uses the titlesec package with the compact option. This mostly produces the spacing that I like, but it doesn't give enough stretchability above the section titles ...
6
votes
2answers
9k views

How to set the chapter style in report class?

I want to set chapters to look like 'bigger' sections. Now in the report class I have a style like: Chapter 1 Introduction 1.1. Section What I want to achieve is: Introduction ...
8
votes
2answers
6k views

Section and subsection colors using titlesec

Im trying to alter the colors on my section, subsection and subsubsection. I do so using the titlesec page: \titleformat*{\section}{\Large\bfseries\sffamily\color{red}} ...
5
votes
2answers
903 views

Vertical Text Alignment in Title

I'm trying to make a title format with a large chapter number, and then smaller text with the name of the title. The following code mostly does what I want: \documentclass[12pt]{book} ...
18
votes
1answer
22k views

Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...