{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
26 views

Automatical title section in beamer only on the first frame after \section

I'm trying to make that the title of the last section appears as frametitle only on the first frame after each \section{...} code. Now, i'm doing it manually with this code : \newcommand{\TS}[0]{ ...
1
vote
1answer
20 views

Remove indent of first paragraph when using titlesec package

I use the titlesec to format section in book class. The section pos to leftmargin, but when I compiled, the firs paragraph have indent. How to remove indent automatically. \usepackage{titlesec} ...
2
votes
1answer
54 views

How can I write a conditional coloring command that distinguishes variables within titles vs within the body text with titlesec/titletoc/tocloft?

Question Is it possible to write a conditional statement for commands that change them based on where they appear in the document, yet is fully compatible with the titlesec package and the tocloft ...
4
votes
2answers
107 views

Pagestyle uheadings. No page number on first page with chapter title

I am using uheadings pagestyle. First page of every chapter should have page number at the bottom (default plain style), but in my document there is no page number there. This is my master page: ...
7
votes
2answers
184 views

How can I write a conditional coloring command that distinguishes variables within sectioning commands vs those within the body text?

Question Is it possible to write a conditional statement for commands that change them based on where they appear in the document? Example Situation When command appears in the body, it should be ...
3
votes
2answers
62 views

Add texte before headings numbers (KOMA)

I'm using the KOMA class scrbook, and trying to add some text before any section and subsection title. Like that : \section{Hello !} must display Section 1 : Hello ! (1 is the normal counter). The ...
2
votes
1answer
31 views

Redefine section headings for my appendix sections to be a full page

I am creating a document (document class is article) with several appendix sections. I change from numeric to alphabetic like this without problem: ...
2
votes
1answer
52 views

Unnumbered part with “Part” header

I am writing a thesis, whose outline is a bit treelike, so I would like to have a trunk part (that contains several chapters) and several branches (also containing some chapters). I changed the name ...
1
vote
1answer
47 views

Can not use csvsimple and have accent characters at the same time

When parsing in XeLaTeX the template available in SIGCHI with the package csvsimple and "fontspec" (to include special UTF8 accent characters), I'm able to see "áéíóú" in the body of the document but ...
2
votes
1answer
74 views

Customize KOMA section headings without titlesec

A quick question: Is it possible to change the name of a part/chapter/section with some sort of command? For example, I have a chapter called "Important Things". I created this chapter with the ...
1
vote
1answer
54 views

How to set the spacing before and after of section headings to a fixed value of 1.5cm?

In this code, i want the spacing before and after of my section, subsection, and subsubsection headings to be exactly 1.5cm regardless of the font size or my line spacing. How can i do this? I know ...
5
votes
2answers
116 views

Chapter and Section format

I want my chapter titles to look as they would with the code below. \documentclass[12pt]{book} \pagestyle{plain} \usepackage{amssymb,latexsym} \usepackage{amsmath} \usepackage{amsthm} ...
6
votes
1answer
102 views

How would you typeset this type of programming documentation?

Consider, for example, this pdf document which defines the standard for the C programming language. The description of the library functions follows a fixed structure composed of three sections, as ...
0
votes
0answers
19 views

Undesired space before the section title when a figure is inserted after the section title

After I used a template, Latex gives me a lot of white space before the section title because a figure is inserted after the first paragraph of the section. I used [H] as the floating parameter for ...
2
votes
0answers
33 views

Centering bibliography title in biblatex - tried every suggestion on Google

I know this question has answers on this site already, but none of them worked! I am using biblatex with the historian style for my history day paper. My teacher requires the bibliography heading be ...
2
votes
1answer
42 views

How to adjust the section numbering (as in skipping a couple of section numbers) when using letters instead of numerals for section numbering?

I have changed the section numbering from numerals to letters with the command \renewcommand{\thesection}{\alph{section})} in the preamble. For example, the first \section{} would be printed like ...
4
votes
1answer
43 views

Start only some chapters on right-hand side after a set page/chapter

I'm working on my masters thesis, and have a fairly decent structure (I feel..), but I have one issue. I want my chapters to start on the right-hand side, which in itself is not hard to do. However, ...
4
votes
3answers
98 views

Does the \bibliography command specify a \section* anywhere?

I'm using a class based off the scrartcl class. I need to include a bibliography entry in a section, but it displays it as having a * for the section title. If I use the command \section*{hello} ...
1
vote
1answer
57 views

Adjusting spacing around section/subsection titles with koma-script

With the KOMA-script scrreprt class the vertical spacing before and after chapter titles can be adjusted the following way: \renewcommand*{\chapterheadstartvskip}{\vspace*{0cm}} ...
2
votes
1answer
30 views

Make \sections in book class start on the right (odd pages)

I'm using the book documentclass, but I use \section instead of \chapter to structure it. Is it possible to make the sections start on the right (odd pages)?
6
votes
1answer
40 views

How do I modify the appearance of subsection headings without also messing up how subsection referencing works?

I have a revtex4 document and I'd like to change how the labels for the subsections appear: \section{Foo} \subsection{Bar} Currently compiles to something like: I. Foo A. Bar But I'd ...
3
votes
1answer
20 views

Revtex section heading alignment

I am using REVTex 4-1, for my own personal use, not a paper submission. I like using REVTex and I have gotten somewhat used to it, but for my current purposes I need left aligned subsections ...
3
votes
1answer
56 views

Documentclass book section numbering starting with 0

I stumbled across a weird problem. The following MWE produces an output where the section numbering starts with 0: \documentclass{book} \usepackage[english,ngerman]{babel} \usepackage[T1]{fontenc} ...
11
votes
2answers
266 views

Surtitle for section?

I'm writing a book in which I would like certain sections to have a "surtitle" like this: I would probably like the table of contents entry to look like "Science and Society: The Galileo Affair," ...
2
votes
2answers
56 views

How to get the name of unnumbered section into headings?

I use \usepackage{fancyhdr} then \pagestyle{headings} and I want \section*{name of the section} in my headings. How to do it?
1
vote
0answers
48 views

Page-wide Image in a two-column scrbook layout

In a document based on scrbook class and setup with twocolumn, I need to place an image that spans the textwidth. In the below example, using just the {figure*} environment and a 590px by 350px simple ...
3
votes
1answer
122 views

Typesetting scenes in a novel

I am typesetting a novel in ConTeXt and I need a way to correctly typeset scenes. A scene in my novel is just a sequence of paragraphs separated from the previous one by two blank lines (though in the ...
2
votes
1answer
54 views

How can I fix the following formatting problem with the table of contents?

I have a few unnumbered chapters that I would like to add to the table of contents. This is not a problem at the moment, because of someone graciously providing the following macro, which adds the ...
4
votes
2answers
65 views

Sections : Suppress numbers but retain title in header

I've found an answer to my question for a Memoir Class (Memoir class: turn off section numbering but still have header), but I can't get it to work for a book. Basically, I want to suppress the ...
6
votes
1answer
77 views

Titlesec package - paragraph level headings as margin notes

After hours of pointless googling around I did not manage to find out how... I'm new to LaTeX templates and now I'm trying to make simple (?) modification so that I could have paragraph level headings ...
0
votes
0answers
42 views

Chapters with and without numbering together in the same table of contents

I am typesetting a novel in ConTeXt and though I have read as much documentation as possible, I still have doubts about how to do things in a clean and correct way. I typeset my chapters by using a ...
3
votes
1answer
87 views

The “beforeheading” counterpart of \@afterheading

Suppose that for ransom reasons (in my case, because my document was converted from XML) I want to typeset all headings manually. Then I could do something like \documentclass{memoir} ...
2
votes
1answer
46 views

problem with titlesec package with tex4ht when using starred version of \section

I just updated my texlive 2014 using tlmgr to fix an older related problem with using titlesec with tex4ht. But it seems a new problem now shows up. This show up only when using the starred version ...
9
votes
2answers
126 views

How to left align the section title in latex?

I am using the \documentclass{ctexart}, and this document class centers the section title by default. How could I left align the section title?
2
votes
1answer
74 views

Beamer — Showing subsections for the current section in sidebar

I have a lot of subsections in my beamer presentation and there is a sidebar in my theme. I prefer to show the list of subsections only if their parent section is active. In this way less space will ...
1
vote
2answers
61 views

How to change spacing before and after \paragraph command?

I tried to control the spacing before \paragraph{} using a command such as \setlength{\parskip}{3pt plus 1pt minus 1pt} but that doesn't influence it. (It influences spacing between regular ...
3
votes
0answers
35 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 ...
4
votes
1answer
60 views

Headings with a hanging subhead

I use this piece of code to add a subhead (usually a quick reference) in my notes: \newcommand{\mysection}[2]{\section[#1]{#1\\*[.6ex]\normalsize\textit{#2}}} I'd like to make the subtitle hanging ...
3
votes
1answer
40 views

How to specify bookmark and TOC title separately

I customize a dash symbol \newcommand{\shortdash}{\rule[.7ex]{0.5em}{0.5pt}} to minimize the space around when typesetting in non-english situation. When I used it in \section, it works in text and ...
1
vote
0answers
35 views

Preprocessing code for cross-compilation of two different projects?

I have two different projects, which are the LaTeX code for English and Greek for the same book. Does LaTeX support preprocessing code (without using any external tools) that would allow two ...
3
votes
3answers
39 views

How to boldface only a subsection number in amsart?

If I use the code \makeatletter \renewcommand{\@secnumfont}{\bfseries} \makeatother from How to boldface a section header? (including title and number) it makes the number of sections bold as well. ...
1
vote
1answer
36 views

Issue with page breaks before section and toc hyperlinks

I need page breaks before each \section{...} of my document. According to this thread: Start new page with each section I am supposed to add following command: \newcommand{\sectionbreak}{\clearpage} ...
1
vote
1answer
47 views

How to indent section and subsection differently

I want to set parindent to 2mm in all my sections and parindent 0mm in all my subsections. Is there a way to do this ? Thanks Ráď \documentclass{article} \begin{document} \section{Section1} Lorem ...
2
votes
2answers
53 views

Remove section number from Table of Contents

How can I remove section numbers from the Table of Contents? My document class is article: \documentclass[a4paper]{article} \begin {document} \tableofcontents \section{one} test text number one ...
0
votes
0answers
45 views

Format Latex report Chapter, Section, Subsection header styles

I'm writing my thesis and instructions for chapter, section and subsection are as following. - Chapter heading :All Capital—14 Font size, Bold - Section heading :Title case-12 Font size, Bold - ...
2
votes
1answer
59 views

Aligning header to the right in ConTeXt

I am typesetting a novel in ConTeXt and one of the things I was in need was a way of typesetting headers for scenes. A scene as I understand it, is simply a couple of lines which separate paragraphs, ...
1
vote
0answers
61 views

How to prevent new sections from going to next page or paragraphs in LaTeX [closed]

I am working on my two-column article. I notice that often when I use the \section{} command in LATEX, the new section appears in the next column (or even next page), even if the first column or page ...
0
votes
0answers
27 views

I don't know why I'm getting these white spaces in my PDF [duplicate]

I was just doing a project in sharelatex and from one time to another the white spaces shown in the figure appeared, the white spaces are the ones between subsections. I've spent 20 minutes trying ...
1
vote
1answer
55 views

Chapters number moves out of margin

i'm new to LaTeX and got a problem. The picture says it all... When my number of chapters exceeds 9, the second digit moves out of the margin.... I have copied the following layout, for the ...
3
votes
1answer
56 views

TOC section symbol/numbering

So I've come to the following problems while writing something in LaTeX, first, I want to have the numbering of a section of the output to be just a number not depending of the chapter. (not like ...