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 ...
user avatar
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 ...
user avatar
  • 8,479
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 ...
user avatar
  • 993k
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}
user avatar
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 \...
user avatar
4 votes
Accepted

Bad hyphenation in Section Title

You can use \section[form for header with no break](display form\\ with linebreak}
user avatar
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}{}
user avatar
  • 2,999
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 ...
user avatar
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, ...
user avatar
  • 1,100
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{\...
user avatar
  • 70.2k
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....
user avatar
  • 81.7k
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 ...
user avatar
  • 49k
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 ...
user avatar
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 \...
user avatar
  • 73.3k
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 ...
user avatar
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 ...
user avatar
  • 261k
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 ...
user avatar
  • 439k
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} \...
user avatar
  • 4,098
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{...
user avatar
  • 3,254
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} \...
user avatar
  • 439k
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 ...
user avatar
  • 1,231
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.5k
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 ...
user avatar
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} \...
user avatar
  • 567k
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*...
user avatar
  • 261k
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\...
user avatar
  • 63.4k
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 ...
user avatar
  • 993k
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 \...
user avatar
  • 567k
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=...
user avatar
  • 993k

Only top scored, non community-wiki answers of a minimum length are eligible