Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

3
votes
2answers
18 views

Section formatting: text/ornament after and before within the title

I would like to do redefine the section title command by enclosing it with ornaments like the following: ~ornament~ SectionTitle ~ornament~ I had looked up the titlesec documentation and many more ...
0
votes
1answer
27 views

Subsection Appears Twice

I'm writing a report including images and pdf files, and I just realized there was a bug with the last subsections: they appear twice when I create the pdf It only happens with the two last ...
0
votes
1answer
23 views

How to prevent pagebreak between section/subsection title

How to prevent pagebreaks between section/subsection titles and the multicolumn content of the document when using the paracol environment like this... \begin{paracol}{2}[{\section[shorttitle]{title}...
1
vote
1answer
9 views

Beamer: subsections all in one line, with dashes in-between and proper highlighting

How can I list the subsections in the table of contents with dashes in between? I found a partial solution (thanks to samcarter, in a previous question), however when the table of contents is ...
1
vote
1answer
13 views

Beamer: subsections all in one line, with dashes in-between

How can I list the subsections in the table of contents with dashes in between? I managed to get dashes in-between but also behind the last subsection in the code below. The extra dash does not seem ...
1
vote
1answer
31 views

Referencing parent(s) of labels

I'm trying to reference a label's parent so it outputs something like "Section, Subsection" or "Section, Subsection, Subsubsection". I've come close with smartref by doing the following: \usepackage{...
2
votes
1answer
42 views

“Jump” between columns

I am trying to create a two-column document where I can create sections such that the title of the section is in column 1 and the text of the section is in column 2. Like in the image but obviously ...
2
votes
1answer
35 views

Prepend “chapter” and “appendix” only for non-starred commands

I am using a KOMA Script class, and I want to prepend the words "Chapter" and "Appendix" to chapter headings, but only if the chapter was created using a non-starred command (i.e., it has no number/...
0
votes
0answers
32 views

How to move section,subsection, etc. title entirely to page margin?

How to move section's, subsection's, etc. titles entirely to page margin? I want to have section's titles at margin and section text should start at the same height as section title. I'm working with ...
0
votes
1answer
25 views

Is it possible to change the color of the section heading and the number associated with it for just one section?

Currently, I have \section{{\color{red} Conclusion}} \label{sec:conclusion} This results in the word "Conclusion" to turn into red. But, the section number VI still appears in black. Is there a way ...
5
votes
2answers
77 views

TikZ in section heading

I am trying to include a first circled and then boxed word in a section heading. Currently, I am only able to create this highlighted word within a normal paragraph, but not inside of a heading. My ...
3
votes
1answer
55 views

Include tikz image in other text files of each chapter

I am working on a book which each chapter has an image .jpg or .png. The code that accomplishes this is: \newcommand{\thechapterimage}{} \newcommand{\chapterimage}[1]{\renewcommand{\thechapterimage}{#...
1
vote
1answer
35 views

How to update the header and TOC for star marked the sections

I am using the following MWE. I want to define a chapter, with different sections (Prologue, paper 1, paper 2). I want the star marked sections to show up in TOC, for which I am using a user defined ...
0
votes
1answer
25 views

Subsection numbering inconsistent between table of contents and actual subsections

I am experiencing a strange behavior where, in the table of contents, my subsections and subsubsections are in arabic, which is what I want. However, in the actual subsections the labelling is ...
0
votes
1answer
29 views

Hide Subsection In tabel of content

I want the two subsections with low opacity i want that just the section title visible
1
vote
0answers
47 views

Coloring chapter and section and relative numbers

I tried to color che chapter and the section after their restiling. I re-used two code and mixes them, but i had no positive results. How solve this problem?? \documentclass[a4paper,12pt,oneside]{...
2
votes
1answer
28 views

Have section numbering use specific strings

I am trying to create a document outlining a work breakdown structure. I would like the first section to be numbered "R3" instead of with the number one, the second section to be numbered "R1" ...
1
vote
2answers
53 views

How do I bold the 'title' of a paragraph?

I would like to describe several points in several paragraphs. I want to give 'title' for each point at the beginning of the paragraph like this:
0
votes
1answer
23 views

Removing section numbering still generates numbers in toc

I use the report-class. To remove the section numberings, I use this in the preamble: \makeatletter \renewcommand{\@seccntformat}[1]{} \makeatother This works as I want; sections are shows only ...
0
votes
0answers
26 views

Michael DeCorte res.cls: trying to locally set section heading styles

I'm using the res.cls to typeset my CV. This template has two different types of \section heading styles. I'm not familiar with latex hard coding etc but I think this part does overwrite the primitive ...
1
vote
1answer
22 views

How to remove the Table of Content's title

I want the \tableofcontents to produce only the list of the elements in form of a "true list", which mean I can type text on the same page before and after the list, and the list can be moved to ...
0
votes
0answers
8 views

Irregular spacing between section titles and text using llncs class, algorithmic and minipages [duplicate]

Following is a MWE of my problem. I am using llncs class file for a conference paper and if I write the paper without the use of algorithmic environment and minipages, the space between section title ...
0
votes
1answer
21 views

Inconsistent vertical spacing in section header

My question relates to the following code due to Heiko Oberdiek: \documentclass[11pt,a4paper]{article} \usepackage{xcolor} \usepackage[calcwidth]{titlesec} %Underlining ruler for subsections \...
0
votes
2answers
17 views

Redefining section while keeping short title option

I am used to redefine the section command (in a beamer document if it matters) as follows: \let\oldsection\section \renewcommand{\section}[1]{ \oldsection{#1} % some code that generates a pretty ...
0
votes
2answers
65 views

How to use `\textcolor` in section headings?

I want to use \textcolor in the headings of my sections (see MWE below). My question differs to this question as I don't want to color all sections in one color (say red) and all subsections in ...
0
votes
0answers
28 views

Sections in Physical Review Letters

I've notices PRLs don't really use sections. The few that do use a weird style of the form: section heading.-Section starts talking about the wonders of the universe. Does some one know how to do ...
2
votes
1answer
39 views

Section Rotation

How to type the part where the chapter is rotated with or without the shaded box, and then there is text right beside it? What I have so far \begin{document} \section*{\rotatebox{90}{Chapter 1}} \...
0
votes
1answer
25 views

Appendix`s contents being shown under wrong heading in Table of Contents

I am changing a pre-built template for my thesis. There is a main file named thesis.tex in which all the chapter files, references files and appendices files are included. The structure of this file ...
2
votes
1answer
30 views

Showing Paragraphs in ToC in tex4ht

I've been fiddling with this for three hours and I feel so lost because it seems like nothing I do has any effect on the tex4ht generated html. I have a fairly large document that I'm building as a ...
2
votes
2answers
52 views

Short title in header but not ToC for document class book

I would like to have a short title of chapters and sections in my headers, but in the ToC there should appear the long title. I am using the book document class, and package fancyhdr. \section[...
1
vote
1answer
31 views

Header with Section short title and Chapter short title using KOMA-script

I'm trying to set header with Chapter title on the right and Section title on the left (with appropriate numbers in front of them). Also, I need to use short titles for header and long titles for ToC. ...
1
vote
0answers
58 views

How to improve the visual appearance of my document? [closed]

Introduction I typed out some definitions from our theoretical computer science lecture for the fun of it. Unfortunately I noticed, that it didn't look very professional and clean . The reason for ...
0
votes
2answers
42 views

Different margins for different section headings

I would like text with a large left margin, chapter titles using a normal left margin, and section titles halfway between the two. This code: \documentclass{memoir} \usepackage{lipsum} \...
1
vote
1answer
20 views

How to use 'includefoot' of 'geometry' only on 'plain.scrheadings' pages and not 'scrheadings' pages?

I have the following layout: \documentclass{scrbook} \usepackage{blindtext} \usepackage[left=1.9cm, right=1.9cm, bottom=2.23cm, top=2.23cm]{geometry}% specific requirements \usepackage[markcase=...
0
votes
0answers
11 views

Reducing space between section and table [duplicate]

I have a .tex file where I've added multiple tables between different \sections. But all the tables seem to gather at a specific page. Here is a snippet of the 4rd and 5th page of my .pdf (Sorry for ...
1
vote
1answer
22 views

Toc vertical spacing betwen sections and getiing boldnless for leader dots

\documentclass{article} \usepackage{tocloft} \usepackage{secdot} \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \usepackage{secdot} \sectiondot{section} \renewcommand{\cftsecaftersnum}{.} \...
0
votes
2answers
32 views

multiple section contexts in document which each has its own counter

I try to create a latex template for a homework where I need two section counters running parallel. I have an example here: As you can see I'd like to separate the main article from the ...
1
vote
1answer
35 views

How do I make underlined titles at KOMA-script?

I trying to make underlined title (of the parts) at KOMA-script, but it doesn't works well.... Can you guide me how to do this? Here is MWE: % Preview source code %% LyX 2.3.1-1 created this ...
1
vote
1answer
30 views

How do I center the part title at KOMA-script?

I want to centering the title of the part, and it's not working: \renewcommand*\raggedpart{\centering} \setkomafont{part}{\itshape\fontsize{26pt}{26pt}\selectfont} \setkomafont{partnumber}{\...
2
votes
1answer
19 views

Float textbox inline with \section or \subsection title

I am creating a document that contains several text-boxes to serve as info-boxes for further information. I use the boxedminipage & wrapfig packages to achieve this: boxedminipage for a box with ...
1
vote
1answer
27 views

TOC at the upper side of the beamer

I have a code like this \documentclass{beamer} %\usetheme{Warsaw} \usetheme{Montpellier} \title[Presentation 2018] I want to have a TOC on every slide with current section highlated. I ...
3
votes
2answers
51 views

align section content with first line in runin section

I'm currently using the following layout for my weekly exercises at my university: \documentclass[a4paper, 12pt]{article} \usepackage{titlesec} \usepackage{lipsum} % section title format and spacing ...
2
votes
1answer
22 views

The name of a cleveref reference is missing when the reference is inside a subsubsection of an appendix

The following KOMA-Script/LuaLaTeX document: \documentclass{scrbook} \usepackage[nameinlink]{cleveref} \setcounter{secnumdepth}{4} \begin{document} \appendix \chapter{Chapter} \section{Section} \...
1
vote
1answer
21 views

Linebreak After Subsubsection Title in IEEEtran

I'm using the IEEEtran document class and want my subsubsection to have arabic numbering and a linebreak between the subsubsection title and the subsubsection body. I've achieved the arabic numbering ...
1
vote
1answer
16 views

Problem with \part (Numbering, partend,

my code is like this: \input{sections/Preface}\clearpage \part{Problems} \input{sections/Text1}\clearpage \input{sections/Text2}\clearpage \part{solutions} \input{sections/sol1}\clearpage \input{...
2
votes
1answer
28 views

Uppercasing chapter number (in words) in ToC entry (memoir)

I need the chapter numbers in capitalized words (i.e. in upper case). My MWE so far, \documentclass[oneside]{memoir} \usepackage{fmtcount} \renewcommand{\cftchaptername}{Chapter\space} \renewcommand{...
0
votes
1answer
30 views

Avoiding page breaks after section headings followed by lists

I am writing a reference book in which every section heading is followed by an itemized list. I often get page breaks after the section heading and just one or two of the list items. In such cases I ...
3
votes
1answer
24 views

scrheadings ignored by document

I used to be able to get head/foot-ers with (perhaps a subset of) this set up, not anymore: it displays only Foo, Bar and Baz on pages 1, 2 and 3, respectively. Any suggestion as to what could be ...
1
vote
1answer
29 views

End notes in Memoir without any chapter formatting

I'm using the Memoir package and trying to setup a page of endnotes that only features a continuous list of endnotes and nothing more. In the following MWE a second chapter header (in addition to the ...
1
vote
1answer
35 views

How to create horizontal line before and after chapter heading but not in table of contents

I want to create a horizontal line before and after chapter heading (as shown in Picture) Chapter number at the Right hand side and chapter title at the middle. SO far I have this piece of code: \...