diff options
author | Norbert Preining <norbert@preining.info> | 2021-08-01 03:00:39 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-08-01 03:00:39 +0000 |
commit | 956b25a304207d06fe012f8c8efcb13cc66e3eec (patch) | |
tree | 31afb75255717f047a6833a290bd6533678ff4d5 /support/latexindent/documentation/subsubsec-headings.tex | |
parent | 6476d9b56070f64c62d6a81514c0c9b25aad1eda (diff) |
CTAN sync 202108010300
Diffstat (limited to 'support/latexindent/documentation/subsubsec-headings.tex')
-rw-r--r-- | support/latexindent/documentation/subsubsec-headings.tex | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/support/latexindent/documentation/subsubsec-headings.tex b/support/latexindent/documentation/subsubsec-headings.tex index 3cbe5996ea..de647cde5a 100644 --- a/support/latexindent/documentation/subsubsec-headings.tex +++ b/support/latexindent/documentation/subsubsec-headings.tex @@ -1,8 +1,9 @@ % arara: pdflatex: {shell: yes, files: [latexindent]} \subsubsection{afterHeading code blocks}\label{subsubsec-headings-no-add-indent-rules} Let's use the example \cref{lst:headings2} for demonstration throughout this - \namecref{subsubsec-headings-no-add-indent-rules}. As discussed on \cpageref{lst:headings1}, by default - \texttt{latexindent.pl} will not add indentation after headings. + \namecref{subsubsec-headings-no-add-indent-rules}. As discussed on + \cpageref{lst:headings1}, by default \texttt{latexindent.pl} will not add indentation + after headings. \cmhlistingsfromfile{demonstrations/headings2.tex}{\texttt{headings2.tex}}{lst:headings2} @@ -20,15 +21,15 @@ latexindent.pl headings2.tex -l headings3.yaml \cmhlistingsfromfile[style=yaml-LST]*{demonstrations/headings3.yaml}[yaml-TCB]{\texttt{headings3.yaml}}{lst:headings3yaml} \end{cmhtcbraster} - If we specify \texttt{noAdditionalIndent} as in \cref{lst:headings4yaml} and run the command + If we specify \texttt{noAdditionalIndent} as in \cref{lst:headings4yaml} and run the + command \index{switches!-l demonstration} \begin{commandshell} latexindent.pl headings2.tex -l headings4.yaml \end{commandshell} then we receive the output in \cref{lst:headings2-mod4}. Note that the arguments - \emph{and} the body after the heading of \texttt{paragraph} has received - no additional indentation, because we have specified \texttt{noAdditionalIndent} in scalar - form. + \emph{and} the body after the heading of \texttt{paragraph} has received no additional + indentation, because we have specified \texttt{noAdditionalIndent} in scalar form. \begin{cmhtcbraster}[raster column skip=.1\linewidth] \cmhlistingsfromfile{demonstrations/headings2-mod4.tex}{\texttt{headings2.tex} using \cref{lst:headings4yaml}}{lst:headings2-mod4} @@ -36,10 +37,9 @@ latexindent.pl headings2.tex -l headings4.yaml \end{cmhtcbraster} Similarly, if we specify \texttt{indentRules} as in \cref{lst:headings5yaml} and run - analogous commands to those above, we receive the output in \cref{lst:headings2-mod5}; note - that the \emph{body}, \emph{mandatory argument} and content - \emph{after the heading} of \texttt{paragraph} have \emph{all} received - three tabs worth of indentation. + analogous commands to those above, we receive the output in \cref{lst:headings2-mod5}; + note that the \emph{body}, \emph{mandatory argument} and content \emph{after the heading} + of \texttt{paragraph} have \emph{all} received three tabs worth of indentation. \begin{cmhtcbraster}[raster force size=false, raster column 1/.style={add to width=1cm}, @@ -67,14 +67,15 @@ latexindent.pl headings2.tex -l headings4.yaml \cmhlistingsfromfile[style=yaml-LST]*{demonstrations/headings7.yaml}[yaml-TCB]{\texttt{headings7.yaml}}{lst:headings7yaml} \end{cmhtcbraster} - Finally, let's consider \texttt{noAdditionalIndentGlobal} and \texttt{indentRulesGlobal} shown in - \cref{lst:headings8yaml,lst:headings9yaml} respectively, with respective output in \cref{lst:headings2-mod8,lst:headings2-mod9}. - Note that in \cref{lst:headings8yaml} the \emph{mandatory argument} of \texttt{paragraph} - has received a (default) tab's worth of indentation, while the body after the heading has - received \emph{no additional indentation}. Similarly, in \cref{lst:headings2-mod9}, the - \emph{argument} has received both a (default) tab plus two spaces of indentation - (from the global rule specified in \cref{lst:headings9yaml}), and the remaining body after - \texttt{paragraph} has received just two spaces of indentation. + Finally, let's consider \texttt{noAdditionalIndentGlobal} and \texttt{indentRulesGlobal} + shown in \cref{lst:headings8yaml,lst:headings9yaml} respectively, with respective output + in \cref{lst:headings2-mod8,lst:headings2-mod9}. Note that in \cref{lst:headings8yaml} + the \emph{mandatory argument} of \texttt{paragraph} has received a (default) tab's worth + of indentation, while the body after the heading has received \emph{no additional + indentation}. Similarly, in \cref{lst:headings2-mod9}, the \emph{argument} has received + both a (default) tab plus two spaces of indentation (from the global rule specified in + \cref{lst:headings9yaml}), and the remaining body after \texttt{paragraph} has received + just two spaces of indentation. \begin{cmhtcbraster} \cmhlistingsfromfile{demonstrations/headings2-mod8.tex}{\texttt{headings2.tex} using \cref{lst:headings8yaml}}{lst:headings2-mod8} |