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

1
vote
1answer
12 views

Change Formatting of \subsubsection just once?

For a part in a subsection of my book I use a \begin{mdframed}[backgroundcolor=lightgray], which is a grey box aroound a part of my text. I would like the subsubsection title in the box, and only in ...
2
votes
0answers
26 views

Color macros for sectioning titles

I am trying to write macros for type-setting the titles in my article's sections, subsections and subsubsections in different colors using: ...
5
votes
1answer
287 views

Same \chapterformat for \chapter and \chapter* without titlesec

I've done some styling for my chapter titles, based upon tikz and the titlesec package. Unfortunately, the KOMA-Script packages gives me numerous warnings about titlesec. In order to get rid of the ...
5
votes
1answer
73 views

Automatically add \texorpdfstring for math-mode in section titles

I'm receiving a ton of warnings á la "token not allowed in a pdf string", since most of my section titles contain math (see this post here: Hyperref - Token not allowed or here: Hyperref warning - ...
2
votes
1answer
112 views

Removing chapter numbers from section headings in memoir

I don't want the chapter number in the section headings: That can be achieved by \counterwithout{section}{chapter}, which works fine as long as one doesn't have more than one chapter at a time: ...
3
votes
1answer
51 views

How to number subsection of a nonumber section?

To number the subsection, I use \renewcommand*\thesubsection{\thesection.\arabic{subsection}} It works well for the normal numbered sections. For example, if we use \section{A} ...
2
votes
1answer
371 views

Uppercase chapter with KOMA-script

It has already been mentioned that it could be tricky to get uppercase letters in chapter for scrbook. However, the solution in Using \MakeUppercase in \@startsection works for scrreprt. The solution ...
17
votes
1answer
20k views

Centering chapter/section/subsection

I am trying to center my chapters/sections/subsections. I have used the following: \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}} \newcommand{\ssection}[1]{\section[#1]{\centering #1}} ...
1
vote
1answer
24 views

Horizontal little box before section's heading?

I cannot find properly what I need about my topic. I would like to set customized section's heading like in the example, but I am not so good with latex. Can someone maybe implement my code or ...
0
votes
1answer
1k views

fancy heading … \section{} titles disappears

By combining the next two questions-answers Fancy chapter headings and Section title gradient . I have this effect. The problem is that the name of \section{} disappears. What is wrong? ...
2
votes
1answer
14 views

Vertical positioning of “part”-level header

I am using the \part sectioning with the following definition: \def\@part[#1]#2{% <------------------------------- \part[..]{...} \ifnum \c@secnumdepth >\m@ne \refstepcounter{part}% ...
0
votes
1answer
15 views

Reset counter for sections in h2020proposal class [on hold]

I want to have sections to be numbers as section 1 subsection 1.1 subsection 1.2 section 2 section 3 However now I am using this template that is forcing the following ...
14
votes
2answers
14k views

Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on ...
0
votes
0answers
38 views

New section error: !Missing number, treated as zero.<to be read again> [closed]

I allways get this two errors "! Missing number, treated as zero." and "! Illegal unit of measure (pt inserted)." \documentclass[% a4paper, 11pt,]{tubsbook} \usepackage[utf8x]{inputenc} ...
2
votes
3answers
116 views

figure is in subsection but it goes to subsection

I need your help in solving the followings: \documentclass[a4paper, 10pt, conference]{ieeeconf} ... \subsubsection{C} \begin{figure}[h] \begin{minipage}[t]{0.3\linewidth} \centering ...
3
votes
4answers
69 views

Customise my own subsubsection numbers

I am trying to write a thesis and would like to number the subsubsection titles within a section easily so I can refer to them nicely and easily later on in the document. Here is what I have at the ...
1
vote
1answer
25 views

How to change section titles to bold face with ieeeconf class [closed]

How can I change the section titles to bold face with this class: \documentclass[letterpaper, 10 pt, conference]{ieeeconf}
4
votes
1answer
7k views

latex end section or sebsection

how can I specify the end of subsection. In my example: I have a subsection with only 3 rows, but I see the next paragraph also as continuance of the subsection: \subsection{Kontrolle} Zur ...
4
votes
0answers
109 views

How to reduce the gap at the beginning of chapter 1? [closed]

\documentclass[a4paper,12pt]{mnnit} \usepackage{graphicx,times,epsfig,amsmath} \usepackage[Sonny]{myfancy} \usepackage{fancyhdr} \setcounter{secnumdepth}{5} \usepackage{float} \usepackage{subfig} ...
1
vote
0answers
32 views

Title and Sections Customize [closed]

I am newbie.I need something like the picture. How to do this? Header and Section Fancy Styles
2
votes
1answer
45 views

Removing numbering everywhere except table of contents

What I essentially want to do is to remove numbering of sections everywhere(primarily, the header and in the main body) except the table of contents so that sections are numbered there but my left ...
3
votes
2answers
64 views

paragraph numbering

I am using the paragraph section head, i.e., \paragraph{This is a cool paragraph} I would like it to compile with numbering. If I change the secnumdepth (i.e., \setcounter{secnumdepth}{4}) this ...
2
votes
1answer
33 views

How to format my \chapter* similarly to my \chapter style

I have used the following code to format my chapters and sections in my report. \documentclass[a4paper, 11pt]{report} \usepackage{xcolor} \definecolor{dtured}{RGB}{153,0,0} ...
10
votes
4answers
3k views

How to set rightmark after \section command?

I need to typset a book with very long section names. The long names should appear in the normal text and in the ToC but not in the header, so I can’t use the optional argument. \sectionmark is my ...
2
votes
0answers
25 views

Beamer presentation: List of frames within a section which produces double numbering [closed]

when I compiled the example given in an answer to post "Beamer presentation: List of frames within a section / part", I end up with double numbering (with a shift) for frames except for the first one ...
2
votes
1answer
48 views

Align unnumbered and numbered chapters

I'm using the ERDC template and when I make an unnumbered chapter (\chapter*) it doesn't align with the numbered chapter on the next page. Cant identify any custom format in the ERDC cls code. erdc ...
26
votes
3answers
24k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
1
vote
1answer
33 views

Have new lines after paragraphs but not after headings in LaTex?

I wish to follow the convention of marking paragraph breaks with a line break as opposed to the LaTex default of an indent. However I do not wish to have a new line after section headings. Previous ...
1
vote
1answer
19 views

Don't create section for bibliography

I am writing a document which uses chapters (\chapter{...}) instead of sections and would like to create one chapter for my references. But when I am using these commands: \bibliographystyle{plain} ...
1
vote
1answer
49 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, ...
1
vote
1answer
114 views

Section title opposite to the logo

Could you please advise me how I could change that code from this link to place the section title opposite to the logo? I am new in LaTeX and I would be very grateful for advice. For example: 1st ...
2
votes
1answer
48 views

Insert the number and name of the section in the header, (including on a chapter's opening page)

By using fancyhdr, I want to get the section name and number in the header of pages and if relievant also the chapter name. To be CLEARER, The question goes to : How to put on the header of the ...
2
votes
1answer
18 views

Add a period after section number with memoir class

I was using the titlesec command \titlelabel{\thetitle.\quad} to add a period after the section number, but it isn't compatible with the memoir options : \section[Section title in TOC][Heading ...
7
votes
2answers
66 views

Chapter, section, etc. numbers on left margin, aligned left

In the memoir class, the "hangnum" chapterstyle puts the section numbers on the left margin, aligned right. How do I change it so that it is aligned left? Here's an MWE with the original definition ...
2
votes
2answers
35 views

Vertical space before new section on new page begins

How can you create vertical space before a new section on a new page begins? Using vspace or bigskip does not work. Example: \vspace{5mm} \section{Section 1} Some text \subsection{Section 1.1}
6
votes
1answer
163 views

Newline after Section number / before Section title in KOMA Script

i have to adhere to a style guide which dictates newline after a chapter/section/etc number, i.e. instead of the usual 1.2 Heading its supposed to be 1.2 Heading This has to work for both the ...
1
vote
0answers
37 views

Section number is not getting printed [closed]

I am not getting the section numbers. for ex. 1.1, 1.2, 1.3.. are not getting printed in output. I want it to be displayed both in table of contents and main page. Right now it is only displayed on ...
3
votes
1answer
17 views

Disable \FloatBarrier for selected sections

I am using \usepackage[section,above,below]{placeins} which does exactly what I want. In order to avoid too many blank pages, I am looking for a command that disables the \FloatBarrier at the ...
0
votes
1answer
27 views

subsection after table appears before

I have the following code: \subsection{AAA} This data was taken from RStudio's fclust packedge. \begin{table}[] \centering \caption{Butterfly data - 3 clusters} \begin{tabular}{ ...
4
votes
2answers
188 views

What's the space between paragraphs?

\documentclass{article} \usepackage{lipsum} \begin{document} \paragraph{First paragraph} \lipsum[4] \paragraph{Second paragraph} \lipsum[4] \end{document} What is, and what sets, the space between ...
0
votes
1answer
21 views

Numbered exercises as sections

I want to split my document like this Part 1 1) 2) 3) 4) Part 2 5) 6) 7) 8) How is the best way to do this? I could use \section{Part 1} \subsection*{1) ... \section{Part 2} \subsection*{5} ... ...
2
votes
1answer
145 views

