{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
52 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
74 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
135 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. ...
1
vote
1answer
27 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
44 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
13 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. ...
1
vote
1answer
32 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 ...
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 ...
2
votes
1answer
37 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}% \gdef\...
5
votes
3answers
151 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
102 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
1answer
33 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
30 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
41 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
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 \begin{...
1
vote
1answer
43 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 couldn'...
3
votes
1answer
90 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 ...
1
vote
1answer
33 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
60 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: ...
3
votes
1answer
57 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, font=\...
6
votes
2answers
76 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, ...
3
votes
1answer
47 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} \...
0
votes
0answers
60 views

\newpage or \pagebreak don't work before \section

I am trying to make a \section{Chapter 1} start on a new page using \newpage immediately before it, and it doesn't work. Can anyone tell me why? Thanks
3
votes
1answer
88 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: "...
0
votes
1answer
65 views

How can I format headings and subheadings to this layout?

How can I format a book like the sample in the image? The chapter number uses the font Algerian, but I am not sure about the headings and subheadings. Are there similar latex fonts that I can ...
1
vote
1answer
31 views

\includepdf puts title section below top margin

I'm inserting an pdf file for a section with the command \includepdf[scale=0.9,pagecommand=\section*{\begin{center} ANEXO \end{center}}]{Oficio5S.pdf}, so the pdf is inserted in the page ...
2
votes
1answer
87 views

Sections with custom numbering

Can I have Para numbers as 1. sub para as (a) sub sub para as (i) sub sub sub para as (aa)
3
votes
1answer
34 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 ...
5
votes
1answer
107 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 - ...
1
vote
1answer
28 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
111 views

Header and text font isn't changing

I use clean thesis, when I change my language all my fonts turned from helvetica to default Latex font. Now I have changed some code and almost all fonts changed except Header, title and simple ...
2
votes
1answer
18 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}% ...
3
votes
4answers
83 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
0answers
37 views

Title and Sections Customize [closed]

I am newbie.I need something like the picture. How to do this? Header and Section Fancy Styles
3
votes
2answers
79 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 ...
1
vote
1answer
43 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}
2
votes
1answer
39 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} \definecolor{dtugray}{RGB}...
2
votes
0answers
28 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 ...
1
vote
1answer
47 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
23 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} \...
2
votes
1answer
33 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 ...
2
votes
2answers
42 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}
7
votes
2answers
101 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
1answer
91 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 ...
1
vote
0answers
38 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
29 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
30 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}{ >{\columncolor[...
4
votes
2answers
206 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
27 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
0answers
23 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 ...