Questions tagged [sectioning]

{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}.

Filter by
Sorted by
Tagged with
4
votes
1answer
38 views

Head of a custom section

I am creating a new section called \tsubsection taking over code practically 1:1 from subsection with the intention to introduce some modifications. In this example \documentclass{report} \...
1
vote
1answer
65 views

Section styling similar to the elsarticle class

Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the ...
0
votes
0answers
40 views

How to add custom numbering to sections or subsections?

I would like to have subsections with "parts" like the following code but possibly managed automatically. \documentclass{article} \begin{document} \section{Lorem} \subsection{Ipsum part 1: Foo} \...
0
votes
0answers
37 views

section in-line numbering and vertical spacing with the titlesec package

I am writing a class file for a template with very specific requirements. One of those requirements is that a section title must be bolded, centered, and be written in single-spacing with a single-...
1
vote
1answer
75 views

Beamer TOC: Right-align section numbers

I am trying to use capital roman numerals (I, II, ...) to present each section in my beamer TOC with its section number. The following MWE works overall, but it can be seen that the roman numbers, and ...
0
votes
0answers
37 views

Differentiate Chapter Headings in ToC and Body

Working on formatting a thesis (using the book class) and I need to format the TOC entries and the actually chapter headings in very different ways. For the ToC, entires are in all caps and use roman ...
2
votes
1answer
66 views

Issue with section text assuming same color as body text

I am trying to understand a behavior where section headers assume the color of the first word in the section. Here is my MWE: \documentclass{minimal} \usepackage{xcolor} \makeatletter \...
0
votes
0answers
52 views

Flush section and subsection title in two-column layout

I'm using a 2-column format for my thesis ({multicols}{2}), and have tweaked several things to get the document to look exactly the way I want to. Those options, I'd rather not change if possible. ...
0
votes
0answers
34 views

Change “part” to “act” in a Lyx custom layout file?

