{sectioning} is about commands like \chapter or \section forming the logical structure of documents. For questions specifically about {parts}, {chapters} or lower-level commands ({sections-paragraphs}), add the respective tag to the more general {sectioning}. A popular package is {titlesec}.

learn more… | top users | synonyms (2)

4
votes
2answers
124 views

Rotate section headings

I'm trying to create a document according some brand guidelines which require the use of angled and coloured section headings. I have the colours working using the xcolor and sectsty packages, but ...
0
votes
0answers
27 views

LaTeX keeps placing floats above section headlines

I followed the accepted answer to the question on how to Start new page with each section but LaTeX still puts a float object on the top of a page, above the section headline. Instead, I want this ...
1
vote
1answer
73 views

How can I access short section content to avoid repetition?

I'm making frequent use of short section names for styling. I want the short names to appear in page headers and the longer name only in the document itself. I have that worked out, but it requires a ...
2
votes
1answer
35 views

titlesec-package prevents TOC from showing full subsection number

I'm using titlesec for customizing section titles. The problem is, that it prevents TOC from showing full (sub)subsection numbers. This applies to referring to section labels as well: ...
3
votes
1answer
37 views

How do I avoid `sectsty` removing a line break when using `paragraph` as a subsubsubsection

I am trying to use the first bit of code in this answer to use paragraph like a subsubsubsection. The problem is that there is a conflict with sectsty - without this the output is exactly as in ...
0
votes
0answers
23 views

Chapter section doesn't appear in the table of contents with a book

I'm using book style, but it happens with a report style, too. I'm using chapter* style and I want that the chapter section appears in the table of contents, but it doesn't appear. This is the code: ...
2
votes
0answers
17 views

Space after Proof Environment to next Section

I am using a modified definition of a proof environment: \makeatletter \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep1\p@\@plus3\p@\relax \trivlist ...
7
votes
1answer
43 views

Two footnotes in a heading, only one is displayed at the end of the page

I'm adding two footnotes to a section heading: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lipsum} ...
2
votes
0answers
53 views

Incorrect page number counter in beamer using sections

I am trying to put together a beamer document put together using multiple sections where frame numbers restart at each section and I can leave certain frames at the beginning of the document and at ...
2
votes
1answer
53 views

How to redefine \section{…} to include \textsc{…}? [duplicate]

I'm writing a rather extensive report in LaTeX in which I have some specific preferences for my section titles. For example, I want the titles to be in upper-case using the \textsc{..} command. If I ...
0
votes
0answers
37 views

How to add a newline after subsection

I was using this template for my tex document. However, it removes the new line after the subsection. I want to have a new line after the subsection elements For eg \subsection{My subsection} Text ...
3
votes
1answer
90 views

Conditionally print subsection in Beamer

I've ported from PowerPoint my university's template in Beamer, and added some code to display sections (and subsections when they exists) in the header. This is the code snippet I've put in the ...
3
votes
1answer
44 views

How do I change the format of one section heading without affecting how it appears in the table of contents?

