8
votes
Accepted
Size of integral symbol in section header with mlmodern
EDIT: As egreg correctly noted in the comments below, the change that we describe in the answer here will last temporarily since, on a subsequent update of the package, the change we propose will be ...
6
votes
Accepted
Beamer: How to add progress bar with section titles?
I know it's been a while, but you can blame the lockdown here in France for providing me free time...
I started from Gonzalo Medina's proposal and build the missing stuff around it.
I believe this ...
6
votes
Accepted
chemmacros \iupac command shows no formatting in titles
You get a warning, namely
LaTeX Font Warning: Font shape `OT1/cmss/bx/it' undefined
(Font) using `OT1/cmss/bx/n' instead on input line 7.
which means that sans serif boldface italic is ...
6
votes
Accepted
Part of subsection title not in bold
The analogue of \textbf for medium (not bold) is \textmd so..
\textmd{THIS IS NOT BOLD}
5
votes
Accepted
Modify subsection numbering in KOMA
I literally googeled "koma latex change subsection" and used the first hit :).
\documentclass{scrartcl}
% https://tex.stackexchange.com/questions/353008
\renewcommand*\thesubsection{Unit \...
4
votes
Accepted
Bad hyphenation in Section Title
You can use
\section[form for header with no break](display form\\ with linebreak}
4
votes
Accepted
Changing style of (sub)sections
Use the titlesec package and redefine the format for \subsection like
\titleformat{\subsection}[runin]%
{\normalfont\normalsize\bfseries}{\hspace*{\parindent}\thesubsection}{1em}{}
4
votes
Accepted
Fancyhdr and \thesection command
As I stated in my comment, the section number \thesection must be communicated through a mark (for \thechapter this isn't necessary as chapters always start at a new page).
But normal LaTeX doesn't ...
4
votes
Accepted
How to remove the words 'Who?' and 'When?' in the title page of Bergen beamer theme?
To remove 'Who' and 'When', add the following in the preamble
\def\insertauthorindicator{}% Default is "Who?"
\def\insertdateindicator{}% Default is "When?"
For the second part, ...
4
votes
Accepted
Chapter headings on the side, with ornaments
While TikZ isn't actually needed for this, it does make aligning the text and clip art easier.
\documentclass{article}
\usepackage{tikz}
\usepackage{lipsum}
\newsavebox{\decorationbox}
\savebox{\...
4
votes
Accepted
Subtitles for subsections in scrbook
You can declare a new section command \subsecsubtitle
\RedeclareSectionCommand[
afterskip=.5ex
]{subsection}
\DeclareNewSectionCommand[
style=section,
level=\subsectionnumdepth,
afterskip=1....
3
votes
Format \section like \subsection (except for numbering)
Taking a look for example in this answer of mine we can take a look at the general structure of the sectioning macros in the standard class article. The default for \subsection is (you can get this ...
3
votes
Accepted
Fake bold applied inconsistently to section titles
The xfakebold code is quite simple minded: it simply inserts a \pdfliteral. Such a literal looses its effect at page breaks. Due to the asynchronic page breaking of TeX your section command is ...
3
votes
How can I modify the section style like this?
Fairly simple using memoir:
\documentclass{memoir}
\usepackage[portuguese]{babel}
\usepackage{lipsum}
\chapterstyle{bianchi}
\begin{document}
\chapter{Introduç\~ao}
\section{Some subsection}
\lipsum
\...
3
votes
Accepted
Create attractive section
You can use a custom macro to format section heading using the sectsty package. If you need more flexibility, consider using the titlesec package, or switch to a more versatile document class like ...
3
votes
Accepted
How to make a centered, non-bold abstract and section titles
Here is how to obtain what you want for section titles. I used the titlecaps package to have the first letter of each (significant) word capitalised, which looks better with small caps, in my ...
3
votes
Modify subsection numbering in KOMA
If your use case doesn't require you to create cross-references to the "units", @Dr.ManuelKuehner's simple and straightforward answer is perfectly adequate.
In, however, if you foresee a ...
3
votes
Fancyhdr and \thesection command
A workaround which redefines \sectionmark to use only the left header of odd pages:
\renewcommand{\sectionmark}[1]{\markright{#1\hfill \thesection}}
MWE
\documentclass[a4paper,12pt,twoside]{book}
\...
3
votes
Accepted
add box around section title with a line
\documentclass[12pt]{article}
\usepackage[sfdefault]{roboto}
\usepackage[top=1cm, left=0.5cm, right=0.5cm, bottom=0.5cm]{geometry}
\usepackage[explicit]{titlesec}
\usepackage{tikz}
\definecolor{...
3
votes
Accepted
Justify section number and multi-line section title
You may achieve your typesetting objective with the help of the sectsty package.
\documentclass{report}
\usepackage{sectsty}
\sectionfont{\parindent0pt\nohang\raggedright}
\begin{document}
\...
3
votes
Subtitles for subsections in scrbook
EDIT: I included a setting to adjust the vertical spacing between title and subtitle, which was missing, as indicated by OP.
Subtitle
The best approach, I think, would be to follow this answer and ...
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}
\...
3
votes
Size of integral symbol in section header with mlmodern
Not an answer, just a test.
\documentclass{article}
\usepackage{amsmath}
\usepackage{mlmodern}
\begin{document}
\section{$ \int \sqrt{2x^2}$}
$ \int \sqrt{2x^2}$
\end{document}
LuaLaTeX Output
...
2
votes
Accepted
Changing text color with new command in .cls file
Here is an implementation that allows you to adjust the colour of the sectional units. Additional \resetXcolor macros are provided to remove any previous colour definitions.
\documentclass{article}
\...
2
votes
Accepted
Format \section like \subsection (except for numbering)
You can also do that easily with the simplified syntax of titlesec:
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\usepackage{titlesec}
\titleformat*{\section}{\large\bfseries}
\titlespacing*...
2
votes
Accepted
Changing section font in a res document
Well, the used template is very old and should not used any longer, for example it still uses outdated commands like \bf.
Nevertheless, you can use in your preamble command
\renewcommand\...
2
votes
Accepted
cross-referencing in the appendix, imsart package
After \appendix, \section is redefined to apply \MakeUppercase to each title, which has the unfortunate consequence of uppercasing also thm.
Indeed, you get
LaTeX Warning: Reference `THM' on page 1 ...
2
votes
chapter, section, etc. in ToC but not appearing in document
Issue
\cleardoublepage
\addcontentsline{toc}{chapter}{<chapter title>}% Add fake chapter to ToC
\includepdf[..]{...}
\cleardoublepage puts you on the correct (recto) page for a regular \...
2
votes
Bad hyphenation in Section Title
I cannot reproduce the behavior.
However, with those long titles, it makes sense to enable ragged right in them.
\documentclass[12pt,a4paper,twoside]{report}
%%% packages
\usepackage[
headheight=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
section-titles × 181sectioning × 36
titlesec × 31
table-of-contents × 19
formatting × 16
header-footer × 10
koma-script × 9
chapters × 9
beamer × 7
fonts × 7
spacing × 6
titles × 6
macros × 5
numbering × 5
sections-paragraphs × 5
appendix × 5
hyperref × 4
packages × 4
tcolorbox × 4
tikz-styles × 4
appendices × 4
amsart × 4
tikz-pgf × 3
tables × 3
graphics × 3