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

5
votes
2answers
189 views

How to force LaTeX to keep section/subsection headings with one line below it on the bottom of the current page?

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings, but I would like to keep the section heading with even one line below it at the ...
6
votes
1answer
81 views

Changing the numeration of sections

believe it or not, I need to change the way the command \section enumerates the sections: I'd like my second section to be section number 4. (I don't want any section number 2 or three in my article). ...
3
votes
1answer
68 views

Overfull hbox in a custom section title

I use custom section headings, which for long titles occasionally create an overfull \hbox. Explicit hyphenation does not help. Per this answer I insert \\ to break the section title, but then the ...
3
votes
1answer
76 views

\subsubsubsection count not reset when starting a new section, subsection, etc

I am trying to use subsubsubsection on my report, and I using a code that was given on this website. On below my MWE : \documentclass[a4paper,11pt,french]{report} \usepackage[francais]{babel} ...
2
votes
1answer
21 views

How to make subsections not appear in the text? [duplicate]

I have the following preamble and I want the subsection not to be visible in the text. Instead of Chapter 1 "Blah Blah" I only want "Blah Blah to be visible. With this code I did it bu the ...
2
votes
1answer
34 views

How to number in a custom way

I am writing a latex file (format : book) and would like the subsections in the first chapter/section to be labeled as S.1, S.2 , S.3 etc. I tried to find how to do this on the net but could not. ...
5
votes
1answer
78 views

Macro for promoting sections to chapters

I have a document where I would like to "promote" all sections to chapters, all subsections to sections, etc. That should affect not only the table of contents, but the documents as a whole. For ...
4
votes
2answers
57 views

Working in Landscape Orientation to make a To-Do List

I'm essentially trying to re-create the following (Which may have been created in Microsoft Word) with LaTeX. I have figured out how to get into landscape orientation but it goes down onto a new page ...
1
vote
0answers
26 views

overriding \section{} and stripping decorations out of LaTeX source string

I am trying to solve a problem that I have with Pandoc's LaTeX output ([1]; I have implemented a patch to Pandoc itself but I am also looking for a LaTeX only solution, in case the patch is not ...
4
votes
2answers
112 views

Chapter title format back to default

I messed with various chapter title formats and now that I want to go back to default i.e Chapter 1 Title I only get 1.Title which misses "Chapter 1" appearing before the chapter title. I ...
4
votes
1answer
49 views

Koma script: Restore default chapter style

I want to have for just one chapter a special chapter heading format. So I use the command \setkomafont{chapter}{\centering\large\rmfamily} and then I want to revert back to the default chapter ...
13
votes
3answers
167 views

How to define a new command based on \section with its optional argument?

I've defined a new command called \mysec like the below: ‎‎‎‎‎‎ \documentclass{article} \newcommand{\mysec}[1]{\section{#1}} \begin{document} \mysec[Foo foo]{Bla bla bla} \end{document} But in the ...
4
votes
2answers
287 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
3
votes
1answer
52 views

Check if a number is in a comma separated list (print or display selected sections from a specific list)

I'm trying to check if a section number belongs to a specified list: \ifnum\value{section}=\mylist % check if section number in mylist --- WRONG \dosomething \fi The conditional is ...
2
votes
2answers
50 views

ToC-title formatting problem

I am relatively new to Latex and I came across a problem I am not able to fix myself. From a friend I got a number of commands for formatting my chapter titles, which works quite well, unfortunately ...
4
votes
1answer
49 views

Changing the font size of all the sections or sub sections

\documentclass[10pt]{article} \usepackage{lmodern} \usepackage{lipsum} \begin{document} \section{Hello World} {\fontsize{20}{24}\selectfont \lipsum[4] } \lipsum[1] \end{document} Here I can modify ...
4
votes
1answer
102 views

fancyheaders definition ornament

I would like to add some part of code related with ornaments in chapter name to my fancy header definision file. % Datei fancyheaders.tex \usepackage{fancyhdr} % Paket laden \pagestyle{fancy} % ...
3
votes
1answer
226 views

