9 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
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.8k
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
  • 82.1k
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
  • 16.3k
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,275
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
  • 443k
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

Complex math expressions inside titles of sections produce the error TeX capacity exceeded, sorry [input stack size=5000]

For section titles it must be used \texorpdfstring (provided by hyperref) for the bookmarks (no math symbols) and the TOC. (If bookmarks are not needed see the end of this answer.) \texorpdfstring has ...
user avatar
  • 28.2k
2 votes
Accepted

Inside a section header, words generated by \NewDocumentCommand doesn't appear on the bookmark's browser of the final pdf. output

This works just fine. The key is that stuff that ends up in the bookmarks needs to be expandable. \documentclass{book} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{xspace} \usepackage[...
user avatar
  • 49.6k
2 votes
Accepted

Use of "noextraspace" affects title page layout for APA 7

You can locally undo the option for \maketitle \documentclass[stu,12pt,noextraspace]{apa7} %Adding "noextraspace" to document class line above fixes spacing between headings and paragraphs. ...
user avatar
2 votes
Accepted

Custom section style

In fontawesome5 package you can find a pen nib. About other fonts, I cannot help. \documentclass{article} \usepackage{titlesec,xcolor} \usepackage{fontawesome5} \usepackage{graphicx} \usepackage{...
user avatar
  • 129k
2 votes
Accepted

How to get rid the additional dot at the end of “Appendix A.”?

Without using the package appendix. (Nor secdot!) \documentclass[a4paper]{scrartcl} % PACKAGES LOADING %\usepackage{secdot} % DO NOT LOAD <<<<<<<<<<<<<< %\...
user avatar
  • 28.2k
2 votes
Accepted

Multiline in section title

The problem is that this particular template typesets section and subsection headings directly inside TikZ nodes, which do not support linewrapping as a general rule. This way of handling section ...
user avatar
  • 37.1k
2 votes
Accepted

\pdfstringdefDisableCommands with starred and non starred commands

You have to redefine the command using the same signature as the original command. Since s m is a valid signature for an expandable command, you can just redefine using \...
user avatar
2 votes

How to use \textsc{} in Section or Subsection?

I'm guessing you're using a font -- possibly Computer Modern -- that doesn't provide a bold-smallcaps weight-shape glyph combination. If that's the case, you need to input \subsection{\textsc{\textmd{...
user avatar
  • 443k
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
  • 82.1k
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
  • 82.1k
2 votes
Accepted

bold math in section yields wrong navigation text

You'd want to use hyperref's macro \texorpdfstring{output in PDF}{output in bookmarks} You can also use unicode character in bookmarks if you add such an option to hyperref \documentclass[11pt,...
user avatar
  • 2,793
2 votes

Defining a new section with ConTeXt

You can use the text alternative to place a section title at the beginning of the following paragraph. \definehead [inlinesection] [subject] \setuphead [inlinesection] [alternative=text, style=,...
user avatar
1 vote
Accepted

Increase spacing in table of contents only for specific portion

Your MWE produces a warning: Class scrartcl Warning: You've used obsolete option halfparskip. Usage of this option indicates an old document and changes compatibility level using parskip=half,version=...
user avatar
  • 82.1k
1 vote
Accepted

Make index refer to \poemtitle (verse package) instead of page number

I don't know how to replace a page number in an index with something else. But have a look at this: % verseindexprob.tex SE 641848 \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
user avatar
1 vote

Poetry package changes vertical space around section headings in strange ways

I didn't manage to figure out just what your spacing problem was. I have never used the poetry package. I don't know if this will be of any help. I changed your code to use the verse package (warning ...
user avatar
1 vote

How to change the suffix of a section

Try \subsection*{A section \quad 2.1}
user avatar
1 vote
Accepted

How to align section titles without numbers left to section titles with numbers in TOC with a global way?

By the way, one can also use \string\numberline{} instead of \hspace(2.3em}. The section argument in \addcontentsline is used to select \l@section to format the TOC for this entry. Similarly, one can ...
user avatar
  • 70.8k
1 vote
Accepted

Increment Counter in Section Title

You should either run \stepcounter{mycounter} before \section or -- if it occurs in the argument of \section -- "protect" the \stepcounter directive via a \protect directive. (@DavidCarlisle ...
user avatar
  • 443k
1 vote
Accepted

Sets a dot after numbering in the table of contents after a custom section style

Just a dot missing. ... \def\@svsechd{% #6{\hskip #3\relax \@svsec #8}% \csname #1mark\endcsname{#7}% \addcontentsline{toc}{#1}{% \ifnum #2>\...
user avatar
  • 28.2k
1 vote
Accepted

How to display a section only in toc?

I'd say something like \newcommand{\unsection}[1]{% \par \addvspace{\bigskipamount}% or whatever separation you want to use \stepcounter{section}% \addcontentsline{toc}{section}{\protect\...
user avatar
  • 1.0m
1 vote
Accepted

Custom table of contents based on a model

Not a complete answer but something to help you along. The following MWE, which is based on the memoir class (a superset of book) produces a ToC that in general looks like what you are after. % ...
user avatar
1 vote

How can I decorate latex documents like this one?

if you open the template, e.g. also in an external tool like MikTex, you see a regular structure. So if you forget about the leafs and ornaments for a moment you can come up with a document structure ...
user avatar
  • 2,142
1 vote

How Can I to remove the second enumeration in the sections?

Suppose chapters 1 and 2 have 2 sections each and that the book class is in use. By default, the four sections are labeled 1.1, 1.2, 2.1, and 2.2. If you want them labeled 1, 2, 1, and 2, i.e., with ...
user avatar
  • 443k

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