I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts. This question tells how to add a line to the preamble via the menu: \renewcommand\partname{...
3
votes
2answers
332 views

How to remove blank page before my new report chapter?

This problem started after I added the following code in the preamble to set the default chapter title font ("INTRODUCTION" in the following code), which was big, bold and brash that I did not like, ...
1
vote
1answer
42 views

How to stop beamer from repeating sections using itemize

The code below produces a set of beamer presentation frames. The issue is that the section 'a with b', appearing on the right hand side of the theme, repeats with each new item; i.e., adding item<1>...
2
votes
1answer
75 views

How to change the font type and size of chapter title?

Right now I am getting my chapter title in the following font that is big-sized and bold: However, I want to change it to the following format, which is regular size, normal text, with regular font ...
2
votes
1answer
51 views

Page numbering issues with sections/subsections in Beamer

I have a beamer doc in which there are a few section and subsection title slides. Those slides do not have a page number footer, and the footer page numbering do not take them into account. In the ...
1
vote
0answers
52 views

Subsection title does not align with its section title under [left margin]

I put section title in left margin with use of titlesec package, and the first line of its text aligns with the title as expected. But its subsection title does not align. I tried with titlespacing ...
0
votes
1answer
35 views

How do I remove the numbers from section headings in the header using scrpage2?

How do I remove the numbers from section headings in the header using scrpage2? I want the numbers to appear in the text but not in the header. The header looks like this: \usepackage[automark]{...
1
vote
1answer
77 views

How to add sections titles to the headers and to the toc?

I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see, as headers, on the left page, the title of the book, at the center of the page, ...
1
vote
1answer
36 views

Incompatibility of scrbook and titlesec when trying to have chapter heading on a single page

I am trying to display a chapter heading always on a single page with the document class scrbook. Gladly, I first found an answer here: How to display chapter header in 1 complete single page The ...
1
vote
1answer
48 views

Custom subsection title with image

I would love to use custom subsection title with image in my TeX project, can anyone help me how to do it? I don't need it exactly the same just the layout is important. Thanks a lot!
1
vote
1answer
45 views

Understanding “stretchy” negative vertical space above framed chapter titles

This question is somewhat related to my previous question overfull hbox on chapters with line above/below chapter title using KOMA-script, as (parts of) the issue occurs with various/all methods of ...
0
votes
1answer
41 views

Title formatting the section makes the bibliography header disappear

I used a section style that I found here. The problem is that the header of the bibliography becomes a box even though I've tried to make a separate style for unnumbered sections. \documentclass{...
1
vote
1answer
74 views

beamer: position section head in a fixed position

Consider this example: \documentclass{beamer} \AtBeginSection[]{ \begin{frame} \vspace{3cm} \centering \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title} \...
2
votes
2answers
37 views

Automatic sorting of environments by parameters (e.g. by date)

I desire for some sort of easy system for manipulating "sections" or environments based on additional data such as dates. I did a preliminary google search and couldn't come up with anything because I ...
0
votes
0answers
21 views

Gap in the Section names

Helo,I did not change anything about section type or anything but somehow after a certain section all sections and subsections are named with so much gap I could not find any solution for this.I would ...
1
vote
2answers
89 views

How to form Appendix under the heading Appendices in ToC

I want each appendix to be under the heading Appendices in the ToC. Here is my MWE: \documentclass[12pt,oneside]{book} \usepackage{titletoc} \usepackage{appendix} \begin{document} \...
0
votes
0answers
37 views

Glossaries-extra without sectioning

I'm creating a document with two glossaries (using glossaries-extra and bib2gls). I would like to print each glossary without any automatic sectioning (without creating a new chapter or section), so ...
0
votes
0answers
19 views

Wrong numbering for subsections and subsubsections for Elsevier template single column [duplicate]

I have a weird problem when I am adding subsection and subsubsection in the Elsevier template. Basically, when I am compiling the document, I realized that they ignore the commands of subsection and ...
1
vote
1answer
137 views

Why \secref command in memoir with cleveref and nomencl no longer works

The document below, with a chapter/section scheme in a memoir class document, uses a custom \secref command. This command allows reference to a section in the shorter form "section s" that would ...
0
votes
1answer
49 views

Incompatibility between xr-hyper and redefinition of \section

This is main.tex \documentclass[headings=optiontohead]{scrbook} \usepackage{subfiles, xparse, xr-hyper, hyperref} \externaldocument{main} % so that cross-references work in subfiles \let\oldsection\...
1
vote
1answer
72 views

Formatting counter in section, subsection and subsubsection

I want to show a counter with subsubsection-level headers and remove the final dot from the section counter, subsection and subsubsection (assuming you can assign a counter to subsubsection) by ...
0
votes
0answers
32 views

Section title in header problem

My problem is that my section titles in header overlap with the chapter title. \documentclass[12pt,fullpage]{report} \usepackage[english,greek]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{...
1
vote
2answers
50 views

Recover style of \section modified by titlesec

After the \section style is modified by the titlesec package, I want to return to the original style by \let and \renewcommand, but fails. Why and how to achieve this? MWE: \documentclass{article} \...
2
votes
1answer
317 views

subsection command not working in elsevier LaTeX template

I am working on Elsevier template with a single column format, I am facing an issue with subsections command not working as they are displayed like a normal section with wrong numbering, for example \...
1
vote
1answer
58 views

\section in \put

I want to move title of section into left margin of page. Meanwhile, the first line of paragraph aligns with the title(not below title as usual), as shown on the following picture. I trid by putting \...
1
vote
2answers
85 views

Move title into left margin and align with first line of paragraph

I want to move title of section left by the following code. However, it fails to move the section number. Why and how to deal with it? \documentclass{article} \begin{document} \section{\makebox[0pt][...
0
votes
0answers
19 views

Include section number in reference to subsection [duplicate]

In an article I omit the section number for subsection titles, using: \renewcommand\thesubsection{\arabic{subsection}} However, when I now create a \label in a subsection and reference it using \ref ...
0
votes
1answer
61 views

Design Chapter Heading-Custom

I would like to design chapter heading like this I have written like this \def\@makeschapterhead#1{% \titleformat{\chapter}[frame]{\normalfont\huge\bfseries\color{elanblue}} {\MakeUppercase{\...
0
votes
0answers
24 views

Partial compilation of part of a document without breaking the page

I'd like to avoid recompilation of unchanged sections of my documents. However, I don't want new sections to be on new pages. Suppose this is my document: I only want the second section to be ...
1
vote
1answer
43 views

Makeuppercase in section formatting

I was trying to make a section style with uppercase fonts and color. But when I use \MakeUppercase like \makeatletter \renewcommand{\@seccntformat}[1]{{\textcolor{purple}{\csname the#1\endcsname}\...
0
votes
1answer
42 views

Centering a header in latex

I have the following command, \def\thesection{\Roman{section}} but I need to center it, put it in normal font, and add point (.) to the heading. Currently it is something like: I Introduction ...
1
vote
1answer
85 views

Top-right margin displaying “Contents” instead of section title

I have a class MyReportClass where I define what has to be displayed in the margins of all pages of my document. In particular I would like the current section to appear in the top-right margin of ...
0
votes
0answers
8 views

Missing pagebreak between to section titles [duplicate]

If there is an "empty" section (i.e. two section titles after each other), page break is prevented, even if the second section title won't appear in the document. (Checked with book and article ...
0
votes
1answer
19 views

insert the hierarchical numbering of the position inside the text for example for a `paragraph`

I want to be able to insert the hierarchical numbering of the position inside the text anywhere in the text (for example for a paragraph) Example: \documentclass[a4paper, 12pt]{book} \begin{...
0
votes
1answer
545 views

subsection and subsubsection aren't working in elsevier template

I am working on Elsevier template with a single column format, I am facing an issue with subsections and subsubsections as they are displayed like a normal section with wrong numbering, for example ...
0
votes
1answer
51 views

Section title running into margin

In the below MWE one can see that the section title runs into the margin of the page. This is due to the use of the \mbox{...}, but the \mbox is unfortunately in the normal case, automatically ...
3
votes
1answer
198 views

How to increase width of \titlerule in \titleformat?

I want to change the width of the \titlerule under every section, the following is my code, I am using \titling and \titlesec packages in order to achieve that. The documentation said I can do {\...
1
vote
1answer
32 views

section numbering in tex4ht using memoir class with article option

tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when ...
5
votes
2answers
204 views

ConTeXt XML: Nested section elements

I am trying to produce PDF from XML with ConTeXt. Currently, I am struggling with this: The XML file is in JATS, and JATS usually does not specify the levels of sections. There is an optional ...
0
votes
0answers
69 views

Headers using titleps (and titlesec) don't work with custom section command in twocolumn mode

I am introducing a new (custom) sectioning command (called \subchapter) using the titlesec package. I am also using titleps (or more accurately the pagestyles option for titlesec) to put the title of ...
1
vote
1answer
136 views

How to switch off chapter and section numbering in the whole document?

I want "Introduction" instead of "1. Introduction". The same with all sections and subsections. In the KoMa-classes if possible I've googled like mad, but the only solution I found is usinge \chapter*...
2
votes
1answer
35 views

Modifying paragraph display in tableofcontents causes paragraph title to disappear

I modified the way paragraphs are displayed in the table of contents, but this caused the title of the paragraphs to disappear in the pdf. Below is the LateX code: \documentclass{article} \...