KOMA-script scrreprt: Chapter Heading Size Customisation

This is a continued question from my previous thread I am setting up LaTeX to write my thesis using scrreprt. I have implemented with success all the advised and suggested solutions and have tried to ...
2
votes
1answer
34 views

Can I modify the font shape on-the-fly in my chapter headings if I have used sectsty to format?

I am having problems formatting the text in my chapter headings. I used sectsty to modify all my headings to \sffamily, but I have some parts of the heading that should be in italics and I can't work ...
4
votes
1answer
108 views

Modifying the section style

\documentclass[12pt]{book} \usepackage{tikz} \usepackage{lipsum} \usepackage[explicit]{titlesec} \usetikzlibrary{shapes.misc,arrows} \newcommand\titlebar{% \tikz[baseline,trim left=0.5cm,trim ...
4
votes
1answer
128 views

Moderncv: Extra vertical space after cvitem

Extra vertical space is produced after \cvitem and before the next \section. Is there a better way to fix this than to use \vspace*{-6mm}? The problem is shown below, between the "Skills" and ...
0
votes
0answers
59 views

Using different fonts in a latex document [duplicate]

The present state is: I get two ttf fonts, say font1.ttf and font2.ttf. I used autoinst tool to convert the both into latex usable fonts. In my document preamble, now I'm able to use: ...
9
votes
1answer
221 views

customizing part style with Tikz

How can I customize part style like below picture?
6
votes
2answers
128 views

Change the nomenclature from Chapter to Section

How can I change Nomenclature from a chapter to section in a report I am using \section*{Nomenclature} \addcontentsline{toc}{section}{Nomenclature} \renewcommand{\nomname}{} \printnomenclature ...
4
votes
2answers
310 views

KOMA-Script scrreprt: How to change chapter appearance and produce a chapter based Mini TOC

This post is a 3 part question with which I would need help. The questions are all associated with chapter styling and subsections within the \documentclass{scrreprt}. I am sure I could work them out ...
0
votes
1answer
45 views

Section titles in caps give problems with math mode in it

I use the style file mn2e that makes section titles appear in boldface and in all caps. Which is fine, but not for the formula within such a title. Example: \section{The derivative $dI/dR$} gives ...
4
votes
2answers
103 views

How to refer to figures, tables, equations and sections [closed]

What is the correct way to refer to figures, tables, equations and sections? For example, should I write In Figure 1.1 we notice that.... or In fig. 1.1 we notice that.... or In figure 1.1 we notice ...
4
votes
1answer
38 views

Removing section separation line just if on top of page

I have horizontal lines separating my subsections and I would like to remove them only if they are on top of the page. Anybody can help me? Thanks! Here is the code snippet of the header of the ...
2
votes
1answer
86 views

Why won't I see the table of contents?

I tried to write table of contents to my book but encountered a problem, as it prints "Sisältö" but there is no table of contents. What is the mistake I made? ...
3
votes
2answers
51 views

package quotchap vertical space before \chapter*

I use the package quotchap it is very nice. But for the star chapters, if I use quotation, there is no space between quotation and the title of the chapter. I tried, but witout any success, to add ...
4
votes
1answer
66 views

How to merge / overlay two pages?

This should in principle be an easy question, but I could not figure out how to do it, so I hope to find help here. A disclaimer up front: I know that this is not a recommended thing to do, and pretty ...
2
votes
1answer
53 views

Properly render unnumbered sections

I have added an \ast before every numbered section by adding \titleformat{\section}{\Large\scshape\bf}{$\ast$}{.5em}{\thesection ~}. However, it produces improper rendering for unnumbered sections. ...
7
votes
2answers
276 views

How to add an image before section title

I want to modify the section command to make it look like this: I wrote a tikz code for the decorated section number but I still don't know how to integrate my code in the \section command: ...
2
votes
0answers
44 views

subsubsubparagraph [duplicate]

In a LaTeX article we have \section, \subsection, \subsubsection, \paragraph, \subparagraph. What do I do if I want to go deeper and want to use \subsubparagraph or \subsubsubparagraphand avoid the ...
3
votes
1answer
70 views

Modifying the header in fancyhdr - review

I don't want to ask questions in my edits or comments so I am posting my question freshly. The solution that was given for the problem Modifying the header in fancyhdr. I want the chapter name to ...
2
votes
1answer
58 views

Chapter Name not appearing

I wanted to style the chapter name. I referred the following link : how-to-create-specific-chapter-style-in-book-documentclass Here is my code: %Template for Technical Document \documentclass{book} ...
5
votes
2answers
115 views

Remove “chapter 1” and have just 1 in the report

In the beginning of a new chapter, Latex have Chapter 1 XXXXXXXXXX instead of this format i want to have 1 XXXXXXXXXX can you pls suggest how to customize the chapter? Thanks in advance
1
vote
1answer
71 views

how do I quote a numbered list

I want to make a document which replies to a list of points made in an article as follows: " Topic point 1 text point 2 text Topic point 3 text" I tried to achieve this by writing: ...
0
votes
2answers
51 views

How to add a section* to the list of contents, but without giving it a number? [duplicate]

I have several section* 's in my LaTex text. But I only want the first one (abstract) to appear in the list of contents, although without a number. All the other section* 's are just a few ...
4
votes
1answer
65 views

How to get sentence case in section titles without biblatex

I would like to change my section titles into sentence case just like the solution here: How to make sections into sentence case The titlesec package is already included in my document to modify ...
2
votes
1answer
80 views

Customizing table of contents numbering completely

I have to build a document structure with the different sectioning-levels (and therefor also the table of contents) having a certain, custom "numbering" instead of the default mathematical. E.g. a ...
7
votes
1answer
70 views

Problems with amsbook, lstdoc, and sections

The code \documentclass{amsbook} \usepackage{lstdoc} \begin{document} \chapter{Chapter} \section{Section} \end{document} produces the error messages Missing } inserted. [\section{Section}] and or ...
6
votes
1answer
89 views

Access label of chapter / section / … based on nesting depth

I want to know how to get the label of the chapter/section/subsection/paragraph which my text is currently in. I don't mean the name of the section via \nameref{} or \titleref{} , nor the number ...
4
votes
1answer
62 views

Odd behavior generating TOC, perhaps a LaTeX bug

Compiling a Table of Contents for my article, has led to a very strange behavior. After the second compile to produce the TOC, I get the following Error: LaTeX Error: Something's wrong--perhaps a ...
6
votes
1answer
71 views

Why doesn't “\vphantom” work in section titles?

For reasons of my own (so please don't advise me to simply not do that, I considered that already) I want to have this expression in the title of a section \section{$\left< a \vphantom{L} \right| ...
2
votes
1answer
238 views

Formatting of heading List of Acronyms and list of tables glossaries package

I am using glossaries package and making List of Acronyms as well as List of Symbols. I got everything working except one formatting issue. The heading of my above two lists have a different ...
1
vote
1answer
264 views

start section numbering with 0 not 1 LaTex article class [duplicate]

In my thesis, my examiners need the section numbering to start with 0 and not from 1. The structure is somewhat like \documentclass[12pt]{report} \begin{document} \chapter{First} \section{first ...
2
votes
1answer
44 views

renumbering paragraphs

I've tried to renumber paragraph refering to this. Using these lines : \setcounter{secnumdepth}{4} \renewcommand\theparagraph{\alpha{paragraph}} \begin{document} \paragraph{Raffinement du cas ...
1
vote
1answer
35 views

making subsubsections visible in the TOC [duplicate]

I'm trying to write a report, and I've defined that it defines 3 numbered levels (section, subsection & subsusection) using \setcounter{secnumdepth}{3}. But how can I make these subsubsections ...
1
vote
1answer
59 views

How to create inner section like environment with sub-table of contents?

Is there an easy way to create a inner section like environment that can produce a sub-table of contents at a preferred location? The sub-table does not necessarily need to give page numbers, but it ...