All Questions
Tagged with macros sectioning
132
questions
1
vote
1
answer
49
views
Macro doesn't work: unexpected behavior of if-then-else statement
I'm encountering an issue with my LaTeX macro designed to create a glossary. The intention is to generate sections for each new letter of the alphabet and subsections for terms starting with the same ...
0
votes
1
answer
32
views
\section, \subsection-derived commands end up twice in TOC, along with some floating 1s
Update
\documentclass{article}
\newcounter{hoofdstuk} % Define hoofdstuk counter independently
\newcounter{afdeling}[hoofdstuk] % Define afdeling counter within the hoofdstuk counter
\...
0
votes
0
answers
42
views
Prevent indentation in command or environment after section header
I am creating a custom command with \newcommand that creates a new block of text on a new line. I want the command to behave as regular text with respect to indentation, i.e.:
be indented after a ...
3
votes
1
answer
63
views
Modular option for tikz lecture heading
I have a setup I use for lectures, for some lectures how would I be able to leave the date section empty and have the frame be built completely and not have a gap in the top. Any help would be greatly ...
0
votes
2
answers
57
views
custom head color only the text but not the whole box
I am trying to color a custom heading \resheading that is defined as
\newcommand{\resheading}[1]{\vspace{-15pt}
\parbox{\textwidth}{
\begin{shaded}
\setlength{\fboxsep}{0pt}%
\setlength{\...
0
votes
2
answers
43
views
How to use subsection numbering in the subsection title?
I want to use the number of a subsection in a document to create the subsection title, but be able to subtract one from the subsection number.
More specifically, in my document, subsection "1.1&...
0
votes
1
answer
96
views
\hspace before \section and \subsection
How to place \hspace{} before \section{} and \subsection{}? I am using an \documentclass[12pt, a4paper]{article}.
I want make custom command for \section{} and \subsection{} with different \hspace ...
0
votes
1
answer
37
views
How do I adjust kerning in my section macros
How do I insert \textls in my section macros to apply the kerning defined in my \microtype command?
\documentclass[12pt]{article}
\usepackage{titlesec}
\usepackage[tracking = true, letterspace = 100]...
2
votes
1
answer
118
views
Get the total number of sections in beamer
In beamer you can use \inserttotalframenumber to print the total number of frames. Is there a command to print the total number of sections?
0
votes
1
answer
130
views
Sectioning command in between of \section and \subsection
In a book that I'm translating, there is a special kind of title that has the font size in between of that of \section and \subsection. This kind of title is never numbered, and is used for dividing a ...
1
vote
1
answer
32
views
Redefining \section outputs the equivalent of an additional \section{*} before the TOC
When I redefine the \section command, an additional section with title "*" is created before the table of contents, as if I had inserted a \section{*} before the table of content, which I ...
1
vote
1
answer
69
views
How Can I to remove the second enumeration in the sections?
I wish to remove the second enumeration of sections in my text, i.e, where has section 1.1 I want section 1. How can I do it?
4
votes
1
answer
215
views
How to customize style of section and subsection numbers when used in headers?
TL;DR - Why am I getting errors with the last line of
\usepackage{xstring}
\renewcommand*{\thesection}{\alph{section})}
\renewcommand*{\thesubsection}{\StrGobbleRight{\thesection}{1}.\roman{subsection}...
1
vote
1
answer
113
views
How to define a section(subsection) with custom background colorpage?
Is it possible to redefine certain \section or \subsection to have custom pagecolor?
There are certain solutions like:
How to change the background color only for the current page?,
underline and ...
0
votes
1
answer
53
views
Section with option for new line or run in (using lualatex, KOMA-Script, xparse)
I'm renewing the subsubsection command such that I can either place the following text on the same line (default), or leave some space, with an ! token passed. It appears that for combinations of ...