New answers tagged sectioning
0
votes
Set the index of items inside the text
You wrote that you want to keep the \section-\subsection-\subsubsection structure (or at least that is how I understood you, maybe I'm wrong though), so you could make real (sub)subsection titles out ...
1
vote
Set the index of items inside the text
If only the sections need to be in the ToC, and only they have titles, then you should only use a sectioning command for them, and use lists for the lower levels.
The enumitem package then makes it ...
1
vote
Accepted
Remove dot from custom defined section title
I have this idea to achieve that. But it end up with shifting the star version section heading down as well (As I labeled in figure with red rectangle). You can always add local titleformat to avoid ...
0
votes
Properly using glossary/acronyms entries in uppercased section headers
Your code will work by adding \newacronym{tt}{TT}{Test} in the chapter/section titles (and without using \tableofcontents).
\documentclass[12pt,a4paper]{report}
\usepackage[%
toc=false,
sort=...
2
votes
Customise section with koma script
Only as addition to the answer of @Vincent:
If only sections (and not subsections and subsubsections) should use the different format:
\documentclass[twoside,open=right]{scrbook}
\usepackage{geometry}
...
2
votes
Accepted
Section number in the outside of the page
You could use KOMA-Script command \Ifthispageodd:
\documentclass[twoside,open=right]{scrbook}
\usepackage{geometry}
\geometry{margin=3cm}
\usepackage{blindtext}% only for dummy text
\usepackage{xcolor}...
3
votes
Accepted
Customise section with koma script
Something like this?
\documentclass[openright]{scrbook}
\usepackage{geometry}
\geometry{a4paper,twoside, margin=3cm}
\usepackage{blindtext}% only dummy text
\usepackage{xcolor}
\usepackage{xhfill}
\...
0
votes
write "Section 1" instead of "1.1"
I don't really understand what it is that you want to end up with. You are using the report class which has \chapter and \section commands with the section numbers preceeded by the chapter number. ...
1
vote
write "Section 1" instead of "1.1"
Your question is incomplete, as you don't say which document class you're using.
I'll assume, however, that you're using report or book, i.e. a class that has chapters. Since a section must have a ...
2
votes
Accepted
Conflict between \pagestyle{fancy} and xcolor package
This is not caused by fancyhdr but by the standard LaTeX classes. These define the headers in such a way that \MakeUppercase is applied to them. This uppercases everything in the header, including the ...
0
votes
Headers for specific pages of the document and footers the same for all pages
As the package documentation for fancyhdr points out the command \chapter issues \thispagestyle{plain}.
I believe \tableofcontents does this too.
Therefore a redefinition for the pagestyle plain might ...
0
votes
Vertically justifying chapter number and name
Here is a solution with anyfontsize (for the font dimension of 80), tabularray, and titlesec (for the title formatting):
\documentclass{book}
\usepackage{blindtext}% <--- for testing purpose only
...
1
vote
Accepted
Customize chapter and section style in appendices
Replace \chaptername by \chapapp and add option numbers=noenddot.¹
Example:
\documentclass[numbers=noenddot]{scrbook}% <- changed
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{charter}
\...
0
votes
\section{} results in 0.1, not in 1.0
If your want a title page looking like a report, but with article numbering, just use titlepage
\documentclass[titlepage]{article}
0
votes
Conditional section numbering
This obviously needs a two-pass system.
In the .aux file I store the necessary information and at the next run a check on whether more than one sectional units are present at the given level.
\...
1
vote
Accepted
Titletoc appears to truncate part of the title label defined by titlesec
Follow the description of each argument of \titlecontents that you already have in your code as comments.
So that modifying the command such a way should do the thing
\documentclass{article}
\...
1
vote
scrbook redefining sections without titlesec package
Here is another suggestion redefining \sectionlinesformat to apply \MakeUppercase:
\begin{filecontents}[overwrite]{mypackage.sty}
\ProvidesPackage{mypackage}
\@ifundefined{KOMAClassName}
{% no KOMA-...
2
votes
scrbook redefining sections without titlesec package
I see no way to apply \MakeUppercase to section titles with komascript methods. But it can be done.
\RequirePackage{fix-cm}
\documentclass[fontsize=13pt,a4paper,openany,parskip=half,DIV=calc]{scrbook}
...
0
votes
Accepted
scrbook redefining sections without titlesec package
I tried something like this:
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\...
Top 50 recent answers are included
Related Tags
sectioning × 5042table-of-contents × 651
chapters × 630
numbering × 594
titlesec × 540
formatting × 322
spacing × 308
koma-script × 302
header-footer × 261
sections-paragraphs × 254
memoir × 246
beamer × 200
page-breaking × 169
hyperref × 160
cross-referencing × 150
appendices × 133
macros × 122
fonts × 115
horizontal-alignment × 115
indentation × 114
context × 100
color × 96
bibliographies × 87
floats × 87
parts × 87