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

unnumbered Section* in Header without using chapter

\documentclass{article} \documentclass[12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper, left=2cm, right=2cm, top=2cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \...
user avatar
1 vote
1 answer
37 views

Section number in the outside of the page

Following my question about the customisation of the section heading, I would like to have the box with the section number always in the outside of the page ( I am using the twoside option). That is, ...
user avatar
3 votes
2 answers
51 views

Customise section with koma script

I wonder if you could offer some help. I want to customise the section titles in a scrbook class document. Something similar to this: Section number in a box followed by a centred line Section name ...
user avatar
0 votes
2 answers
47 views

write "Section 1" instead of "1.1"

How can I write section 1 instead of 1.1 in my report and show it on Table of Contents this is the only solution I have founded but this do not show section on table of content \section*{Section 1 :...
user avatar
0 votes
0 answers
18 views

Suppress the 'dot' after section numbers when using \ref{[label]} [duplicate]

I want to have sections numbers as I., II., and subsections as A., B., etc: I. II. A. B. But when I refer to those sections/subsections with \ref{[label]} in the text, I don't want the dot after the ...
user avatar
  • 75
1 vote
1 answer
55 views

Conflict between \pagestyle{fancy} and xcolor package

\documentclass{article} \usepackage{xcolor,fancyhdr} \pagestyle{fancy} % This line causes error message "Package xcolor Error: Undefined color `RED'". % If this line is removed, or replaced ...
user avatar
  • 2,169
0 votes
0 answers
26 views

Creating a section containing notes

What is needed: A section at the end of the document, say Notes, and an environment, say NewNote with the following requirements: The section Notes appears at the end of the document. An instance of ...
user avatar
  • 297
1 vote
0 answers
31 views

Bookmarks lead to wrong section/page

I am new to LaTeX. I am currently writing my thesis with overleaf, and for some reason, the bookmarks generated automatically do not lead to the corresponding section. Here are a few major differences ...
user avatar
0 votes
1 answer
22 views

Customize chapter and section style in appendices

I am using the scrbook document class. I would like to change the style of chapters and sections in the Appendices as illustrated here. It works very well except for the word Chapter in the black ...
user avatar
  • 305
0 votes
1 answer
23 views

Titletoc appears to truncate part of the title label defined by titlesec

I have the following MWE where I'm adjusting how my sections are rendered using the titlesec package. Based on this question, I came up with the following: \documentclass{article} \usepackage{titlesec}...
user avatar
  • 1,372
1 vote
1 answer
27 views

Conditional section numbering

I would like to find or implement a system in which LaTeX would compile numbered (sub)section only of they are followed by another (sub)section. Otherwise the (sub)section would remain unnumbered. In ...
user avatar
0 votes
3 answers
54 views

scrbook redefining sections without titlesec package

I am editing a package (which I did not write myself) where the titlesec package was used in combination with the scrbook document class. This produces an error, as explained in this post: Conflict ...
user avatar
  • 516
0 votes
2 answers
65 views

Space between section and starting point of paragraph

All the sections are correct, however the last section has given me the extra space seen in the attached photo. The question, is I want to remove the space between the title of the section and the ...
user avatar
4 votes
1 answer
143 views

ConTeXt: How to change parts and chapters pages background color with MetaFun?

I am trying to reproduce something like this for parts and chapters with MetaFun: Placing the content on the page is simple so I am trying to get the colored background. However I do not know how to ...
user avatar
  • 451
0 votes
1 answer
31 views

Missing space between chapter on same page and first section

I just wrote a command to start a new chapter on the same page: \documentclass{report} \usepackage[utf8]{inputenc} \newcommand{\chapterh}[1]{ { \let \clearpage \relax \chapter{#1} } } ...
user avatar
  • 3
0 votes
1 answer
16 views

How to add an extra level of sections with a LETTER headings below \subsubsection

I well read different forums and the very good answer to the question "https://tex.stackexchange.com/questions/60209/how-to-add-an-extra-level-of-sections-with-headings-below-subsubsection/60212#...
user avatar
0 votes
0 answers
15 views

Moving a section heading and first line back a page in overleaf

Hello, i would like to move the section 2.1.2 back to the space on page 3, just the title, first sentence and equation. It fit before and I haven't changed anything in the top section to make it move ...
user avatar
  • 1
0 votes
0 answers
27 views

Change the fontsize of a particular section title

Due to the requirement of format, I need to set the fontsize of the section titles in appendices to 14pt, while in the main body the fontsize of section titles is required to be 16pt. I use the ...
user avatar
  • 177
1 vote
2 answers
41 views

Superfluous vertical spacing

When a new section starts, I am facing extra spacing. \documentclass[10pt]{report} \usepackage{mathptmx,amsmath,amssymb,bm} \begin{document} \begin{align*} & \kappa(ru+m(1-r)v)\leq\,r\kappa(u)+m(1-...
user avatar
0 votes
1 answer
14 views

Make misaligned twocolumn documents even

For a twocolumn document using memoir I am preparing, I find that when modifying \parskip for greater paragraph separation and making use of \section to divide the text into different parts, this ...
user avatar
1 vote
2 answers
34 views

Poetry package changes vertical space around section headings in strange ways

Using the poetry package, I'm having trouble getting a consistent space around my section titles. All my poems start with a title, given as a \section. Sometimes two poems are set on the same page. ...
user avatar
  • 75
0 votes
0 answers
14 views

How to convert the sections no. from (I, II, ...) into number (1., 2., ...) [duplicate]

\documentclass[journal,comsoc,onecolumn]{IEEEtran} \usepackage{cite} \usepackage{caption} \usepackage{newcent} \usepackage{times} \usepackage{graphicx} \usepackage{float} \usepackage{booktabs} \...
user avatar
0 votes
1 answer
45 views

Unnumbered Heading (Section, Chapter) That Appears in TOC (Table of Contents) and PDF Bookmark

How can I add an unnumbered \chapter (\chapter*) or \section (\section*) that is also included in the table of contents (TOC) and the PDF bookmarks? Ideally, for the standard classes and Koma classes. ...
user avatar
0 votes
2 answers
33 views

Stop section numbers from starting with . (making `.1 Example title` to `1 Example title`)

Am compiling a document using latex in overleaf where the appendix is being generated with . at the front of the section and subsection numbers as shown in the image below. How would one stop this ...
user avatar
  • 172
0 votes
1 answer
40 views

How to add indent such that the section is shown in the right of page number?

\documentclass[twoside,11pt]{book} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry} \usepackage{fancyhdr,xcolor,lipsum} \fancyhead{} \fancyfoot{} \colorlet{...
user avatar
0 votes
0 answers
24 views

Extra level sectioning with numbering

By following the instructions given here and have modified them according to my need as follows: \titleclass{\subsubsubsection}{straight}[\subsection] \newcounter{subsubsubsection}[subsubsection] \...
user avatar
  • 103
1 vote
0 answers
48 views

Adjust vertical spacing after section title heading and before tcolorbox environment

How can I adjust the vertical spacing after the section heading and before the tcolorbox environment? Here's my MWE: \documentclass{scrbook} \usepackage{mathtools, amsthm, amssymb} % Math packages \...
user avatar
0 votes
0 answers
14 views

Show dot in section and subsection number in table of contents

\documentclass{book} \usepackage{amsthm,titlesec} \usepackage{tocbasic} \newcommand*\chapternumwidthintoc{7em} \newcommand*\chapterprefixintoc[1] {\MakeUppercase{\chaptername}~#1\enskip} \...
user avatar
2 votes
3 answers
162 views

Start sections on a new page, excepting the first one

So, I've seen this, but I need sections to start on a new page only after the first one And I've been trying many different methods, and I was thinking that I could make an if statement somewhere that ...
user avatar
0 votes
1 answer
43 views

How can I have a symbol before every chapter/section/subsection title?

How can I have a symbol before the title of each chapter, section and subsection? If possible, I would like to have this symbol in the left margin. The symbol is not important. This is my MWE: \...
user avatar
0 votes
2 answers
52 views

There is a double dot between `numbersection` and `numbertheorem`

I want the section numbering to be numberchapter.numbersection. So I type \renewcommand{\thesection}{\arabic{chapter}.\arabic{section}.} But if I want to make a theorem, the theorem numbering is ...
user avatar
0 votes
0 answers
24 views

Can I generate a table of contents from a pdf?

Let's say I have a pdf which was created with latex using \sections, but the creator did not generate bookmarks for the pdf using the hyperref package, and I do not have access to the latex source. Is ...
user avatar
0 votes
0 answers
24 views

Using \nameref to refer to an unlabeled section doesn't work [duplicate]

I want to reference to my \section*{Foo.} with the \label{sec:foo}. For this, I tried using \nameref{sec:foo} but it doesn't work, i.e. there are no errors but it just doesn't print anything at that ...
user avatar
  • 1
0 votes
0 answers
36 views

Locally disable \vspace{0pt} adding vertical space

I'm trying to ad a bit of vertical space at the beginning of a page. Here is a MWE: \documentclass[a4paper,footsepline, headsepline]{scrartcl} \usepackage[automark]{scrlayer-scrpage} \begin{document}...
user avatar
0 votes
2 answers
58 views

center title of acronyms when using \usepackage{acro}

I am using texmaker and have printed a list of acronyms using the package acro. However, I am unable to center the heading of the acronyms (List of Acronyms) as this is a specific requirement for my ...
user avatar
  • 11
0 votes
0 answers
10 views

Configure titlespacing for a multiline heading using titlesec

I'm using the titlesec package and would like to configure the location of the section headings relative to a custom text box environment I'm using. The problem I have is dealing with different ...
user avatar
  • 1
0 votes
0 answers
20 views

How to ignore theorems when creating a pdf?

I am writing a document which includes exercises and their solution. To do distinguish them nicely, I used the amsthm package and the following code: \newtheoremstyle{dotlessP}{}{}{\color{black}}{}{\...
user avatar
  • 61
0 votes
1 answer
28 views

Listing ToC in Itself As Part, Not Section

I'm writing a LaTeX document (scratcl) and am using \part as my highest level. I also need my ToC listed in itself. I've included \setuptoc{toc}{totoc}, but this lists the ToC as a section of the part ...
user avatar
  • 103
0 votes
1 answer
40 views

Modifying chapterhead for non chapter uses

I am currently using the \documentclass{report} I want to obtain a look similar to the following, but without affecting the index or other thing: [Image_of_desired_chapter_style]1: Experiment: (...
user avatar
0 votes
0 answers
39 views

Enable left skip only on pages with section heading

I want to change the layout of pages which contain a \section heading (and also the \tableofcontents) so that the body text is over to the right-hand side of the page. Using \leftskip and titlesec I ...
user avatar
  • 1
0 votes
2 answers
35 views

Replacing space after subsection title with a full stop

How can I replace the space after the subsection title with a full stop? MWE: \documentclass[a4paper,twoside,11pt,openright]{book} \usepackage{fancyhdr} \usepackage{imakeidx} \usepackage{etoolbox} ...
user avatar
0 votes
1 answer
41 views

Spacing between table of contents, list of figures and list of tables is greater than for the normal headings

I had the problem that the text was not exactly under the heading of the list of figures and tables (see the picture), so the following code snippet was added. However, the list of figures and the ...
user avatar
  • 139
4 votes
1 answer
75 views

Execute \clearpage before a section only if a certain amount of lines are already filled

I use: \AddToHook{cmd/section/before}{\clearpage} to start a new page before a new section. Is there a possibility to only execute this, if more than X percentage of the page is already filled? So ...
user avatar
1 vote
1 answer
34 views

Section-based numbering of pages, figures and tables

I'm preparing a technical manual consisting of different sections, and I want the numbering of pages, figures, and tables in each section to have a prefix describing the specific section. Moreover, I ...
user avatar
  • 265
1 vote
1 answer
38 views

How to add a symbol before every section but not before every subsection

(I'll use $+$ for the "symbol" in question). What I want to achieve: +1. Section Lorem ipsum 1.1. Subsection Lorem ipsum That is, Have every section name after a $+$ and the section ...
user avatar
4 votes
1 answer
96 views

Is this way of defining \section in Plain TeX correct?

I am relatively new to Plain TEX and I wanted to define a \section command to typeset a bold and centered text with some spacing around it. Here is what I came up with. \def\section#1{\bigbreak\...
user avatar
1 vote
1 answer
30 views

How do floats affect the flow of a paragraph?

I've been working on my own custom template but I ran into a behavior I don't understand. Why are some paragraphs indented with a tab? I think it has something to do with floats breaking the flow of a ...
user avatar
0 votes
1 answer
40 views

Document Header

im trying to set my work with the headers like the picture. In one page left header would like to see the section and in the just next page a right header with the subsection. How can i do it? Im ...
user avatar
0 votes
0 answers
16 views

LyX Heading interfering

How can I make a header like in Img.1 in LyX, I tried adding it like in Img.2 and what I get is in Img.3, as you can see it is interfering with the text.
user avatar
0 votes
1 answer
58 views

Section header element should occupy zero vertical space

My goal is to split a diagram across two facing pages, as such: The left-hand page will additionally have a \section or \subsection above the diagram. In order to make the two halves of the diagram ...
user avatar
  • 1

1
2 3 4 5
101