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

TOC overlap with custom section numbering [duplicate]

I have redefined \thesection in my document to give me custom numbering. Now the section number is slightly longer, and the table of contents hasn't adjusted accordingly. In the TOC below potatoes ...
4
votes
2answers
82 views

How to color section numbers in the TOC?

In the following MWE, how can I color just section numbers in the TOC? \documentclass[a4paper]{book} \usepackage{color} \makeatletter \renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}} ...
4
votes
1answer
27 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
2
votes
3answers
122 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 ...
1
vote
1answer
181 views

Underline subsection heading [closed]

Hi I am using latex for my dissertation and I need to make a change to conform to my school rules. I currently use the following commands for \subsection \makeatletter ...
7
votes
3answers
115 views

Why can't sectsty change the chapter font when it's used with babel package?

I'm using Latex to write my thesis in Hungarian, so I include in the preamble the following: \usepackage[magyar]{babel} Once this is loaded, I get "Chapter", "Figure", etc. in Hungarian and with ...
2
votes
1answer
27 views

using \include for unnumberred chapters and sections ->tableofcontent mess?

I want to have a document with the following preconditions: sections in separate files -> \include{} chapters and sections are unnumbered -> using \addchap{} and \addsec{} chapter headings should ...
3
votes
1answer
40 views

How to make a layout with colored boxes around sections

I am trying to reproduce the following layout with latex: Is there any package or document class made for such a layout? The example is made in word using tables. But I think using tables in latex ...
0
votes
1answer
14 views

Subsection numbering in beamer

How do I add subsection numbers. It always starts from 1. but I want 1.1 and 1.2, etc. And then for subsubsections 1.2.1 etc. \documentclass{beamer} ...
2
votes
2answers
49 views

How to change the title, abstract and headings font to Sans Serif

I'm making a journal publication in LaTeX and I've been trying to change the font of all my non-main texts to a sans serif font. Meaning, all the headings, titles, section titles, abstracts and so on ...
0
votes
0answers
18 views

No numbers with titlesec and [hang] [duplicate]

If I use the [hang] format of the titlesec package (using a quite recent version of titlesec, namely 2016/03/15 v2.10.1, and TeX Live 2015), the section is not numbered. It seems that the [hang] ...
4
votes
2answers
103 views

How to make editorial table from sections

How would it be possible to make an editorial list/table? I'm not asking how to create a list or table, but if it is possible to attach something to \section's and \subsection's in the form of a ...
2
votes
1answer
94 views

How to count the total number of subsections within a section? [closed]

How can I count the total number of subsection within each section. Actually, both section within each chapter, and subsections within each section for the article class. Based on this post I have ...
2
votes
2answers
52 views

How do i remove the chapter number from a section?

I want to show my "Attachments" in ToC, but I don't want there to be a chapter number in front of it. How do I remove it? Its the "Vedlegg" part in the picture. Thanks for any help.
3
votes
1answer
36 views

Sections with number ranges

I've been working on an assignment, and two of the questions are very similar and it's easier to write about them both in the same section. The problem with this is it screws the numbering up: 1 ...
1
vote
0answers
14 views

Set new heading for included multi-page document

In a large base document \documentclass[10pt,onecolumn]{article} I use \pagestyle{myheadings} \markboth{ }{my main document heading text} to set the headings. I am also using the pdfpages ...
1
vote
0answers
30 views

Large spaces between words in subsection title [duplicate]

I have a problem with the spacing in the header of a subsection. Only this particular heading has large spaces. It looks like this: Here is MWE: \documentclass[11pt,twocolumn]{article} ...
0
votes
3answers
39 views

LaTex - Change color of section

I want to change the color of a single section, and that color must not be changed in Table of Contents. \subsubsection{{\color{red} Embedded Design}} This is the code I used, but the color will ...
3
votes
1answer
78 views

Create a chapter with different style, using Tufte book

I'm finishing a book using Tufte-Style Book (b5paper,twoside,justified). I just arrived at the last chapter (10th) and want it to be different from the previous 9, as it contains different information ...
53
votes
3answers
47k views

Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...
33
votes
2answers
37k views

Start new chapter on same page

I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears. I want to be able to start new chapters on the same page as the ...
2
votes
1answer
53 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 ...
2
votes
2answers
49 views

Latex how to call subsubsections in text

I am writing a large text using Latex, where I use chapters, sections, subsections, subsubsections and paragraphs. My problem is that I would like to write, in my text, something like "this is ...
1
vote
1answer
25 views

How to make ( \section ) flushleft like on article or report? [duplicate]

I'm using \docummentclass{amsart}and when using \section it prints it out in the center of the line how to make it on left I used \begin{flushleft} \section \end{flushlef} but it didn't work.
1
vote
1answer
53 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
28 views

Sectioning chapter, section, subsection formatting

I'd like some help with the formatting of chapter, section and subsections. I am using the report document class and I'd like to generate the following chapter, section and subsection formatting in ...
4
votes
1answer
63 views

How to get a section style in KOMA Script without titlesec package?

Well, this time I have a very concise doubt about how to get a section style diferent from the default one in KOMA Script (actually within the scratcl class) without use the titlesec package. With ...
5
votes
2answers
125 views

Square brackets for \section and \chapter. What is the difference between \section{Section Name} and \section[ something here]{Section Name}?

I recently solved a problem for adding footnotes in a chapter title by changing \chapter{Title\footnote{text}} to \chapter[Title]{Title\footnote{text}}. However, I don't understand why this works. ...
3
votes
1answer
45 views

