New answers tagged

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 ...
user avatar
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 ...
user avatar
  • 35.7k
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 ...
user avatar
  • 1,588
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=...
user avatar
  • 24.5k
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} ...
user avatar
  • 81.3k
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}...
user avatar
  • 81.3k
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} \...
user avatar
  • 15.4k
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. ...
user avatar
  • 25.2k
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 ...
user avatar
  • 740
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 53.8k
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} \...
user avatar
  • 81.3k
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}
user avatar
  • 143
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. \...
user avatar
  • 985k
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} \...
user avatar
  • 1,861
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-...
user avatar
  • 81.3k
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} ...
user avatar
  • 985k
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}% {\...
user avatar
  • 565

Top 50 recent answers are included