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

3
votes
1answer
47 views

Change main text font only

I am writing a book and I use \usepackage{charter}, but this changes the font of the main text too. How do I keep the font for Chapter title, Section title, header, footer etc of this package and use ...
2
votes
1answer
38 views

headings and footnotes in first page different

I want that the first page of each chapter has no headrule. Here is a MWE \documentclass[a4paper,openright,10pt]{book} \usepackage{vmargin} \usepackage{fancyhdr} \usepackage{emptypage} \...
2
votes
0answers
31 views

Suppress section numberrs in TOC

I am creating a file, where the section headings should have box around the number. Also, some sections should not display this number even though the box should still be there. To solve this, I ...
3
votes
1answer
69 views

Managing spacing around \section inside a minipage with titlesec

I'm having some trouble getting proper padding around my section headers inside minipages. \documentclass{article} \usepackage[explicit]{titlesec} \newcommand\Vhrulefill{\leaders\hrule height 0.7ex ...
1
vote
0answers
37 views

Creating a more modular system

Though my question may be a basic one, I hope one can help me by being clear about what to do. I am using an apj emulate document on ShareLatex for my writing. My writing is long and has many sections ...
1
vote
1answer
45 views

remove sections numbering

I have the next code: \documentclass[a4paper,openright, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage{fullpage} \newcommand{\ssection}[1]{% \section[#1]{\centering\normalfont\scshape #1}} \...
2
votes
1answer
59 views

How to remove section name from frametitle header in cambrigeus style

\documentclass[xcolor=table]{beamer} \mode<presentation> { \usetheme{CambridgeUS} \usecolortheme{dolphin} \setbeamertemplate{navigation symbols}{} } \usepackage{graphicx} % Allows ...
3
votes
1answer
30 views

Multicols leads to subsubsection title and content being on different pages

I'm am using the multicols environment in a subsubsection. But in the Output in prints the Title of the subsubsection on a different page than the content, i.e. the multicols text. already tried \...
2
votes
1answer
58 views

coloring section rule using sectsty package

I would like to change the color of section rule, as it obtained using sectsty package. Here is what I have: \documentclass{article} \usepackage{xcolor,sectsty,lipsum} \sectionfont{\sectionrule{0pt}...
1
vote
2answers
46 views

Force text between part and chapter to be on the next page after the part title

I have not found a better title sorry. I have a document (book class) in which I have something like : \part{MyPart} The brief introduction of my part, where I present the three chapters I will ...
5
votes
1answer
134 views

Fancy Section Headers, Part 2

this post is building of the post found here. On page 4 of the output file, where the section header is in line with the chapter thumb, this happens: Is is possible to make the lines appear behind ...
1
vote
1answer
46 views

How to scale a box based on the font size of another piece of text?

I'm trying to make a chapter style in a memoir document. This is the current code: \documentclass[11pt]{memoir} \usepackage[oldstyle]{libertine} \usepackage{lipsum} \newcommand\lefthang[1]{\...
1
vote
0answers
61 views

How to create a custom \part in LaTeX book?

I am trying to create a custom \part for a book in XeLaTeX. I'd like to be able to have the Part number and title in larger font as is typically found. However, I'd also like to have a short paragraph ...
2
votes
0answers
145 views

Incompatible usage of \@ssect

In order to customize layout of chapter and section titles is is often suggested to do it in the following way: \renewcommand{\chapter}{\@startsection{chapter}{0}{\z@}{-2em}{6pt}{\normalfont\LARGE\...
1
vote
1answer
63 views

Remove automatic page break after paragraph

i'm using the report class and have set the section depth to 5 using the following command: \setcounter{secnumdepth}{5} However, when I use the \paragraph{} section, the compiled pdf adds a page ...
3
votes
1answer
58 views

How can I make “headings” inside a figure?

I have a figure that is built up of multiple parts and I want each part to have a "title". How can I do that in a way that looks nice? Right now I am just using \textbf for the "titles" and everything ...
4
votes
1answer
56 views

(is there/how to make) a package/macro like `enumerate` but for whole document sectioning

I just discovered the enumerate package, what excited me because some time ago I was wondering about something similar (options where a stands for \alph{<counter>}, A for \Alph{<counter>}, ...
4
votes
2answers
118 views

How to randomize the order of (sub)sections?

How would you randomize the order of sections in a chapter (or subsection in a section)? I would type them in the order A, B, C, ..., but in the rendered document they should appear as 1=F, 2=Y, 3=C, ...
2
votes
4answers
159 views

How to fast switch from sections to chapters

I have a file composed by many sections: I'm not sure of this choice, and maybe in the future I want to switch to chapters (or to subsections, for example). My solution is the following command: \...
2
votes
1answer
90 views

How to use openright option in The Legrand Orange Book including TOC?

I am trying to have The Legrand Orange Book in openright two sided book. I tried inserting blank pages at the start of the TOC, before each chapter page, but in vain. I tried this method and also ...
6
votes
2answers
147 views

Why default behavior of section title is to overflow

The question I am asking here is not "how to fix" but rather "why is this the default behavior". For many things, I find that understanding why latex does what it does leads to me being able to write ...
1
vote
2answers
37 views

Change section format [duplicate]

I want to change the section labels so that, instead of writing something like '1 Section', I get 'Section 1'. I want to keep the numbering. How can this be done in Latex? \renewcommand? section*{}?...
2
votes
2answers
81 views

Replace vspace at the end of the page

I'm typesetting a text with sections separated by the \vspace{1em} (sections have no titles). Sometimes the end of section coincides with the end of page. In this case the reader cannot see the end of ...
0
votes
0answers
18 views

section depth 5, \subsubsubsection doesnt work [duplicate]

I want a section for eg. 3.2.1.2.1 and for this I have set my counter to \setcounter{secnumdepth}{5} and when I type \subsubsubsection to get section, nothing happens. I have following ...
4
votes
2answers
97 views

How to change numeration in ToC

I've got a problem while trying to figure out a structure for report document. At this moment I have: \chapter[Chapter 1]{} \section{Section 1} \subsection{Subsection 1} \subsection{Subsection 2} \...
1
vote
2answers
89 views

\section*[toc]{normal section title} not working for me

for my thesis I want to have a section appear differently in the ToC than in the text. After googling a bit, I found \section[short]{long} as a proposed answer, but this does not seem to work for me. ...
2
votes
1answer
25 views

per-section figures in un-numbered sections

I'm trying to write a document with un-numbered sections (i.e., \setcounter{secnumdepth}{0}) and numbered figures, with the figures numbered within section. I can't get secnumdepth and chngcntr to ...
0
votes
1answer
78 views

Full width section titles in tufte-latex

I am using tufte-latex and would like my section titles to use the full width of the page in the case that I use a fullwidth environment for the next block of text. However, when I try to compile this ...
2
votes
1answer
91 views

How to make an entry in the table of contents for the bibliography

Question In a document of class scrartcl, I would to make an entry in the table of contents for the bibliography. Currently the table of contents contain entries for any notation of \section{} and \...
2
votes
1answer
97 views

How do I make my section uncounted but listed in the table of contents?

I was asked to have my Introduction and Summary section uncounted. However, if I use \section* it doesn't appear in the Table of Contents which is undesired. EDIT: The proposed solution doesn't work: ...
1
vote
0answers
77 views

Fancy chapter styling

I have found these really stunning examples of chapter styling. Fancy chapter headings. It is however for the book document class. My WE is the same, but the images are displaced. I use memoir twopage ...
1
vote
1answer
28 views

subsubsection not working in my thesis macro

I'm unable get the \subsubsection layer using my thesis scripts. It works fine up to subsection but not beyond that level. The counters have been set to a depth of 3 and so should be working for \...
0
votes
0answers
18 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 ...
2
votes
2answers
130 views

Change the color of the chapter number (Oxford Thesis Template)

I'm writing my PhD thesis and I am using the Oxford Thesis Template. I would like to change the color of the chapter number (which is grey) in the beginning of this chapter. You can find the Oxford ...
2
votes
1answer
68 views

Redefine `\section*` so it behaves *exactly* as `\section` except leaves out the number

There's any number of variations on the question "How do I get my unnumbered sections into the table of contents?" ... Creating unnumbered chapters/sections (plus adding them to the ToC and/or ...
0
votes
2answers
64 views

How to format section headings?

a question about formatting section titles. In the article class, I want to format my section titles as follows: Hide the section number in the title. Use upper case. Add a dashed title rule below ...
2
votes
1answer
51 views

How to make TOC sections apper in pdf as bookmarks?

I am very new to Latex. I am trying to make my thesis paper in latex as now. I am using the mwart documentclass. I dont know either it is a documentclass specific thing, but the items i have in table ...
0
votes
1answer
60 views

How to format complex section header

I've got several question, all relating to the below image. Within my .cls file I am trying to style the section headers like so: My first question was how do I stop \sections from being numbered. ...
0
votes
0answers
17 views

More numbered Sections [duplicate]

Am trying to make sectioning but i still get numbered only section and subsection and subsubsection,paragraph and subparagraph are not numbered and i need to have them numbered
5
votes
1answer
42 views

Different subsection format if no title is given

I want to have subsections appear like "Article 1: Foo" when I enter \subsection{Foo}, but like "Article 1" (without the colon) when I enter \subsection{} (without a title). Is there a way to do this? ...
4
votes
1answer
132 views

Fancy Section headers

I wanted to add the lines from the edge of the left margin to the colored box in my section headers so this it looks like: Here is the code I have thus far: \documentclass[11pt]{book} \...
2
votes
2answers
93 views

Titlesec: chapter in top margin

How can I put a chapter or section title into the margin such that it is on the top of the page? This is what I want: But the following MWE produces \documentclass{book} \usepackage{lipsum,...
3
votes
2answers
76 views

italicize the subsubsection in latex

How do i italicize the \subsubsection{Subsubsection} 1. section 1.1 subsection 1.1.1 subsubsection I want the third line i.e. starting from 1.1.1 subsubsection italicize. Please help
6
votes
1answer
236 views

Is it possible to input a file while lowering every section it has by 1 level?

Assume that I want to add a part of a paper I've wrote into a different document. Inside the new document, the part of the paper should be only a section, so every section of the paper would become a ...
7
votes
1answer
108 views

tufte-latex: \newthought after \section

Using \newthought after a new section title inserts an unusual vertical space as in the following example. \documentclass{tufte-book} \usepackage{kantlipsum,cleveref} \begin{document} \section{...
1
vote
0answers
46 views

Section, figure, table numbers are in smaller font size [closed]

I have used \include{resultsanddiscussion} to import certain chapter results and discussion. I have used \fontsize{16pt}{18pt}\selectfont to determine heading size 16 pt and spacing 18 pt. the code of ...
4
votes
2answers
234 views

Single-space chapter titles with double-spaced document

I am typesetting a thesis using the book class and need the chapter titles to be single-spaced while the main text must be double-spaced. Inserting \singlespacing before the text in the definition ...
4
votes
2answers
59 views

Change color line in hline

Recently I asked a question about how to draw a line under titles but this line should be flexible is a picture is included or not. I am trying to change the color of this line but nothing works? ...
1
vote
1answer
41 views

Use titleclass only in part of document

For my current project I need my document to have three parts. In the first and last part, I want the default sectioning, but in the middle part I need to apply a different style to the section level ...
2
votes
0answers
54 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...