placeins: options section and below

I am using the package placeins with the options section and below so the floats will appear in their sections below their section if on the same page; however, the float is appearing above its ...
2
votes
0answers
21 views

Control figures grouped inside a section when there are a lot of them

I am working in my homework where there are a lot of figures. I have a visual problem with figures which they must only placed inside a specific section, but they are shown in the next section. This ...
0
votes
0answers
11 views

Formatting LaTex subsubsubsubsection in Table of Contents [closed]

I created some code to implement \subsubsubsections and \subsubsubsubsections respectively. While the \subsubsubsection now works great, the \subsubsubsubsection doesn't properly format Table of ...
1
vote
1answer
141 views

Align section titles in margins properly

This is a follow-up to First paragraph indented after section title in margin, but I'm unable to vote, comment, or accept answers there because it's made under a guest account and not linked to this ...
3
votes
2answers
39 views

Section headings in a separate column

I'm interested in achieving a two-column layout like the following, where the columns are flush with the left and right margins of the page: | section heading | lorem ipsum lorem ipsum lorem ipsum ...
15
votes
2answers
4k views

using \textit in \section{} with beamer class

For a presentation using the beamer class (MiKTeX 2.8 with TeXnicCenter on Windows Vista) I need to have the italicized title of a book in a section heading. When I use \textit{...} or \emph{...} ...
5
votes
1answer
1k views

How can I add dot after the subsection number?

I use \usepackage{secdot} so I achieved dot after section numbering. But I can't for subsection
0
votes
1answer
32 views

How can I have subsection headers in a separate column while maintaining document structure and control of fonts?

I am trying to typeset a document (a CV) so that subsection headings (and only those) are in a separate column to the left. I would also like to be able to control the fonts for content and headings ...
1
vote
1answer
30 views

Make LaTeX / KOMA-Script ignore vertical depth in sections

How can I force LaTeX / KOMA-Script (>=3.15) to ignore the vertical depth in sections? MWE showing the problem: \documentclass[twoside]{scrartcl} \begin{document} \section{ja} \rule{\textwidth}{1cm} ...