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
0 votes
1 answer
48 views

Functions with Expansion Protection when working with Section Headings

I would like to understand why defining new section heading would require function to have protection from expansion.
Fluffy's user avatar
  • 27
0 votes
1 answer
53 views

Adding biblatex bibliography sections to table of contents

This post shows nicely how to create a sectioned bibliography with biblatex. However, the section titles do not appear automatically in the table of contents. Is there a parameter for the \...
Greg814's user avatar
0 votes
0 answers
31 views

Section jumps to separate page [closed]

I have this page, which I add as a \phantomsection to my thesis project. % !TeX root = ./main.tex \clearpage \newpage \phantomsection \pdfbookmark[0]{Abstract}{abstract} \begin{center} \LARGE \textbf{...
Alix Blaine's user avatar
0 votes
1 answer
31 views

Horizontal centering of section name

Consider, as a starting, point the code below. I would like to have the multi-lined section name horizontally centered, but I have been unsuccessful. This type of centering is to be applied only on ...
PaulS's user avatar
  • 461
0 votes
0 answers
23 views

Why are \subsubsection{} and \subsubsubsection{} not working in overleaf? [duplicate]

I'm trying to make my table of contents and the 2nd chapter, I would like to add \subsubsection to the \subsection but is not working. I tried \subsubsubsection and still not working. Any Ideas? I ...
ed190's user avatar
  • 1
0 votes
2 answers
49 views

Please help to rectify the cover pages for thesis related documents

I need to attach the supporting documents related to the thesis, each category under a separate title cover page. I have tried to make a basic format, however, it is not looking good. My code is dirty,...
Bukaida's user avatar
  • 575
1 vote
1 answer
23 views

Numbering issue for subparagraph: Numbering of paragraph and subparagraph are the same

Is there any way to fix the numbering issue for subparagraph \documentclass[a4paper]{jpconf} \usepackage{graphicx} \usepackage{subcaption} \usepackage{adjustbox} \usepackage{multirow,tabularx} \...
PhysicsQuestion's user avatar
1 vote
2 answers
52 views

Moving paragraph start to avoid clash with header

I have a document where paragraph-level headings are placed in the margins. I’ve implemented this using KOMAscript as in the following MWE: \documentclass{scrartcl} \RedeclareSectionCommand[afterskip=...
bradrn's user avatar
  • 212
1 vote
1 answer
58 views

"Automatic Labelling" of (sub)(sub)sections does not work with math

I followed the code in this answer. (sub)(sub)sections. However, if there is any math in the (sub)(sub)section title it fails to work. This is probably expected, but is there a way to overcome this? ...
Number Basher's user avatar
1 vote
1 answer
28 views

Counter in sectioning

I am using TikZ to define my chapter and section style, but the numbering of sections resets after every chapter. I want to number my section continuous after chapters. I use >remset.sty: \...
Durtle's user avatar
  • 11
0 votes
0 answers
40 views

TexStudio getting error

Hello guys. I have a thesis template and when I try to add for example 1.2 Literature Review under Introduction Part of .toc file, I get this error. I try to edit it in thesis.toc file which I find it ...
ichbinberk's user avatar
2 votes
1 answer
57 views

How to avoid content similar to titles appearing at the bottom of the page, hoping to automatically breakpage and appear on the second page

Let me first describe the effect I want. For the \section command, when there is text after it. The content in the \section will not appear at the bottom of the page. Below is an example code to ...
Clara's user avatar
  • 5,714
0 votes
0 answers
37 views

Hide section contents via option to \section, \subsection, etc

Often, when I am editing a document, I have long sections that I am not working on at the moment. I want to hide such sections from the output document so that I can focus on the relevant part. I know ...
Paul Wintz's user avatar
0 votes
0 answers
48 views

Unwanted indentation in framed section headings in LaTex Exam

I'm writing a document using Latex's Exam class where I'd like to make framed section headings, in order to reproduce a pre-existent document. I was able to draw frames with titlesec package with the ...
Paulo Santiago's user avatar
1 vote
1 answer
37 views

Make subsection and its content unbreackable

I'm writying a book in latex and faced a problem linked to the subsection content breacking. I know, I have to show some minimal example, but it's very copmlicated to do it (but I will try a bit ...
WinnieNotThePooh's user avatar
0 votes
0 answers
56 views

Error Message when Using Section and Subsection in Titlesec

I have converted a .docx file to .tex, and I am trying to create a running header. Looking through the forums, I have found some nice code to generate this header. Unfortunately, when I try to ...
ceramicquasar88's user avatar
0 votes
0 answers
108 views

How do I increment section by 0.1 and subsection by 0.0.1?

This is my code \documentclass[a4paper]{extbook} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath, amssymb, amsfonts} \usepackage{geometry} \usepackage{graphicx} \usepackage{...
user avatar
3 votes
1 answer
234 views

How to start at Part 0 in LaTeX?

I have this code: \setcounter{part}{-1} to start part in my document at 0. It works, but the first part doesn't say 0.
user avatar
2 votes
1 answer
35 views

How to change the index of a certain section

I'm having a problem with numbering sections in my project. I want to remove a certain ordinal index, and then replace it with another number. For instance, I have 10 sections, which are normally ...
PermQi's user avatar
  • 21
-3 votes
1 answer
54 views

How to set a colour gradient for all chapter headings?

How can I set the text colour of all chapters to the following gradient? linear-gradient(90deg, rgba(254,122,58,1) 0%, rgba(218,60,152,1) 100%) At first glance, the obvious choice would be the ...
Pixelcode's user avatar
2 votes
1 answer
47 views

How do you make whitespace the afterskip of a runin subsubsection in KOMA script?

I want to set my afterskip so that after the title there would be a whitespace seperating the title and the paragraph. I'm using KOMA-script. Minimum working example: \documentclass{scrbook} % ...
Adrik Ivanov's user avatar
0 votes
0 answers
23 views

Reorganise table of contents by section not chapter

I have my document in chronological order with a chapter a day. But the contents should be ordered by section, chapter, then subsection (i.e. Experiment-Date-Method). I cannot find a way of doing this ...
GBR6000's user avatar
  • 38
0 votes
1 answer
56 views

Add space between section title and page number in toc

I desperately need help i tried and searched for everything but not even chatGPT was able to help me at this point maybe its just not possible please enlighten me. So since some of my section have ...
Nicolo Volturana's user avatar
0 votes
1 answer
41 views

How to generate this structure of chapter /section /subsection tree like the example?

I like to have a structure like this (From Introduction chapter/section) [ Ignore the red boxes] With the chapter looks like However, what I am getting is this The MWE for main file is \...
Bukaida's user avatar
  • 575
0 votes
0 answers
29 views

Using multicols, introduced by a subsection title, after a section heading leaves a blank page

Many articles on StackExchange show the same problem but none of the solutions works for me. I initialize a section environment and then a multicol environment, with a subsection header as an argument....
propriofede's user avatar
0 votes
1 answer
67 views

Section design on even and odd pages

How can I display \section in a colored background that starts on one side of the page (odd pages = left and even pages = right) as in the image below. Edit From this code: \documentclass{book} \...
albin kabashi's user avatar
0 votes
0 answers
17 views

Fancyheader section doesn't call unnumbered section name after reference section [duplicate]

Objective Create a header for an unnumbered section after the references. I've succeeded in doing this by manually adding {\titlefont\titleshape\nouppercase\markboth{\color{title}Supplemental}{\color{...
mcv's user avatar
  • 13
0 votes
1 answer
59 views

Custom editing of subsection titles with hyperlinks in the table of contents

I redefined subsection titles, so the table of contents looks like this: \documentclass[twoside, a4paper, 12pt, showtrims]{book} %\usepackage{showframe} \usepackage[X2,T1,T2A]{fontenc} \usepackage[...
Anton Dmitrievich's user avatar
2 votes
2 answers
150 views

How to remove "0" from numbers of paragraphs when they are not in subsubsection

I'm trying to have numbered paragraphs: \documentclass{article} \newcounter{para} \setcounter{secnumdepth}{4} \begin{document} \section{Lorum ipsum} \subsection{Lorum ipsum} \paragraph{} Lorum ipsum \...
Maciej Piechotka's user avatar
0 votes
1 answer
33 views

How to define the chapter, section, paragraph with a custom numeration and normal-sized, bold embedded headings?

I have to write a seminar paper. It should have the following outline view: A. (Big letters) I. (Roman) (Arabic) a) (small letters with ")") aa) (double small letters with ")") (...
oramol's user avatar
  • 3
0 votes
0 answers
25 views

Bibliography as unnumbered section

I am using memoir class and would like to have unnumbered References (with this title instead of Bibliography) at the end of each chapter. This is my MWE: \documentclass[12pt, openright, twoside, ...
Brasil's user avatar
  • 1,276
2 votes
1 answer
92 views

Reduce whitespace between words in section headings

I have a section title that must fit onto a single line, and it is maybe a few mm off from fitting. If I can figure out a way to reduce the amount of whitespace between each word in the section title, ...
JohnA's user avatar
  • 45
0 votes
0 answers
37 views

Scaling up a math symbol messes up toc

I am trying to scale up a greek letter inside a math formula. To do this, i follow this answer and use \scaleobj from the package scalerel However, when I try to use an expression that includes my ...
pusteblume's user avatar
0 votes
1 answer
27 views

How to remove top margin from chapter heading in a custom macro?

I have created a custom margin for the automation of chapter creation of certain sections of me digitizing a book. I want to be able to remove the top margin from the chapter heading as i feel i ...
Adrik Ivanov's user avatar
0 votes
0 answers
16 views

Let \section{} command not pagebreak [duplicate]

EDIT: Fixed by knowing the difference between \include and \input! I'm writing a paper but can only have 15 pages. A way for me to solve my problem of having too much text is letting the sections in ...
terrortinus's user avatar
1 vote
1 answer
56 views

Section and subsection formatting

I am using this academic CV template from Overleaf: https://www.overleaf.com/latex/examples/academic-cv-template/hvjpfjnyggbf. Please, consider that template as the MWE. I want to modify the \...
scd's user avatar
  • 774
1 vote
0 answers
56 views

An extra bibliography section for recommended lectures

I've been asked now to add a "Recommended Lectures" section after the actual bibliography for my thesis. So, regardless whether I'm citing a reference in text or not, I must discern if it is ...
Suiron's user avatar
  • 119
1 vote
1 answer
57 views

frame number on progress bar between section titles and frame title - metropolis beamer

I would like to have frames structured as follows: -- sections titles -- -- frame number fraction (at right-most end) ON a progress bar -- -- frame title -- -- frame content -- With metropolis, ...
oibaFox's user avatar
  • 153
0 votes
1 answer
74 views

Can Anyone Tell which package is used here [closed]

I want to create something like this. Can anyone tell which packages are used here?
Piyush Baweja's user avatar
3 votes
1 answer
61 views

Modular option for tikz lecture heading

I have a setup I use for lectures, for some lectures how would I be able to leave the date section empty and have the frame be built completely and not have a gap in the top. Any help would be greatly ...
xyz04's user avatar
  • 143
1 vote
1 answer
41 views

Alternate figure captions in appendix

In a paper with figures generated from simulations, I would like to specify the parameters used to run the simulations in an appendix section. How do I implement a command within each figure ...
Emmy B's user avatar
  • 45
1 vote
1 answer
25 views

Setting hidden sections in beamer

I would like to hide some sections in Beamer so that I can adapt the presentation for different situations. Notice that \section* hides the section from the table of contents, but the section still ...
Andre's user avatar
  • 905
0 votes
3 answers
57 views

Asterisk in front of section in TOC

There is this question Add an asterisk in front of section label in TOC asking to find a way to put an asterisk (*) in front of the title of a specific section in the table of contents. The goal is to ...
Flowt's user avatar
  • 181
2 votes
2 answers
124 views

cannot edit \sectionmark with titlesec

I want to have unumbered chapters/sections appearing in the headers, so I used titlesec and defined a pagestyle that only displays the chapter/section title in the left/right marks. Now, I want that ...
Flowt's user avatar
  • 181
0 votes
0 answers
32 views

How to make the last heading level 1 as running head at recto page in current page?

I'am facing an issue in recto page running head. Whenever there was more than one Heading level 1 on same recto page, last Heading level 1 was not updated in \@oddhead. Each time, I was manually ...
Srinivasan Ganapathy's user avatar
3 votes
1 answer
47 views

Ensure that page break does not intervene between a section heading and a list

Is there an easy way to ensure that a page break will not intervene between a \section macro (or another similar macro) and an \itemize environment (or another similar environment)? I have used ...
Noah J's user avatar
  • 443
0 votes
0 answers
31 views

Duplicating section title problem in table of contents

When the section or one of its subsections is removed, the next subsection is the one that gets its title duplicated, here is the code for this part of the project: \section{Backend design} \...
Amine messai's user avatar
2 votes
1 answer
68 views

How can I use titlesec to put a tcolorbox around a section title?

I'd like to redefine \section to produce something like the following: (requiring package tcolorbox) \begin{tcolorbox} 1. \hspace*{\fill} Title of the Section \hspace*{\fill} \end{tcolorbox} I ...
Anton's user avatar
  • 23
2 votes
1 answer
71 views

Changing the first argument of l@chapter

In the table of contents, I want the chapters to appear like Chapter 1: Preface and Chapter 4: Advanced Topics I tried to modify the \l@chapter command as shown in the MWE but what I get is ...
tush's user avatar
  • 1,093
0 votes
0 answers
24 views

Latex: How to ignore modifications of chapter headings in appendix?

I am writing in a document with this class: \documentclass[a4paper,12pt,openright]{report} I have made the following modification to the chapter headings: \makeatletter \def\@makechapterhead#1{% \...
Kat's user avatar
  • 1

1
2 3 4 5
106