How to format figure numbering as X-Y when section numbering is formatted as X.0?

I've used the following commands in my document to ensure that section numbering appears as 1.0, etc. while the subsections appear as 1.1, 1.2, etc.: \renewcommand*\thesection{\arabic{section}.0} ...
2
votes
2answers
327 views

Tocloft + KOMA, get rid of numberings in table of content, but keep them in the content and in other lists such as list of figures

I am using the documentclass scrbook (KOMA) with tocloft and would like to get rid of all the numberings of the chapters, sections and subsections in the table of content, but not in the content and ...
2
votes
2answers
276 views

Tocloft + KOMA, get rid of numberings in table of content, but keep them in the content

I am using the documentclass scrbook (KOMA) with tocloft and would like to get rid of all the numberings of the chapters, sections and subsections in the table of content, but not in the content ...
1
vote
1answer
23 views

Can't Change subsubsection to runin with titlesec

I followed previous examples on here, but could not eliminate the newline after the subsubsection (I want it to runin just like paragraph does) \documentclass[oneside,openany,openbib,11pt]{memoir} ...
1
vote
1answer
31 views

hyperref, titletoc and \appendix

I provide here a MWE: \documentclass{article} \usepackage{titletoc} \usepackage[colorlinks=true ,urlcolor=blue ,anchorcolor=blue ,citecolor=blue ,filecolor=blue ,linkcolor=blue ,menucolor=blue ...
1
vote
1answer
10 views

Changing Subsection Marker

So, I am using the following to change the subsection enumeration scheme: \usepackage{titlesec} with \renewcommand\thesubsection{\S}. And, this is great, but I would like to add an numeral to this. ...
3
votes
2answers
34 views

Modifying the end of the section environment, without changing its name

I would like to add certain behavior to the end of an environment (vspace). I would like to do so without changing the name of the environment. I found the following code in a different Stackexchange ...
1
vote
1answer
27 views

Formatting section title text only

There are several posts on this site about formatting section titles, but I haven't seen one yet shows me how to edit the section title without editing the default spacing. I would like to have ...
2
votes
1answer
32 views

\hyperref and modified \addcontentsline

I'm using hyperref (and titletoc) package(s). I redefined \appendix that way \newif\if@appendix\@appendixfalse \renewcommand\appendix{\par \setcounter{section}{0}% \setcounter{subsection}{0}% ...
5
votes
3answers
117 views

\@seccntformat only for section

I would like to add a dot between the number of the section and section name. I used \makeatletter \renewcommand*{\@seccntformat}[1]{% \csname the#1\endcsname .} \makeatother The problem is that, ...
2
votes
1answer
25 views

line break in “moderncv like \section” in the article class suggests missing \item

With the default definition of \section in the article class, I can make a multiline section header: \documentclass{article} \author{} \begin{document} \section{test \\ test} \end{document} The ...
1
vote
1answer
28 views

Ttitlesec package and underlining subsubsections

I am desperately trying to underline the headings of the subsubsection title. Here is my problem. If I use this piece of code: \documentclass{article} \usepackage{sectsty} \usepackage{titlesec} ...
1
vote
0answers
40 views

How to edit the headnote please? [closed]

I want to edit the following code to show only the chapter name not the chapter number please. For example: 'Introduction' instead of 'Chapter 1 Introduction' This is part of the thesis style of my ...
1
vote
1answer
154 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 ...
1
vote
0answers
23 views

Can I stop headnotes in one chapter of my thesis or edit it? [duplicate]

I am using my university thesis style and my main file code is shown below: \documentclass[twoside]{ecsthesis} \begin{document} \frontmatter \title {} \authors {} \maketitle ...
1
vote
1answer
37 views

Extra section between part and chapter [duplicate]

I want to have an extra sectioning level under \part{}, say \subpart. It has no difference as for the location on the page or the size of the font with \part{} command. I tried titlesec but I ...
3
votes
1answer
57 views

How to customize the “sections” representations with graphical shapes?

I want to have "sections" in which not to have numbers, instead to have some custom graphical artworks next to them. I want them to appear the same in the table of contents. Like the following figure: ...
1
vote
1answer
29 views

How do I keep section numbering isolated when including standalone files?

Suppose I have a file test2.tex which includes the contents of another file, test1.tex. Both of these files are standalone documents (ie. I want to be able to compile test.tex on its own). test1.tex ...
3
votes
1answer
53 views

Redeclared Section formatting - Centering

I would be grateful if someone could explain how the following could be centered instead of indented? Perhaps a MWE is not required for this? \RedeclareSectionCommand[ indent=1.25in, ...
6
votes
2answers
70 views

counter in TOC fails when using xparse command instead of LaTeX2e command

Here I define a custom sectioning command, \Unit, which prints a numbered subject heading and adds it to the table of contents. If I use \newcommand for the command that creates the numbered label, ...
0
votes
0answers
34 views

Cause appendices to appear as sections in ToC, and their sections as subsections etc. [closed]

I'm trying to format the way my appendices appear in the ToC in my thesis. I'd like to have an unnumbered chapter called 'Appendices', followed by A. First Appendix and B. Second Appendix formatted as ...
3
votes
1answer
62 views

Section command does not work

The following LaTeX code works fine on my laptop, but doesn't on my friend's computer. We are both using Texmaker. The problem seems to be the section command, which gives me the error message: ...