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

353 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
0answers
168 views

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec? In this answer I provide a tentative patch which allows character protrusion to work normally in ...
7
votes
0answers
1k views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter \def\maxwidth{\...
6
votes
1answer
461 views

Memoir: treating a section as an appendix

We have an in-house document class which is based on memoir. For some smaller documents we don't want chapters so we effectively promote sections to be chapters as in my MWE. My question is how can I ...
6
votes
1answer
510 views

How to keep section titles together with the content in ConTeXt?

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this: ____________ ____________ | | ...
5
votes
0answers
247 views

ConTeXt: How to remove vertical space before top section headings in columns?

It has gotten that far that I have made a shopping list with ConTeXt… However, there remains one æsthetic problem: There is some unwanted vertical space above those section headings which are located ...
5
votes
0answers
464 views

Follow up to underline subsections - incompatibility between lineno, sectsty, and ulem

In answering the question Underline subsections, I provided an answer which relied on the sectsty package (as compared to @GonzaloMedina's answer, which used the titlesec package). Ultimately, @...
4
votes
0answers
360 views

Recreating Minutes of Meeting layout in LaTeX

I'm trying to recreate a minutes of meeting layout in LaTeX. The goal is to match the layout of the previous minutes. Specifically, it is the layout of the sections or each item in the minutes. The ...
3
votes
0answers
30 views

Insert note if subsection does not end on page

Say we are reading a document and just reached the very end of page 2. We are a currently in a random subsection at the end of page 2. At that position, I would like to have a note which reads like: ....
3
votes
0answers
58 views

two double spaces above heading iff text is above

My dissertation style guide specifies double spacing throughout, and two double spaces above section or subsection headings if there is text above the heading but a normal double space if there is ...
3
votes
1answer
151 views

Adjustwidth of all sections

Is there any way to adjustwidth of all sections without writing all the time adjustwidth? For example \begin{adjustwidth}{1.3cm}{} is repeated twice: \documentclass[10pt,a4paper]{article} \...
3
votes
0answers
375 views

How do you input maths into a section header?

so I am currently in the process of making a summary for my maths subject. I'm a new TeX user and using pdfTeX on TeXworks. I want to make this to show x=f(y) in the header as it would look like ...
3
votes
0answers
2k views

Small caps in section/chapter title

I am using report document class, and want to use small caps in titles of chapters, sections... if I write \section{\textsc{Lorem Ipsum}} it will be lowercase, not small caps. \documentclass[12pt, ...
3
votes
0answers
191 views

Memoir: put heading in margin using Expl3 or xcoffins

In the memoir class manual, there is the following code for putting section headings in the margin: A less traditional style is to put the whole heading into the margin. I have done this here for ...
3
votes
0answers
206 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is auto-...
2
votes
0answers
37 views

Why is `\@startsection` defined this way? (And is there a way to fix it?)

While trying to figure out what is going on with material swapped with \subsection in AMS document classes I finally looked at the definition of \@startsection in latex.ltx. My best understanding of ...
2
votes
0answers
59 views

material swapped with \subsection in AMS document classes

I today saw very interesting case when subsection started by shaded environment \documentclass{amsbook}%{amsart} \usepackage{xcolor} \usepackage{framed} \newtheorem{theorem}{Theorem}[section] \...
2
votes
0answers
17 views

numbering slides within part

I would like to change the way the slides are numbered in Beamer and how they appear in the footline. I would like the slide numbering to be reset after each \part of the presentation. More ...
2
votes
1answer
33 views

duplication of images in the report

when creating a report I want to create a "frame" in which I put the photo, everything works fine, but I have to do it twice (sc1 and sc2 treat the same), but latex "reads" it as ...
2
votes
0answers
23 views

Appendices not showing up properly when imported to main.tex

I'm using the standalone package so that I can write parts of my paper separately. My appendices is structured into sections. When I compile appendices.tex it shows up as expected i.e. 1. [title] ...
2
votes
1answer
40 views

Adjust title spacing for long title

I want to adjust title margins for two lines length titles. For example, is like below. How can I adjust. Thank you for your understanding I don't know how can I explain my problem. \titleformat{\...
2
votes
0answers
29 views

Left margin set different for every /section /subsection

I need to set certain margins for every chapter, section... so each block appears to be 'in his own level'. Not only for the titles but for the whole text in each section. I need it to be ...
2
votes
0answers
30 views

using \ref or \autoref for special formatted section / chapter

I have a strict layout, that's why I have a special formatting. Unfortunately, neither \autoref{} nor \ref{} does work properly. I created a MWE - unfortunately it is not that small. \documentclass{...
2
votes
1answer
48 views

Use section but hide the content in the file and keep it in the table of contents

In my document I insert a pdf page just after a \section*{Annex}and I'm able to add it in the \tableofcontents with this \addcontentsline{toc}{part}{Annex} but I would like to hide it from the ...
2
votes
0answers
213 views

Subfile Sectioning number

So I want to write my Script in LaTex and wanted to Structure it using the Subfile Package. I managed to include it and the main.tex file is working as wanted. My problem now is, that when i want to ...
2
votes
0answers
66 views

Automatic Capitalization of Section Headings According to APA Style

Is there a way to automatically capitalize words in a heading according to APA Style? This post suggests the use of titlecaps package, however it seemingly add uppercase to all words. According to ...
2
votes
0answers
104 views

How to overlay a section title on \incgraph full page image?

Is there any way to get a section title, which is included and linked in the TOC, overlaying on a full page image, inserted with \incgraph[]{image}? Both tikz and incgraph is included \usepackage{...
2
votes
1answer
274 views

Change bullet color in TOC for current section only

In my TOC I would like to highlight the current section using a different color. Following the answers to this question, I have managed to change the text color of the current section using \...
2
votes
0answers
147 views

Fancy chapter heading format under tufte-book class

I want to write chapter heading for a tufte-book document. Here is what I want to use: https://tex.stackexchange.com/a/339892/159116 \documentclass[openany,letter]{tufte-book}% \usepackage[T1]{...
2
votes
0answers
86 views

reledmac: \eledsection* in Header?

A simple question: Is it possible to use the \eledsection* in the Header as you would e.g. with KOMA's \addsec or as it would appear with a numbered section (\eledsection)? Thanks for any help! \...
2
votes
1answer
299 views

Configuring a section alias in LaTeX

Every week I produce a couple of A5 booklets (A4 folded) for my wife, an active colleague in church ministry, from which I am recently retired. I call the booklets a pulpit manuscript, as it includes ...
2
votes
0answers
192 views

Headers and line counting in reledmac/reledpar

I am converting an old FrameMaker file to XeLaTeX. As it deals with text editions of ancient documents, multiple readings, and the like, it seems to make sense to use reledmac/reledpar. However, being ...
2
votes
0answers
87 views

Section spacing ignores figures placed at the top

IIUC, normally, a section only adds vertical space before it if the section is not the first thing in a column/page. To my surprise it acts the same after a \begin{figure}[t] ... \end{figure}. Is ...
2
votes
0answers
657 views

Package titlesec Error: Unknown shape

I am trying to modify the basic article class section headers so that the main section level is centered and has the format "1. XXXXX ". To accomplish this I am trying to use the titlesec package. ...
2
votes
0answers
163 views

ConTeXt: independent titles

I'd like to use a parallel and independent section numbering system for questions in exercises. What I want to achieve is similar to what is proposed in this page of the wiki ; however, I want many ...
2
votes
0answers
136 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
2
votes
0answers
378 views

Unwanted vertical space at top of page before subsection heading

I have been using LaTeX for a while now, but I am very new to defining my own commands in the preamble. I am working on my thesis, and I'm using a custom .cls file which has been passed down by other ...
2
votes
0answers
311 views

Small-caps special character "ḫ"

I have been trying for some time to get the symbol "ḫ" to play nice with XeLaTeX. However, I'm now having trouble using it inside of a chapter title using the book class. Here's an MWE: \...
2
votes
0answers
354 views

including book name and chapter name above section name in memoir

I am using memoir with xelatex for typesetting a book with multiple chapters and sections. I would like to include the book name (or part name), and chapter name above the section title for each ...
2
votes
0answers
352 views

First chaptertitles position & style problem

This is how my document is looking. For the table of contents and introduction, I wanted to use a lighter block and no number, but there seems to be something wrong with the positioning of the block ...
2
votes
0answers
130 views

greek text doesn't show in headings with cm font in memoir

I have set up my document using memoir and polyglossia for hyphenation in greek and english. I have also used my own fonts, using the commands below and it worked great. I am working on sharelatex ...
2
votes
0answers
96 views

Auto fold sections on startup

I am working on a large document in TeXstudio and always become a bit daunted when i see the wall of text in the document. The first thing I do then is to fold all sections in the document to get a ...
2
votes
0answers
247 views

Help with putting footnote in the Section

I am trying put footnote in the section for the document with documentclass res.cls. I am using the following tex file but I am not getting the desired result. Basically I am not seeing any footnote. ...
2
votes
0answers
1k views

Prevent titles at bottom of page—sometimes

I have a book that contains both prose and poetry. I don't want a poem to start too close to the bottom of the page. That's what the nobottomtitles option of titlesec is for. I don't want this to ...
2
votes
0answers
225 views

Kile structure view

I'm discovering Kile. The structure view is useful, but it would be very nice to have numbered sections in this view, in order to be able to jump quickly to section 54 for instance. Do you know if it ...
2
votes
0answers
294 views

How to have a wrapfigure not always be below section heading

I have noticed that wrapfigs always place themselves under a section heading, with quite a bit of white space. This often leads to my wrapfig captions being below the bottom margin and the white space ...
1
vote
0answers
19 views

Add only subsections under current section to the section page in metropolis theme at beginning of sections

I'd like to add the list of all subsections in the current section to the section page at the beginning of each section. I am using the metropolis theme. I did some research and found a way to do so ...
1
vote
1answer
18 views

Show unnumbered sections anywhere in Beamer TOC

Section 10.5 of the LaTeX Beamer manual specifies the different options for generating a table of contents. One of them is: firstsection=⟨section number⟩ specifies which section should be numbered as ...
1
vote
0answers
37 views

I am trying to have multiple nomenclatures for different sections within an article class document

I am writing an article using lyx and I am wanting to have different nomenclatures in each section as some symbols are used on multiple occasions but have different meanings. I looked through ...
1
vote
1answer
38 views

How formating chapter (no head), subsection with spaces and page number

I am trying to format the chapter, section and subsection but I have not been able to. I have included an image as a reference of what I want to do. Here are some specifics: LaTeX, by default, puts ...
1
vote
1answer
28 views

Adding tex files as a single document adapting the section structure

I have several standalone documents/chapters (A.tex, B.tex, ...), that I want to assemble in a single document (Main.tex). Every chapter has its own section hierarchy (starting from sections, ...

1
2 3 4 5
8