{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)

4
votes
2answers
58 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
69 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
46 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
62 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
28 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
123 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
71 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
34 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
70 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
40 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
43 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
14 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
65 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
56 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
65 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
25 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
37 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
56 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
38 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 ...
2
votes
2answers
41 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
87 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
40 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
51 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
49 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
57 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
102 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
82 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
68 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 ...
2
votes
1answer
57 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
39 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
30 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
104 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
55 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
47 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
81 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 ...
2
votes
2answers
22 views

Error with section numeration while using abntex

I am using abntex2 to write my document and, for some reason unknown to me, the first section is marked with 0.1, instead of 1, the second, with 0.2 instead of 2 and so on. Here's the code below: ...
6
votes
1answer
637 views

Missing number, treated as zero when creating a chapter

I'm trying to create a chapter , the first subdivision in the document, but whenever I try the \chapter{...} command, I get this error: Missing number, treated as zero. <to be read again> ...
3
votes
1answer
93 views

A simple section exercise section

What I want seems pretty simple, but I was not able to find a satisfactory answer. What I want is something like this \section{Foo} A bunch of definitions, theorems, remarks, etc. \begin{exercise} ...
1
vote
3answers
66 views

Title of Section in Center (thesis writing)

For writing thesis, I am using \documentclass[a4paper,oneside, 12pt]{book} In it, sectioning was coming at left. I want them in center. This has been considered before (see this). But, I tried ...
2
votes
2answers
88 views

How to stop a custom \section macro from adding whitespace to the beginning of a paragraph?

I lifted a \section macro from the TeXbook. \outer\def\section#1{\medbreak\noindent{\bf#1}\smallskip\par\nobreak\noindent} When I use this macro like this: \section{\TeX nical documenation} Blah ...
4
votes
1answer
80 views

Customizing section for adding bullet or image

I am a newbie to TeX and I'm trying to create a template CV for learning LaTeX class and new commands. I want to create an \iconsection command get 2 values: first, an icon filename or pifont ...
2
votes
1answer
143 views

Double-spaced paragraphs with single-spaced headers in classicthesis?

I've been writing my PhD thesis using the classicthesis template with the arsclassica style package. My university requires that I double-space the body of the thesis, so I'm using \doublespacing for ...
2
votes
1answer
65 views

How to change the numbering of section and subsection

I would like to see my sections as for example 3-1 instead of 3.1 How can I do this?
0
votes
0answers
54 views

Size of spaces left before and after title chapters in ConTeXt

How much space is left before and after title chapters, considering that the parameters before and after have been set as [before=,after=,]? Are these spaces related to the font size of the title ...
4
votes
1answer
51 views

Put section on the left of text instead of above

How can I get section headers on the left of the text, so I get something like My Section Header Some text More test [...] Another Section ...
0
votes
0answers
37 views

Increase \label{} counter manually [duplicate]

I use my own version of subsections for definitions: \newcommand{\definition}[2]{\addtocounter{subsection}{1} \subsection*{\thesubsection ~ Definition (#1) \text{\normalfont{#2}}}} I use them as: ...