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
3
votes
1answer
1k views

Adding section to appendix causes a compile error

Background Include multiple appendixes in a book. (Using KOMA Script v2.) Problem I have isolated the problem and created a minimal example to demonstrate the issue: Preamble Working LyX File ...
17
votes
2answers
4k views

Automatically produce outline?

I have a .tex document which is divided into \section, \subsection, \subsubsection, etc. I would like to produce a separate second document which is an outline of this first document. What's the ...
4
votes
3answers
632 views

Problems with chapter headings going from dvi to pdf

I want to redefine the chapter headings using some code that I took from a friend. It works fine when I create a dvi and I see it in Okular (it doesn't look fine using Evince), but when I try generate ...
4
votes
1answer
1k views

How to achieve different formats for label and text in a subsection heading using titlesec

How to get a different formatting for the label and text of a subsection using titlesec? Reason: Italic numbers in the subsection heading hurts my eyes and should be avoided at all cost, Label of the ...
5
votes
1answer
814 views

How to number the ToC?

I need to give a Roman number to the ToC. So basically, I want the ToC to internally use \chapter instead of \chapter*. Is there any way to do that?
23
votes
3answers
25k views

Right-align chapter/section/subsection header

How can I change the alignment of a chapter/section/subsection heading? Preferably, I want this to be something I specify in the header, as this will be necessary for all headers in the document.
9
votes
1answer
4k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
7
votes
4answers
3k views

[Optionally] Specifying arbitrary numbers for sections and subsections

I'm working on a package to simplify writing my homework and assignments. Unfortunately, not all of my professors assign problem sets with sequential numbering. Thus, I'd like to optionally be able ...
9
votes
1answer
13k views

How to 'center' 'page number' in beamer slides

When inserting page numbers into beamer slides, I usually use: \setbeamertemplate{footline}[page number] Then the page numbers will appear at bottom right. Is it possible to put the page numbers at ...
2
votes
1answer
10k views

How to insert “footline”-style page number into “headline”

When inserting page numbers into beamer slides, I usually use: \setbeamertemplate{footline}[page number] Is it possible to do this for headline, something like: \setbeamertemplate{headline}[page ...
44
votes
1answer
36k views

How to start new chapters on the right hand side

I use the report document class, and I would like that chapters always start on the right hand side, anyone an idea how this could be easily done?
9
votes
2answers
8k views

Fonts in scrartcl.

Hallo all, I started using the scrartcl class and then all the fonts (section, title ...) were messed up. How can I get them back as they where when I used article. Do I have to set them all with ...
9
votes
1answer
3k views

Auto-populate the frame titles from subsection titles

Is there a way to make \frametitle automatically take the \subsection heading? Or maybe equivalently, is there a way to make the section\subsection titles in the header larger? I am afraid the ...
1
vote
3answers
182 views

Dependencies between sections

I'm writing a document such as the following one: \section{A}\input{A} \section{B}\input{B} \section{C}\input{C} ... Each section provides some content but requires other sections to be included ...
14
votes
2answers
3k views

\autoref should call sections within the appendix “appendix” not “section”

I make use of autoref thoughout my now rather long document. I have an appendix with sections, though currently a small number, so changes could be made here. I want references in my document to ...
6
votes
1answer
997 views

First line of first paragraph after section/subsection is indented

When writing an essay with the article class, the first line after a section or subsection has somewhere along the way become indented. According to typographic standards (American standards, I ...
46
votes
6answers
50k views

Equations in section heading/title

For reasons that are beyond me, the following MWE \documentclass{scrreprt} \usepackage{classicthesis-ldpkg} \usepackage{bm} \usepackage{amsmath} \begin{document} \section{The values of $\beta$ for ...
8
votes
1answer
3k views

Heading title with a logo

I'm trying to lay out the following: XXXXXXX Title XXXXXXX Subtitle XXXXXXX Maybe even a date! XXXXXXX XXXXXXX Content, content, content ... The X's are an image (a logo), and the text is just off ...
18
votes
3answers
3k views

How can I put a line above a section heading and prevent a page break between?

We have designed a class for some journal. We wanted our section titles to be separated by a horizontal line from the previous line. Here is the code: \def\section{% \vskip 1.2\@bls% \hrule ...
24
votes
6answers
16k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
32
votes
3answers
57k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} \...
7
votes
4answers
1k views

How should I manage to get titled and untitled paragraphs together?

I know, the question doesn't explain too much. That's why I'm going to do that here. I'm writing a technical paper and I have a few sections. Within each section, there are a few paragraphs. Some of ...
4
votes
1answer
439 views

isodate in section titles with correct PDF bookmarks

I want to use isodate's \printdate as part of a command to create a new section. Simplified example: \documentclass{article} \usepackage{hyperref} \usepackage[american]{isodate} \newcommand{\...
33
votes
2answers
30k views

How do I control the spacing above a new \paragraph?

I'm using LaTeX using the article type documentclass. I haven't customized any of the LaTeX variables that determine lengths, such as \parindent, \topskip etc. I want to control the amount of ...
8
votes
1answer
21k views

How can I add the bibliography in a report with its own section, including number?

I'm writing my thesis as a report document using TeXShop (pdflatex and bibtex) and want the bibliography to get its own section number and appear in the table of contents. Here's what I've tried so ...
27
votes
2answers
20k views

How to leave out chapter numbers in section numbering

So, I'm writing my thesis using the book class. I have the following: [Chapter I The fundamentals] using \chapter{The fundamentals} together with \renewcommand{\thechapter}{\Roman{chapter}} Now,...
8
votes
2answers
6k views

Changing the section title style for an article document type

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. ...
8
votes
2answers
1k views

“TeX capacity exceeded” because of a couple of raiseboxes in a \section?

In a package, I have the following command defined: \newcommand\fkm{ \ensuremath{\mathrm{ \raisebox{-0.1ex}{\rotatebox{22}{f}}\! \raisebox{0.2ex}{\rotatebox{-15} {k}}\! m\!...
28
votes
5answers
16k views

How to avoid splitting tables between sections

I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page. What I want to achieve is to put tables and ...
27
votes
3answers
26k views

Correct use of \paragraph titles?

How should I use \paragraph? I mean, If I want to put "Characteristics", should I put \paragraph{Characteristics} or \paragraph{Characteristics:}. Or is it up to me which one to use?
10
votes
1answer
20k views

Getting correct section numbering for Appendix in a large document

I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include to include them in the main document of the thesis. So in my main.tex (...
2
votes
1answer
313 views

Sectioning created via titlesec have wrong \label

I have created the following custom sectioning using the titlesec package. % in the preamble \newcounter{phase} \titleclass{\phase}{straight}[\section] \titleformat{\phase}{\bfseries\sffamily}{Phase~...
6
votes
1answer
1k views

Suppress header on first page of section

I created a header using KOMA-Script. How can I suppress this header on the first page of a section?
19
votes
2answers
9k views

Formatting a \paragraph to look like a \section

I'm writing a document that contains a rather deep tree of nested lists, and was wondering if how I would go about reformatting the \paragraph macro to format the text contained within it as a \...
3
votes
1answer
524 views

Publication details below chapter title

I would like to add some publication details below the title of the chapter. I got here already some useful comments, but I decided now to go with the epigraph environment. At the moment, the code ...
10
votes
1answer
2k views

Reference in LaTeX chapter style

I would like to add a note in the LaTeX Chapter environment that the work I am describing in the following has been published in a paper. In other words, it should look something like this: Chapter 6 ...
13
votes
2answers
3k views

Placing picture above \chapter?

Can anyone recommend/provide an example as to include pictures in the chapter headers? Any packages known for this? I have read about fncychap which looks great, but would still require add'l ...
11
votes
3answers
11k views

An 'abstract' at the start of every chapter?

I am using the book document class and what I would like to do is to have a abstract like text at the start of every chapter (in smaller font outlining what will happen in the chapter, etc.). I don't ...
16
votes
2answers
4k views

Keep chapter number of chapters inserted with \include

Okay, I've puzzled over this for a while and I can't work it out. I have a document with several chapters, using the memoir class. I've separated each chapter into separate files, and I'm including ...
54
votes
3answers
22k views

Turn on subsection numbering in memoir

It seems that the memoir class automatically avoids numbering subsection headings. Chapter and section titles are numbered, but subsection headings contain only the subsection name, and are not ...
112
votes
2answers
163k views

How to change the numbering of \part, \chapter, \section, … to alphabetical, Roman numbers, etc

I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e. 1 ...
7
votes
1answer
4k views

Underline a section header the full width of the page

How do I get a full page width underline or bottom-border on a section title? At the moment I'm using \usepackage{sectsty} \sectionfont{\normalfont\sffamily\large\underline\bfseries\color{orange}} ...
7
votes
3answers
1k views

Defining commands of commands

If you want to include an image in your chapter title, what follows may be an option: \newcommand{\thechapterimage}{} \newcommand{\chapterimage}[1]{\renewcommand{\thechapterimage}{#1}} \def\...
3
votes
1answer
2k views

sectionbib option for natbib doesn't work with scrreprt

The natbib package has an option sectionbib, that causes the bibliography to be typeset as an unnumbered section, as opposed to the default unnumbered chapter. However, when using the scrreprt class, ...
10
votes
4answers
2k views

Why do I need to use \paragraph{} after a \section{} to get correct indenting whereas a blank line suffices for subsequent paragraphs?

I have noticed that whenever I start a new section, subsection, etc., I need to preface my text block with \paragraph{} to get correct indentation for the first paragraph. In subsequent paragraphs, ...
13
votes
2answers
5k views

How can I format sections/subsections/etc. like nested lists?

I would like to format sections/subsections/etc. so that the entire body text of subsections is indented relative to the body text of the parent section as it is for nested lists, i.e. 1. Section ...
2
votes
2answers
445 views

How do I modify the amount of space between the heading and the chapter's number and/or name?

Currently, the space between the bottom of my header and the top of the chapter number is quite large and I would like to be able to reduce the space between the header and the chapter number. How ...
5
votes
1answer
349 views

Margins as Subsections

Is there a way to have subsection titles show in the margin of the page? I'm never happy with subsections, I usually tend to avoid them. What I do like, is letting the readers know what's going on by ...
39
votes
7answers
13k views

Avoiding page breaks shortly after section/subsection headings

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings. How can I enlarge this minimum to, say, three lines or 10 percent of the value of \...
3
votes
1answer
5k views

How do I insert a document's title and the chapter's name into a header?

I am attempting to place the document's title on the left side of a header and the chapter's name on the right side of the header. However, I am unable to find how to use the title variable specified ...