In one instance in my document I have the following: \section{\large Multi-worded section heading } Currently in the table of contents, it appears larger than all of the other titles (no doubt ...
6
votes
2answers
85 views

Insert matrix into \subsection{}?

I was trying to insert matrix into a \subsection{}: \subsection{Suppose $X= \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}$} This gives me an error: ! TeX capacity exceeded, sorry [input ...
7
votes
1answer
115 views

Start a specific chapter on the left page?

Using the book class with the twoside option, I get chapters that start on right/odd pages, which is the expected behavior. Still, I would like to have some specific chapters starting on a left/even ...
2
votes
0answers
41 views

How to set bookmark anchor so \section- and \section*-bookmark behaves the same

If I make a \section and \section* bookmark, the anchor points to the two sections in a different place. A small vertical space is added to \section* (see png-files). How can I make sure the anchor is ...
0
votes
0answers
34 views

How do I add feature status labels to a software design document?

I'm writing a design document for a piece of software, and during the development this document will be referred to when looking at what features to develop next. How can I add labels in my document ...
2
votes
1answer
58 views

Font sizes for different header levels

What are the font sizes for \chapter \section \subsection \subsubsection and paragraphs when using the report,11pt document class? Also, what is the padding before and after each header level. I ...
0
votes
1answer
24 views

Organizing floats in a multi-file project

I find it convenient to manage my papers on a one-section-one-file basis. However, I also find it convenient to have my figures defined in the corresponding section. Unfortunately, these two ...
0
votes
0answers
54 views

Prevent titles at bottom of page—sometimes

I have a book that contains both prose and poetry. I don't want a poem to start too close to the bottom of the page. That's what the nobottomtitles option of titlesec is for. I don't want this to ...
0
votes
0answers
33 views

\titlesec mesh up with bookmark anchor in star-section

When \titlesec is enable, the bookmark anchor to \section*{text} is shifted one line. How can I redifine \titlesec so it does not add a line in *-mode? \documentclass{book} \usepackage{titlesec} ...
1
vote
1answer
54 views

Is it possible to use both long name and short name of the section in headers?

I'm using fancyhdr, and following this answer I have redefined \sectionmark as: \renewcommand{\sectionmark}[1]{\markboth{#1}{}} so that \fancyhead[RO,LE]{\leftmark} gives the name of the ...
1
vote
1answer
64 views

Centering sections without centering subsections

This question is about how to center all the sections (including chapters) without centering subsections. I have browsed all the related questions asked here but I found no one to which my question ...
3
votes
1answer
50 views

Turn off \appendices switch and resume normal section lables

Background: I am appending several IEEE style papers using the solution here. Most of the papers include appendices using the \appendices switch to redefine \thesection to create Appendix A, B, C, ...
3
votes
0answers
29 views

How to nest a pre-written chapter into another chapter without manually changing sectioning commands one by one [duplicate]

I have a tex file with several written chapters. Then I found I need to nest one of them to another. I know this can be done by manually changing the sectioning command one by one but I found it ...
4
votes
3answers
59 views

how to redefine a section to get this result?

I am writing a solutions manual for the problems at the end of chapters in a published book. For this I need unnumbered sections listed in the TOC, plus I need the title of each unnumbered section to ...
0
votes
0answers
27 views

Text to the right of a section heading

This is a macro that defines a heading for a project \newcommand{\project}[2]{ %1: project name %2: percentage of time \subsection*{#1 \begin{flushright} ...
1
vote
2answers
28 views

How to reset counter for un-numbered subsections?

\documentclass{amsart} \newtheorem{theorem}{Theorem}[section] \begin{document} \subsection*{1} \begin{theorem} blah is blah \end{theorem} \begin{theorem} bloo is bloo \end{theorem} ...
3
votes
2answers
160 views

How to have colored headings with one color per chapter

I'm typesetting a proceedings-style book that contains articles in their chronological order. Since the articles are also categorized, each category is assigned a color and the the chapter styles are ...
2
votes
1answer
63 views

What do I tell titlesec to get default values?

I'm making a style package for my student union, changing to our official fonts and adding other convenience methods. I've declared a main (serif) font and a title (sans) font family, and I want to ...
0
votes
1answer
38 views

How to stop certain pages appearing in the TOC

I need to add a couple of pages at the front of my report that should not appear in the table of contents. What is the best way to do this? I thought that maybe I could write the section normally ...
2
votes
2answers
86 views

How to edit latex file and add images to it

I am new to latex and i have only a basic knowledge of this formal (Mostly i use MS word for preparing documents). My current question is reagrding this file. What i am currently doing is editing ...
2
votes
0answers
37 views

polyglossia error when \section is used

When I use \section{abcd} in this document, I get a polyglossia error. The document without \section{} compiles normally. Kindly help. \documentclass[letterpaper, 10pts]{scrartcl} ...
2
votes
1answer
46 views

Display of Appendix titles in TOC and in the Document

The code below produces the contents page and appendix labels shown. I would like the First line Appendixes to appear without a numnber. I would then like to have appendix 1 labelled A1 and appendix ...
6
votes
2answers
93 views

Is it possible to add text underneath a part's title?

In a LaTeX report I'm working on, I have used \part{title of part} to organise the chapters into parts. This gives me distinct pages for each \part specified which is what I want. But if I try to add ...
1
vote
1answer
98 views

Manually set headmark in scrheadings

I am trying to get the proper header mark for my Preamble in my thesis. \documentclass[headsepline,12pt,a4paper]{scrreprt} \pagestyle{scrheadings} \ohead[\pagemark]{\pagemark} ...
3
votes
1answer
78 views

How to make the section and theorems with different colour

How to write the section and examples in different colour, such as the title with blue colour \documentclass[20pt,a4paper]{extarticle} \usepackage[a4paper,margin=6mm]{geometry} \usepackage{amsmath} ...
0
votes
0answers
91 views

Allow space before heading at top of page in book class

Another question asks about the possibility of leaving space before a section heading at the top of a page in the memoir class. Is there a similar solution for the book class? One workaround I've ...
3
votes
1answer
56 views

Beamer: currentsection and currentsubsection highlight differently

Consider the folllowing code: \documentclass[xcolor=dvipsnames]{beamer} \usecolortheme[named=BrickRed]{structure} \usetheme{Singapore} \begin{document} \section{Section No 1} \subsection{SubSection ...
2
votes
1answer
47 views

Bracket error in section heading with new version of XeLaTeX and fontspec

The following MWE compiles correctly with XeTeX version 3.1415926-2.5-0.9999.3 in TeX Live 2013 and fontspec version 2.3c: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux ...
3
votes
2answers
49 views

Page break after each section with title

I'd like to have there be a page break in between each section, just like in this question, but I'd also like there to be no page break prior to the first section (that is, between the title and the ...
0
votes
1answer
27 views

Chapter numbers being added to List of Figures etc

I am using a thesis template, which can be downloaded here I need to format my chapter titles like this: Chapter 1. Chapter Title I can achieve this with this code: \titleformat{\chapter}[hang] ...
2
votes
1answer
45 views

Dynamic Spacing in Titles

The following mwe shows titles embedded in two lines. The problem is, if the title includes letters like 'g','j','p','q', etc. the bottom line is very close to these particular letters. With the ...
1
vote
1answer
54 views

How to prevent header being the last line of page?

Hi. How to prevent breaking of section header and section content? It is very strange behaviour for LaTeX, but it happened and I want to fix it. Code of this section is below: ...
4
votes
1answer
55 views

Vertical space within chapter label using titlesec

I am required to have a chapter heading formatted in the following way to obey thesis formatting rules at our institution: CHAPTER Chapter Title The vertical space between "CHAPTER" ...
0
votes
0answers
41 views

Modify Beamer Outertheme headline to contain section headings on multiple lines

In a theme such as Frankfurt or Darmstadt I would like to have section headings appear on two lines once there isn't enough room on the first line. Please see the image for the output I would like to ...
0
votes
0answers
45 views

\thispagestyle{empty} on last page doesn´t work [duplicate]

I need a site without page style at the end of a document. But the command doesn´t work. How can I solve this? \documentclass[BCOR=10mm,DIV=11] {scrreprt} \usepackage{setspace} ...
4
votes
1answer
45 views

Including a Theorem in a section heading

Within my thesis I am attempting to number the studies listed throughout. I have used a custom theorem style for this: \newtheorem{study}{Study} First Issue I then want to use this within my ...
4
votes
2answers
115 views

Cleveref reference name depending on label instead of counter?

Let's say I have this: \documentclass{article} \usepackage{cleveref} \begin{document} \section{Section One} \label{a:sec1} \cref{a:sec1} \section{Section Two} \label{b:sec2} \cref{b:sec2} ...
1
vote
1answer
52 views

Put count of pages in each section in the table of contents

How would I make the table of contents display a count of the number of pages in each section, so instead of 1. Foo 1 1.1 Bar 2 1.2 Baz 5 it would show 1. Foo 7 1.1 Bar 4 1.2 ...