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}.
5,503 questions
3
votes
1
answer
78
views
Exercise - answer - solution
I’m trying to set up a LaTeX workflow where, in the source code, each problem is written “locally” as a block:
an exercise (the statement),
immediately followed by a short answer,
immediately followed ...
2
votes
2
answers
105
views
Reset numbering of subsections to 0 automatically after each section
I want to have subsections after each section to be numbered starting at 0:
Section
1.0 Subsection
1.1 Subsection
1.2 Subsection
Section
2.0 Subsection
2.1 Subsection
2.2 Subsection
I know I can ...
3
votes
1
answer
75
views
tex4ebook: How to customize section names and include them in the ToC
I am trying to
customize section names
add them correctly to the ToC
While I found a working solution for a standard tex document using the \titleformat from the titlesec package, I have to issues ...
2
votes
1
answer
67
views
Section Number Alignment and Wrapping a Figure with Text [closed]
\documentclass[11pt,a4paper]{article}
% Use XeLaTeX to compile
% Go to Menu > Compiler and set it to XeLaTeX
\usepackage{wrapfig}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{siunitx}...
1
vote
1
answer
46
views
Section specific \thepage and \numpages for an exam class document
I'm compiling past-year-questions of an examination into a question booklet and I've chosen to structure different years' question papers as different section contents of the exam class document.
In ...
2
votes
1
answer
112
views
How to precisely recreate a textbook page layout (Pattern Recognition and Machine Learning)
\documentclass{book}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{graphicx}
\setlength{\oddsidemargin}{\evensidemargin}
\reversemarginpar
\setcounter{chapter}{3}
\setcounter{section}{1}
\...
5
votes
2
answers
233
views
Correct section numbering in header using LaTeX
I have mostly been a Plain TeX user, but for collaboration purposes find myself having to use LaTeX.
In the LaTeXed book I am working on, I would like to have headers as described in the fourth ...
3
votes
1
answer
81
views
KOMA-Script method to add linebreak after a section number?
I would like to add a line break in between the section number and section title. The title would start on the next line and not be indented if it wraps. Only in the content, not the TOC. In other ...
1
vote
1
answer
29
views
customize the heading style for categorized glossaries
How can I customize the heading style for categorized glossaries printed with the glossaries package?
Currently, when using the book document class, glossary sections are formatted as chapter headings ...
1
vote
1
answer
26
views
how to suppress/do not start a newline for miniframe subsections [duplicate]
I'm working on a beamer presentation and isn't necessarily too long, but I will need to split topics in subsections. The thing is that with my current theme (Singapore) the navigation bar shows a new ...
3
votes
2
answers
121
views
What is the correct way to adjust section heading spacing in a tagged pdf?
I'm trying to adapt an old style file for accessibility and I've run into an issue where some manual indentation on redefined section commands breaks tagging.
Here's a MWE:
\DocumentMetadata{tagging-...
2
votes
1
answer
44
views
Tex4ebook with unnumbered section
I can't seem to get unnumbered sections to work with tex4ebook.
I need all my chapters and sections to be unnumbered and appear in the ToC using memoir (so starred version wouldn't fit). I have read ...
2
votes
2
answers
111
views
custom section & subsection style
I would like my section and subsection style to be like this, using tikz :
For the section, I've got the tikz doing that but I don't know how to adapt it in the titleformat properly (errors still ...
3
votes
2
answers
75
views
Looking for way how to style Index header same way as Chapter
So, I have a book that called for editing chapter and section headers trough titlesec. Now I'm without much succes looking for a way how to incorporate two Indexes (potentially with two columns) that ...
4
votes
2
answers
128
views
How can I split a section heading across multiple lines (in memoir)?
I'm typesetting some fiction, and I want to change how section headings are displayed. Unfortunately, no matter what I try, I can't seem to force the section number and the section title to be ...