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

learn more… | top users | synonyms (2)

2
votes
1answer
33 views

A manually created suffix for section titles compiled using tex4ht

I am building a document that looks one way with xelatex and another plain text file appearance using tex4ht. I produce an html document that then produces a great document that can be copied into ...
6
votes
3answers
123 views

Section title with dash which appears conditionally on whether there is a section title

I would like to add a dash after the section label but before the section title. But I would like to do this conditionally on if there is a section title in the first place. So \section{Merry ...
2
votes
0answers
46 views

Reset/clear Part with \backmatter in a customized book.cls? [closed]

I'm producing a fairly large volume using a customized version of book.cls with four Parts containing several chapters in \mainmatter, followed by a \backmatter that contains only the Bibliography for ...
2
votes
1answer
112 views

Book (Novel) Layout

I would be grateful for any advice please. I would like to format section headings with the Mathilde font. However, I receive an the error: File ended while scanning use of \scr@ttl@@extract. Usage ...
5
votes
2answers
53 views

Centering the section headings, but having the multines horizontally aligned wrt to the first line of the title

EDIT: I tried the solutions by @Bernard and @egreg. both the solutions work for multiline headings, that is to say that, the title is centered and all the lines of the titles are at the same distance ...
2
votes
1answer
54 views

Remove indentation of second line of section headers

The display of all my headings in sections, subsections, etc is indented for all lines, like so: 1.1 A very long heading that goes over multiple lines. This starts to look a bit silly ...
1
vote
1answer
41 views

Usage of include (graphics, section's and only)

I'm working on my master thesis in LaTex (using TexMaker). I'm a bit new but getting the hang of it. At the moment i'm making my sections in different tex documents. For example, i have an abstract, ...
0
votes
0answers
17 views

Vertically align the subsequent lines of centered long sub/sub/section title

I use the article class and define my section format as \def\@seccntformat#1{\rmfamily\bfseries\upshape\llap{\csname the#1\endcsname\hspace{0.16em}<8)>\hspace{0.16em}}\normalfont} ...
2
votes
1answer
24 views

Bigger headline numbers without changing the height of the headline

I have made the section numbers in the headlines appear in the margin with this code \newlength\mylen \setlength\mylen{\dimexpr\oddsidemargin+7mm+\hoffset\relax} \titleformat{\section} ...
0
votes
1answer
80 views

Documentclass “article”, numbering still begins at 0

I am writing an article using LaTeX. As I never used LaTeX before i downloaded a template that i could reuse. First it used \documentclass{Thesis} which required the article to use chapters. However ...
4
votes
2answers
56 views

Zeroing theorem number after each section

I would like to call \setcounter{theorem}{0} after each \section no matter if \section{something} or \section*{something} is called. How can I do that?
3
votes
2answers
47 views

Is it possible to reference the chapter name by the section/subsection label?

I would like to know if there's a functionality that would give me the chapter's name by referencing a label that I know is defined somewhere in this chapter? For example: \chapter{What's it's ...
0
votes
0answers
25 views

Subsection shifts \rule

i use some commands to add a line under every section. Therefore my commands look like this: This one adds a line \newcommand{\sectionline}{\vspace{-24pt}\textcolor{brightgreen}{\rule{16cm}{1pt}}} ...
2
votes
1answer
45 views

How to determine if documents has parts

I'm writing a custom class based on book.cls for our office's publication series, but I've hit a problem in how to set up a conditional. Some of the publications are part->chapter->section while ...
2
votes
1answer
42 views

How to Keep Section Numbering but Not Include in Table of Contents [duplicate]

I would like have sections in the appendix numbered but not appearing in the table of contents. If I use the \section command then the section is numbered and appears in the table of contents. If I ...
0
votes
0answers
27 views

Change the color of a PART text of name in \section (\subsection or etc.) [duplicate]

In the example, I used \subsection[sub-section {\color{green}1.1}]{sub-section {\color{green}1.1}} to change the color of a part of text 1.1 to green, which didn't work. I used \color for ...
3
votes
2answers
74 views

titlesec is not properly working with koma script

I am new to latex and I am using titlesec for formatting the chapter headings with titlesec. \usepackage{titlesec} \titleformat{\chapter}[display] {\bfseries\huge} ...
0
votes
0answers
14 views

Fitting long headings inside page [duplicate]

The problem is that when I use \pagestyle{headings} for some of my sections, the heading is too long for the size of the page, so it doesn't fit inside it. This is what I currently have: Is ...
1
vote
1answer
39 views

Showing the overview of section in beamer

I am making a presentation in beamer, and I want to display overview of the whole document at the beginning and overview of upcoming section. But I have too many sections and subsections, so the ...
2
votes
1answer
23 views

Numbering align-environments

I'm writing in the article class. The align-environments are being numbered continuously, but I want them to be numbered like "section.number in this section". How can I do that? :)
1
vote
0answers
36 views

How to display all the subsections' titles in navigation bar in beamer?

I want to modify miniframes theme in order to not display the bullets, but to show in the lower bar the titles of all the subsections of the current section. I did it modifying miniframe theme file: I ...
0
votes
1answer
33 views

Table of Contents Inside Section

I would like to add a table of contents inside a section environment to make a TOC made up of subsections, subsubsections and etc. One slight difficutly is that I am not using an article class ...
0
votes
0answers
37 views

mimic an article appearance

I hope to have the appearance of the article of http://math.stanford.edu/~akshay/research/sp.pdf This is an article. I can make the spacing of title looks like the paper, but have difficulty finding ...
0
votes
0answers
13 views

glossaries: glspl scrambles page header [duplicate]

i am working on my master's thesis and encountered a problem I cannot solve myself. I use the glossaries package to be able to use only one package for glossary and acronyms. But when I use acronyms ...
2
votes
0answers
49 views

Make two versions of one document in LaTex?

so I wanna have two versions of a document in LaTex where one versions has additional information for example: section[important]{Formula} importantFormulaXYZ subsection[notimportant]{additional ...
2
votes
1answer
49 views

Section line is indented too

I'm trying to add indentation to my documentation. Every time I wanted to indent a paragraph I put a \hspace*{1cm} command before it. I want to write a command into the preamble. I found ...
1
vote
2answers
28 views

New subsubsection without any space after the title

This is part of my code: \setcounter{secnumdepth}{3} \setcounter{subsubsection}{411} \subsubsection{Root calculation.} The easiest way to.. It has to look the same as : ...
4
votes
1answer
53 views

Section titles: single, centered roman numerals

As the title suggests, I want my section titles to be single, centered roman numerals. That's it, no actual section names. Is that possible? If so, how might I do it?
0
votes
0answers
18 views

Including “Chapter” before each section number in the ToC? (Updated Question) [duplicate]

I was given a solution to include "Chapter" before my section entries in the ToC, however the number of the section does not get transferred to the ToC! For instance, in the MWE below, the sections ...
0
votes
0answers
21 views

How to place subsection heading next to paragraph

I am looking for a way to place subsection titles next to the paragraph / body text they correspond to. The following example is taken from Bauhausbuch No. 9: Any help would be greatly appreciated. ...
1
vote
0answers
26 views

Changing fontfamily for chapter heading using quotchap

I have tried several ways to change font family for chapter heading but to no avail. I am using the following: \renewcommand*{\sectfont}{\fontfamily{Consolas}} Though \sffamily and \sffamily does ...
2
votes
1answer
39 views

Report Table of contents layers

I have a \subsubsection in the table of contents (ToC). It is layered correctly in the table, however for some reason the section number doesn't appear. Every other section appears fine. Any ideas ? ...
0
votes
1answer
25 views

rename theorem environment to proposition

How can I rename the theorem environment to proposition? In other words, I would like to print: Proposition 1 instead of Theorem 1/Lemma 1, etc Thanks in advance PS: I am using koma-script article ...
1
vote
2answers
33 views

How can I obtain correct table of contents order in beamer when including subsections from files?

How can I fix the table of contents order in my beamer? I work with a main file and include one file for each section. However the table of contents puts the subsections before their respective ...
2
votes
1answer
56 views

\appendix command adds a period after section number before it was called

I am using the scrartcl class. To make an appendix with tables and figures I am using the command \appendix. After it, I simply continue using \section to make sections. I noticed that if I use ...
2
votes
1answer
33 views

Adding text outlines to the Section command

I am learning LaTeX and I want to add a outline to the text of the section title and was wondering if there is a nice way to adjust the command to include the outline in the section command rather ...
5
votes
1answer
45 views

Change the name of sections [closed]

In the past I just used \newcommand{\sectionname}[1]{Task~#1} to make the sections have a different name. Now it seems to have stopped working. I am using babel with the ngerman option. I have ...
2
votes
3answers
37 views

Mixing Numbered and Un-Numbered Sections in the ToC

In my table of contents, I need to have some entries numbered, and some un-numbered, but still have the number increment on un-numbered parts. In other words, I need: 1 - First Section Title 2 - ...
1
vote
0answers
37 views

how to correct broken pipe and bad range specification [closed]

I am getting broken pipe and bad range specifications all morning today. Everything worked fine and today I am updating my latex files by splitting chapter and sections to different files. I didn't ...
4
votes
1answer
60 views

How to ignore starred command (such as \section*) with latexdiff?

I try to ignore changes of \section* in latexdiff, and while I am able to do so for \section, the same does not work for \section*. This is a.tex: \documentclass{article} \begin{document} ...
2
votes
1answer
58 views

how to separate chapters and section

I have a lot of chapters and sections inside chapters tex file. I want to make a separate folder for chapter and there put separate sections tex files. How I should do this? I am using report for now, ...
3
votes
1answer
47 views

Displaying Text Next to Section/Subsection title in LyX

Within a given section (or subsection), I would like my section title to appear on the left and I want the text to appear immediately after the title of the section as in the following example. In ...
0
votes
1answer
62 views

How to reduce the space consumed during the beginning of a chapter?

When I begin a document with some chapter heading a lot of space is consumed at the top how do I reduce this?
2
votes
1answer
50 views

Including “Chapter” before each section number in the ToC? (Article Class)

Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else). \documentclass[12pt]{article} \usepackage[utf8]{inputenc} ...
2
votes
1answer
24 views

Why won't memoir show a header on the first page of a chapter?

I want to have a header on the first page of a chapter. \documentclass{memoir} \makepagestyle{generalstyle} \makeevenhead{generalstyle}{}{HEADER}{} \makeoddhead{generalstyle}{}{HEADER}{} ...
0
votes
1answer
19 views

How can I change the style of the section number? [duplicate]

The section appears like "1 XXXXXXX", and I want something like "1. XXXX". I've been looking for some way to change it using \renewcommand, but nothing happens. Can you help me? P.D. I am using the ...
2
votes
2answers
78 views

Page Header in LaTeX

The document class I am using is: \documentclass[a4paper,11pt,openany,leqno,footinclude=true]{memoir} I want to get the header of a page in LaTeX just like the one I found here: Here apparently ...
1
vote
1answer
47 views

variable beforeskip in \@startsection

Is it possible to have a "calculated" \beforeskip in \@startsection ? I want the beforeskip of a subsection to be 1.5ex unless the previous paragraph is a section. In that case I want the section and ...
1
vote
1answer
33 views

Need to add a Period (dot) after Section Number [duplicate]

I have the following MWE: \documentclass[a4paper,11pt,Times]{article} \usepackage[english]{babel} \usepackage{amsbsy} \usepackage{sectsty} \usepackage[scaled=1]{helvet} \usepackage{titlesec} ...
1
vote
1answer
65 views

How to reset frame number in beamer correctly when using parts?

I used some code found here on stackexchange (I don't quite remember where exactly) and structured the beamer-lecture using parts. The problem I encountered is, that the frame number won't reset ...