Tagged Questions

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

learn more… | top users | synonyms

6
votes
1answer
1k 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
139 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
315 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
211 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
431 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
414 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
290 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
269 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
470 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
176 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
740 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
806 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
562 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
771 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 ...
13
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
8k 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
898 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 ...
14
votes
1answer
1k views

Margin notes (and subsection titles) in both sides of a two column document

I would like to write a book document with two columns and subsubsection titles as margin notes at both sides of the page (in the side which corresponds to the column). In order to specify the ...
19
votes
3answers
16k views

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
9
votes
2answers
3k views

Prevent a paragraph break after a section heading

In my .cls file for my thesis, I have defined \subsection as follows: \newcommand{\subsection}[1]{% \pagebreak[2] \refstepcounter{subsection} \addcontentsline{toc}{subsection}{ ...
6
votes
1answer
3k views

Latex IEEETran cls use titlesec package

Anyone know how to use titlesec package if I am under \documentclass[conference]{IEEEtran} ? I got following error: !Undefined control sequence. <argument> \subparagraph Thanks
5
votes
1answer
1k views

Add small line in \section title

I'm trying to duplicate an old document that has a small centered line above each \section. I have not been able to duplicate this when I set the formatting for the \section. (I'm using the titlesec ...
10
votes
2answers
1k 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 ...
3
votes
2answers
5k views

Problems with fontspec and titlesec packages

I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used \documentclass[a4paper,10pt]{article} %A Few Useful Packages \usepackage{marvosym} ...
3
votes
1answer
663 views

How to achieve different formats for label and text in a subsection heading using titlesec

How to get a different formatting for the label and text of a subsection using titlesec? Reason: Italic numbers in the subsection heading hurts my eyes and should be avoided at all cost, Label of the ...
7
votes
1answer
2k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
10
votes
2answers
3k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
25
votes
2answers
22k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} ...
8
votes
2answers
4k views

Changing the section title style for an article document type

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. ...
2
votes
1answer
266 views

Sectioning created via titlesec have wrong \label

I have created the following custom sectioning using the titlesec package. % in the preamble \newcounter{phase} \titleclass{\phase}{straight}[\section] ...