4

The standard classes define commands for heading levels 0-5, you can set secnumdepth greater than this, but that does not automatically define commands, you need to define any deeper level commands if needed. You can use a package such as titlesec, but here I just copy the definition of \subparagraph making the obvious changes of 5 to 6 where the level is ...


3

There is no \cftXpagefont defined. Instead, the X refers to the section type in question, like chap (for \chapter), sec (for \section), subsec (for \subsection), etc. So, you can redefine \cftsecpagefont, like below. \documentclass{article} \usepackage{xcolor,tocloft} \renewcommand{\cftsecpagefont}{\bfseries\color{red}} \renewcommand\thesection{\...


2

Use an alias: \documentclass[12pt, twoside=false, letterpaper, hidelinks, parskip=half+, %onehalfspacing, % see setstrecj after \begin{document} bibliography=numbered, numbers=noenddot]{scrartcl} \renewcommand\sectionlinesformat[4]{% used by free-standing headings with style=section \makebox[0pt][r]{#3}#4} %\usepackage{appendix} % use this if you ...


2

Probably something like the following is closer to what you want to achieve: \documentclass{article} \newcounter{gospelchapter} \setcounter{gospelchapter}{1} \newcommand{\mygospelchapter}{\phantomsection\addcontentsline{toc}{section}{\thegospelchapter}\Large\bfseries\thegospelchapter\refstepcounter{gospelchapter}} \newcounter{verse} \setcounter{verse}{1} \...


2

Note: answer reworked after further information in the question I suggest to use different names for the different types of section; with the help of \@seccntformat we can append what we want to the section number. \documentclass{article} \usepackage{xparse} \let\latexsection\section \ExplSyntaxOn \NewDocumentCommand{\genericsection}{m m D(){0} s O{#6} ...


2

Please note that the original \section command does have an optional argument (which determines what the entry will look like in the table of contents). Assuming that you have decided not to use this, you could do \documentclass{article} \newcounter{secstars} \newcommand\starSection[2][0]{% \begingroup\def\mystars{}% \ifnum#1=0% \else \setcounter{secstars}{...


1

Just for fun... BTW, 1px is about as small as TeX can get. 0pt gives different results. \documentclass{article} \makeatletter \newenvironment{mygroup}{\par\vskip 3.25ex\@plus 1ex \@minus .2ex % normal skip at beginning \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1px}{1px}% for positive/negative tests {\normalfont\normalsize\bfseries}}}...


1

Found one solution (using \vspace) which does what I want. \documentclass{article} \usepackage{titlesec} \usepackage{lipsum} \usepackage{parskip} \begin{document} \section{Section A} \subsection{Section A} \subsubsection{Subsubsection A} \vspace{-1.0\parskip} \subsubsection{Subsubsection B} \vspace{-1.0\parskip} \subsubsection{Subsubsection C} This is ...


1

It's because algorithm is a float environment, so LaTeX puts its content where it finds enough space and thinks is a good place. If you want to put something in an exact position you shouldn't use a float environment.


1

Here is a suggestion without package appendix: \documentclass[12pt, %twoside=false,% default letterpaper, hidelinks, parskip=half+, bibliography=numbered, numbers=noenddot ]{scrartcl} \usepackage{lipsum} \renewcommand\sectionlinesformat[4]{% used by free-standing headings with style=section \makebox[0pt][r]{#3}#4} \providecommand*\...


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