# Tag Info

3

The usual hierarchy of sectioning commands is: \part \chapter \section \subsection \subsubsection \paragraph \subparagraph (\chapter will not be in article or classes based on it). The last two are often a stumbling block to new LaTeX users because of the change in naming convention, but you should use \paragraph where you think you want \subsubsubsection.

0

As pointed out in the comments, headings are not that simple to implement properly. Fortunately, the built-in \@startsection command is flexible enough to implement the desired layout, although it is a bit hard to use. \documentclass[a5paper, 10pt]{article} \usepackage[showframe]{geometry} \usepackage[latin]{babel} \usepackage{stix2} \usepackage{xparse} \...

1

Unless I am missing something, then based on OP and comments under OP... This solution should suffice: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[LGR,T1]{fontenc} \usepackage[basque]{babel} % <- choice based on OP's comment \usepackage{titlesec} \renewcommand\chaptertitlename{kapitulua} % <- assuming that should be made ...

2

You need to add \addcontentsline{toc}{part}{...} after a non-numbered part. I added a \etocsettocstyle to better visualize the local TOC. \documentclass{article} \usepackage{etoc} \etocsettocstyle{\subsection*{\contentsname}}{\noindent\rule{\linewidth}{.4pt}} % added <<<< optional \begin{document} \part*{} Main paper text and ...

6

Abstract uses internally a list (quotation) to change the margins. Lists have a switch which lets them detect if a list has just started (it is reset at the begin of the first paragraph). The problem is that \paragraph overwrites the code that does this resetting. You can see that in the following example. In the first quotation the start of the paragraph ...

0

This looks like the same issue. And sure enough, if I enclose the abstract contents in a minipage environment, the problem goes away: \documentclass{article} \title{Test} \author{Me} \begin{document} \maketitle \begin{abstract} \begin{minipage}{1.0\linewidth} \paragraph{Background} There has been a massive social media campaign \dots \paragraph{Methods} I ...

0

For the empty page with page number and page headings, I assume you use openright option for yout class (like \documentclass[openright]{book}). Then you could use the package emptypage, and all such pages will be really blanck. If you use option openany, this empty page will be gone. For the indentation/no-indentation, you have two options. If you want all ...

0

A solution is create a section \section{Glossary}, then issue \printglossary with no title, and suppress the new page he wanted to start by locally nullifying \clearpage. Lines added or changes are marked with <<<<<< % !TeX TS-program = pdflatex \documentclass[12pt]{scrreprt} \usepackage[twoside, outer=4cm, inner=2cm, bottom=2.5cm,...

1

Your code does not work, because the font element disposition is used for the headings, too. Default setting for disposition is \normalcolor\sffamily\bfseries and the \normalcolor overwrites your color setting. You could use the hooks in the headings which are provided by the KOMA-Script classes: \documentclass{scrartcl} \usepackage{xcolor} \newcommand*\...

1

While you use a KOMA-Script class, do not redefine \subparagraph. You can change the settings for subparagraph using \RedeclareSectionCommand: \RedeclareSectionCommand[ indent=0pt, beforeskip=.3\baselineskip plus 1ex minus .2ex, afterskip=.75ex plus .1ex, afterindent=true, runin=false, font=\normalfont\mdseries\itshape ]{subparagraph} You could ...

1

I would use \addtokomafont inside a group: \begingroup \addtokomafont{section}{\color{red}} \section{Capybara} \endgroup MWE \documentclass{scrartcl} \usepackage{xcolor} \begin{document} \tableofcontents \begingroup \addtokomafont{section}{\color{red}} \section{Capybara} \endgroup \section{title} \end{document}

1


1

I'm a bit unclear on what you're trying to do, but I think I have the general idea. Aside from abusing \subparagraph what you want to do is make sure that you set the counter value of ap at the right time. What you have now sets it once to \value{subsection}+\apoffset (well, not really, because you can't put expressions like that in the argument to \...

4

It's a precise choice of the class author. You can change the font for titles to be the same font family as the main text in various ways, one is as follows. \documentclass[a4paper,fontsize=13pt,egregdoesnotlikesansseriftitles]{scrartcl} \usepackage[english, main=ngerman]{babel} \usepackage[a4paper,left=3cm,right=3cm,top=2.5cm,bottom=2.5cm]{geometry} \...

1

I can't understand the abntex2 manual as I am a monoglot English speaker. However I was the original developer of memoir. In memoir the assumption is that \chapter commands come before \section commands like in the book and report classes. memoir has an article option whereby the output looks like an article; a \chapter is typeset like an article's \section, ...

2

Assuming you want to be able to cross-reference section-level headings by their numbers, i.e., without the \S prefix, I would like to suggest you proceed by adopting an approach I first encountered several years ago, on pp. 26f of The LaTeX Companion. It works by modifying the low-level macro \section@cntformat, which controls how counters associated with ...

0


2

hyperref has no idea what to do with \citepaliaspub in the bookmarks, you need to provide a sensible definition, or use \section{Lipsum \texorpdfstring{\protect\citepaliaspub{tolkien_93}}{bookmark text}} A possible definition could be \pdfstringdefDisableCommands{% \def\citepaliaspub#1{\csname al@#1\@extra@b@citeb\endcsname}} This would then give this ...

5

Here are two ways to customize the toc: use an optional argument to your sectioning commands, and/or use \addcontentsline. Thanks to TeePeemm for also noting the use of \addtocontents, for which you need to remember that a \par at the end is required before the next sectioning command. \documentclass{article} \begin{document} \tableofcontents \hrulefill \...

1

There are a couple of ways to get an abstract-like acknowledgement environment. Do as @Werner suggested. Provide complete code for the environment Change the \abstractname and use abstract. The last two are shown below. % artackprob.tex SE 591728 \documentclass%[twocolumn] % [titlepage] {article} %%%% an abstract-like acknowledgement environment \...

1

The following should work with the default document classes: \documentclass{article} \usepackage{lipsum} \newenvironment{acknowledgements}{% \renewcommand{\abstractname}{Acknowledgements}% Rename Abstract to Acknowledgements \begin{abstract} }{% \end{abstract} } \begin{document} \begin{abstract} \lipsum[1] \end{abstract} \begin{acknowledgements} \...

Top 50 recent answers are included