Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
0answers
20 views

Can create commands with \section*{} but not \subsection*{}?

I'm trying to create some commands in the article document class that will save keystrokes when I TeX my homework. I end up typing \section*{Exercise #} repeatedly, so I created a macro: \newcommand{\...
0
votes
0answers
13 views

Paragraph space after section [duplicate]

Maybe this will sound stupid as I'm still a bit noob in LaTeX. I'm writing a quick report and I'm not concerned with formatting right now but there is something that is bothering me. I've noticed that ...
0
votes
0answers
24 views

Add custom text to section title

I'm struggling with quite unusual sectioning and toc. Basically I succeded in toc formatting and it looks like this The Ćwiczenie I is a section, which number continues in subsection Unfortunately ...
0
votes
1answer
20 views

Heading numbers and table of content in latex

[Hi, I want to change Fourier Transform heading number from 1 to 2.1, Examples of Fourier Transform from 1.1 to 2.1.1, Short Time Fourier Transform from 2 to 2.2 and so on. Please help me.] \...
0
votes
1answer
20 views

Beamer subsections

I tried to point my subsections. I have a table of content and I want to show the subsection I will talk about before the frame in which I will talk about it. I managed to do such thing with sections ...
0
votes
1answer
23 views

How to build a multi-file document

This is a very basic question but I cannot understand any guides or questions well enough to help me solve it. I want to build a multi file document, for example so that in each separate file I make ...
1
vote
1answer
51 views

Adding the fourth level of section

I am using overleaf and I want to go to the fourth section. I am using \chapter, \section \subsection and \subsubsection. I want the (1.1.1.1 desired) mark. I tried using \paragraph but it is not ...
1
vote
1answer
25 views

Coloring headlines (\section, \subsection with colors)

How do I color all headlines of a specific type in a document easily? I want every \subsection{} to be in the color "peru": \definecolor{peru}{rgb}{0.8,0.52,0.25}, and I don't want to write \...
0
votes
0answers
17 views

Why does my text insert on the same line as my section title? [duplicate]

I want to use section numbers with the following sequence: 1 Section 1.1 Sub Section 1.1.1 Sub Sub Section 1.1.1.1 Sub Sub Sub Section I have found a way to do this using the following code but ...
0
votes
1answer
22 views

How can I reduce space between section heading and numbering without any package?

I want to create a book style by modifying one of the standard book styles like book.cls, extbook.cls, memoir.cls . How can I reduce space between section heading and numbering internally without ...
0
votes
0answers
21 views

section formatting, font size

I have created a template for assigning tasks Can this be made better in terms of symmetry \documentclass{article} \usepackage{enumitem} \usepackage{geometry} \usepackage{xcolor} \renewcommand*\...
4
votes
1answer
44 views

How do I colour text without spaces?

I want to colour my section and subsection headings. I've used the following code \textcolor{ForestGreen}{\section{Section}} \textcolor{ForestGreen}{\subsection{Subsection 1.1}} but that causes a ...
1
vote
1answer
45 views

How to limit table width to page width?

Hi I am trying to fix the following piece of code. I would like the entry to tabular to extend to second line if it the sentences are too long. However, with this piece of code, the table entry ...
0
votes
0answers
46 views

Table (tabular) in wrong section

So I have multiple sections and my table is not in the section I've written it in. Does someone know how to fix this kind of problem? Edit 1: Code is the following \documentclass{scrartcl} \...
2
votes
1answer
40 views

I can't change the type of numbering on sections

My institute has specific rules for thesis. One of them is sectioning. First image is our institute's type, second is default latex type. But I can't change dafault type. I want to put a point after ...
1
vote
1answer
26 views

How to modify section headings in APA6 document class?

I am using the apa6 document class for a thesis and need changes for the section format: \section: centered, normalfont (no bf), and control for line-spacing, \subsection: instead of left aligned I ...
0
votes
2answers
35 views

Latex Koma instead of titlesec for section spacing

As suggested by esdd I post this as a new question. Original post: Latex KOMA and titlesec incompatible again. I have some section spacing settings in titlesec, which I would like to "convert" to ...
2
votes
1answer
31 views

