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

\ifmmode check in section caption

To assure the correct usage of newcommands which only shall be used in mathmode, I have introduced a mathcommand, which checks mathmode by \ifmmode. Now I want to use such a mathcommand in a section ...
7
votes
3answers
177 views

Numbering Theorems/Definitions together, by section and without section symbol

I am fairly new to LaTeX and I am looking for a particular style: I want to number my theorems/propositions/corollaries/definitions together and by section. For example, Definition 1.1, Theorem 1.2, ...
3
votes
2answers
69 views

Chapter formating, and TOC

I want to modify the chapter title in chapters without number (Namely, table of contents and bibliography). For this porpoise I used the following: \def\@makeschapterhead#1{ ...
2
votes
2answers
94 views

Excluding subsection from ToC and keep the references

I need to remove my subsection from ToC. I got that part right without any problems by using this link. Thanks! But I am unable to use \ref{"label from my subsection"} for the selected subsection I ...
1
vote
0answers
19 views

Place section header outside multicols environment [duplicate]

Is it possible to do something like ... \end{multicols} \section{A very long header that looks ugly if it does not span the columns} \begin{multicols}{2} Lorem ipsum dolor ... \end{multicols} ...
10
votes
2answers
257 views

Prepend 'Appendix' before 'A' using scrbook

I am writing my thesis and need to put 'Appendix' before the numbering (A, B, C, ...) in the table of contents (TOC), the chapter title and in the header. I'd also like for \autoref{} to output ...
3
votes
1answer
44 views

Insert chapters into letter document

I am writing an extensive letter document, and I would like to put a summary and a few chapters inside it. Is it possible to do that? Here my preamble: ...
2
votes
1answer
72 views

In LyX, how to change section headings from Arabic to Roman

I'm relatively new to LyX. I'm writing an article and would need to change the numbering of sections from Arabic to Roman. Would anyone know how to do this? (e.g. by means of ERT?) Also, the ...
1
vote
0answers
72 views

Arabic chapter numbers in ToC, Words in chapter headings in ConTeXt

My first post on tex.sx, so bear with me... The Goal: Arabic chapter numbers in the Table of Contents, and Words in the chapter headings (i.e. Chapter One) Seems simple enough, but I'm having the ...
6
votes
2answers
233 views

How many levels of nested subsections can the article class support?

How many nested subsections can I create using article class in LaTeX? E.g. for first level I use \subsection, for second level I use \subsubsection. My question is how deep can I go?
4
votes
1answer
46 views

Restart section numbering after unnumbered chapter

How can I make one chapter (Conclusion) without number? I have tried this: \documentclass{report} \begin{document} \tableofcontents \chapter{Introduction} \chapter{Chapter 1} ...
2
votes
1answer
77 views

change the style of numbering the theorem, definition in sections

enter code hereCould you help me please to create a paper which appears in the following way: The Newton's Law - section 1 Definition - \begin{definition} \end{definition} 2 Theorem - ...
2
votes
0answers
47 views

To visualise Schematic Intersections of Sections over Parts

Assume you have Parts Exotoxins A-B Non-spore-forming Gr+ Some of exotoxins A-B bacteria belong too to non-spore-forming Gr+. I can visualise this by a venn diagram, however I would like show this ...
2
votes
1answer
93 views

Formatting: Numbering paragraphs of sections

I have some problems in writing an article with inequalities. What I want to say: Now, it appears as Cauchy's Inequality 1. Introduction 2. Theorem Bernoulli's Inequality 3. Introduction 4. ...
4
votes
1answer
71 views

New section-like environment based on enumerate

I would like to define a new environment which basically works very similarly to enumerate. I want to create sort of sections with the following features: the numbering should go in the left margin ...
7
votes
2answers
222 views

Customizing chapter's title

How to make this in LaTex? I'm already making the chapter title using this: \def\@makechapterhead#1{% \vspace*{10\p@}% {\parindent \z@ {\reset@font \usefont{OT1}{phv}{m}{n} \LARGE Chapitre ...
1
vote
0answers
61 views

Representation of subsubsection numbers simpler

I have \documentclass{article} \usepackage[framemethod=tikz]{mdframed} %%%%%%%%%%%%%%%%%%%%%%%% Counter Section %%%%%%%%%%%%%%%%%%%%%% \makeatletter \def\@part[#1]#2{% \ifnum \c@secnumdepth ...
6
votes
1answer
140 views

Have the chapter title stick out of the type area

I'm trying to place my chapter titles to the edge of the page, with a colored background box surrounding them. The surrounding boxes would need to be set outside of the body of the document. So far I ...
2
votes
1answer
41 views

To develop part command in sectioning

I want to change Conzalo's command little (How to reset a section counter) by removing the representation of Part [number] in the document: \usepackage{xpatch} \makeatletter ...
2
votes
2answers
137 views

Parts with titlesec parts: \thepart wrong on last page of part

When using the titlesec package to customize part headers, the counter \thepart is somehow incremented before its value is used in, for example, running headers: \documentclass[oneside]{book} ...
6
votes
3answers
119 views

Protecting references in section headings from capitalization

I am using the ACM SIG alternate style, which automatically converts all section titles to upper case. I would like to include a reference in one of the section titles (Proof of Lemma X). The obvious ...
3
votes
1answer
86 views

Prepend different stuffs to starred and unstarred \chapter commands

For the unnumbered sections units of documents built with a personal class (which inherits from the book class), I'd like to use: not the starred form of the corresponding commands, instead the ...
3
votes
1answer
54 views

Clarification on old Comment

This post has a very nice answer from Martin Scharrer Fancy Chapter Headings The OP responds saying that he added a ~ after chapter and number for a nicer layout. What does he mean?
6
votes
0answers
98 views

Display beamer headline in frames conditional on section and subsection environments

I'm trying to create a beamer presentation (in LyX) where frames conditionally display a headline containing section and subsection navigation depending on (a) whether a frame is in a section ...
4
votes
1answer
779 views

Formatting chapter headings using the titlesec package

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts. I'd like to change the chapter style. Instead of Chapter 1 Introduction I'd like to have C H A P T E R 1 ...
0
votes
0answers
42 views

Kile structure view

I'm discovering Kile. The structure view is useful, but it would be very nice to have numbered sections in this view, in order to be able to jump quickly to section 54 for instance. Do you know if it ...
2
votes
1answer
69 views

Section Commands Inside Enumerate Environment

Good Morning, I would like to have subsection commands both before and inside an enumerate environment: \subsection*{Instantaneous Velocity} \begin{enumerate} \item[\textsf{\textbf{Example 1}}] ...
5
votes
2answers
304 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
98 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). ...
4
votes
1answer
129 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
101 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
27 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
36 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
90 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
62 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
34 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
196 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
72 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
198 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 ...
5
votes
2answers
500 views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
3
votes
1answer
74 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
72 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
67 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
131 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
674 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
53 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
159 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
267 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: ...
10
votes
1answer
386 views

customizing part style with Tikz

How can I customize part style like below picture?