How can one adapt the “\newstylepage” command?

How can one adapt the \newstylepage command in order to change its behaviour depending on which page you are? I'm using the article template, creating new pages every time I start a new section - ...
0
votes
0answers
33 views

Section environment inside a tikz node?

How can I use the \section command inside a tikz node while the section counter is also preserved and so on. What comes to my mind is being able to use a tikz node like its a latex environment in ...
0
votes
0answers
11 views

Include a section title in header, but not in body of document

I have a document where I need to place the section title in the header, but do not want to print it in the actual document. I have tried \phantonsection, but I specifically want to call the section ...
0
votes
0answers
17 views

\titlespacing* default values with amsart document class

I am using the amsart document class and I would like to change the spacing before and after section headings using the titlesec package. How do I find the \titlespacing* values (to insert in \...
0
votes
0answers
29 views

Different margin in pages

Here is how i set margin \geometry{ paper=a4paper, % Change to letterpaper for US letter inner=2.5cm, % Inner margin outer=3.8cm, % Outer margin bindingoffset=.5cm, % Binding offset ...
4
votes
2answers
51 views

Latex newcommand underlined section

I have to write a proposal in LaTeX in which there are normal headlines defined by conventional LaTeX commands (\section, \subsection, \subsubsection, and \subsubsubsection), but there are also other ...
3
votes
1answer
60 views

Trying to achieve a different chapter heading style

How can I get this chapter heading style? Mine is not looking good. The default LaTex one does not look like this. Do I have to change the .cls? Right now I have this one but it does not look quite ...
2
votes
1answer
19 views

Synchronizing header and headings font

Consider this MWE \documentclass[b5paper,11pt]{scrbook} \usepackage[automark]{scrlayer-scrpage} \usepackage{mathpazo} \usepackage{lipsum} \begin{document} \chapter{First Chapter} \lipsum[1-4]...
1
vote
1answer
29 views

How to define \section to compile conditionally

I would like to create a structural delimiter that behaves identically to \section but compiles conditionally. In the MWE below I have labeled it \draftsection. The content of this section should ...
-3
votes
0answers
49 views

Add Introduction to Master Doctoral Thesis

How can I add chapter without section but with Master Doctoral Thesis? Look left is how I write the introduction? Shall i use \paragraph{} or \begin{document}? Because this last one seems not to use ...
3
votes
2answers
39 views

Secnumdepth not working for me

It seems that changing secnumdepth does not change anything in my document for me. I want secnumdepth to be 2, so that I can label and reference subsections. However, subsection stay unnumbered for ...
0
votes
0answers
22 views

Section Title in rotated vertical box at the margin

I am using the article document class. Can you help me in having the section Title in rotated vertical box at the margin ? I found a way to do the Chapter Title in rotated vertical box at the margin ...
2
votes
1answer
35 views

“Loose” section/paragraph numbering

There are Math books which use a "loose" section/paragraph numbering style like this: Chapter 1 Foundations (1.1) Definition [...] (1.2) Remark [...] (1.3) [Some more ...
2
votes
1answer
46 views

Chapter number font size

I borrowed this code from Clean Thesis template with a small modification in color selection. \documentclass[b5paper,11pt]{scrbook} \usepackage{lipsum} \usepackage{mathpazo} \usepackage{xcolor} \...
2
votes
1answer
48 views

\section eventually calls \@startsection with \@plus and \@minus. What's going on?

Can anybody explain to me what this \section code does in the following definition: \renewcommand\section{\@startsection {section}{1}{\z@}% {-2.5ex \@plus -1ex \@minus -.2ex}% ...
7
votes
1answer
146 views

ConTeXt: How to have own section be numbered independently?

Consider the following MWE: \definehead[mysec][section] \starttext \startsection[title=Test] \stopsection \startmysec[title=Test] \stopmysec \stoptext In this case I define a head mysec based on ...
0
votes
0answers
20 views

How to (re)define margins for sectioning commands? [duplicate]

I'm currently trying to adjust my document to the baseline grid and for that I want to change all margins of \chapter, \section, \subsection (and floats) etc. to multiples of the \baselineskip. I ...
0
votes
0answers
13 views

Recover long name of a section in beamer (nameref used)

In beamer, I'm introducing a slide at the beginning of each section with \usepackage{nameref} \newcommand*{\currentname}{\@currentlabelname} \AtBeginSection[] { \begin{frame} \begin{...
1
vote
1answer
35 views

How to put an asterisk next to a section label?

I want to add an asterisk to some section labels. This is often used to indicate that a section is optional, like so: 1.1* Optional Section Here is my solution : \documentclass{report} \...
0
votes
1answer
24 views

\renewcommand{\section} causes unwanted bibliography header modifications

So I have three files. My main .tex file, my .cls file and my .bib file. In my .cls file, I use these two functions: \newcommand{\coloredtitle}\[2]{ \tikz[baseline=(char.base)] \node[anchor=...
0
votes
0answers
30 views

Dividing chapters in subchapters

I want to make chapters and sub chapters, like so: Chapter 1 Chapter 1a Chapter 1b Chapter 2 Chapter 2a Chapter 3 I found that this, while the main idea is there, doesn't ...
1
vote
1answer
23 views

Overfull Heading when using Decimal Point Alignment in Table

I want decimal point alignment in my table (below). However this messes up the heading (overfull error), even though I have it across 2 lines. How can I overcome this problem? Thanks \begin{table}[!t]...
0
votes
0answers
13 views

Section command in tccv.cls files shows ! Missing number treated as zero

I have made my two column cv using tccv.cls a month back. I ran the file a week ago and got the desired output. But when I am running the file today, I am getting an error "! Missing number, treated ...
1
vote
1answer
38 views

enotez: listing chapter or section names at the listing of endnotes

From an MWE like this: \documentclass{report} \usepackage[backref,totoc=chapter,counter-format=Roman,split=chapter]{enotez} \setenotez{split-title={\chaptername\ <ref>}} \begin{document} \...
-1
votes
2answers
38 views

Place double-column figure right below section heading

I have a document in double column format, and for the appendix, where I just list omitted figures, I would like to have a section heading ("A - Omitted Figures") and then several figures. However, ...
0
votes
3answers
78 views

How can I keep sectioning but disable its display

I'm quite happy with titlesec and titleps for keeping track of sections and creating footers that are conditional on whether a chapter start or is continued, but there was a case where it wasn't ...
0
votes
0answers
31 views

Macro similar to section with label/reference and custom format

I am trying to write a macro (\exhibitTitle) that would behave similar to section/chapter, but with its own counter that increases by 1. Its important that it supports label (doesn't have to be ...
2
votes
1answer
32 views

KOMA-script: locally align chapter title

I would like chapter titles added with \chapter{title} to be aligned to the right (i.e. with \raggedleft), but everything else that classifies as a chapter (i.e. a chapter added with \addchap{title} ...
1
vote
3answers
68 views

Toying with `titlesec` to maximize text inside a page and fancy features

This is a follow up to controlling the gap between footer and body of text. Remember, the goal is to max text within a page. To that end, how can I use the drop or wrap shapes to work using titlesec (...
0
votes
0answers
32 views

How can I prevent a pagebreak after an empty section?

I'm typesetting a roleplaying game rulebook in LaTeX. A frequently-occurring pattern in that problem space is a section header, followed immediately by a hierarchically lower section header—for ...
1
vote
1answer
33 views

Remove Section Number in Header or Footer

The following code is based on: Fancy header and footers I would like to remove the section number in the header but keep it in the main text. I have tried but without succes: \titleformat{\chapter}[...
0
votes
1answer
23 views

How can I set the numbering features to subsubsections?

I have a report type file (my thesis). I have no problems with the numbering in sections and subsections (the get enumerated by itself and appear correctly in the table of contents), but for the ...
1
vote
2answers
36 views

change the style of chapter, addchap and listof koma-script problem

I have a problem by redefining my chapter styles. I'm using \makechapterhead and \makeschapterhead for this, but I'm not able to make it work with \addchap. The chapter names of the upper section ...