Better layout

This commit is contained in:
2026-02-16 00:34:01 +00:00
parent 7d3d933d5f
commit 9348965b49
10 changed files with 481 additions and 40 deletions

View File

@@ -1,17 +1,37 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{decsectionalv2}[2025/03/24 Digital Equipment Corporation]
\LoadClass{decv2}
\renewcommand{\thepage}{\thechapter-\arabic{page}}
\renewcommand{\toc}{%
\pagestyle{preface}
\begingroup
\setlength{\parskip}{0.5em}
\let\clearpage\relax
\tableofcontents
\thispagestyle{preface}
\vspace{1em}
\subsubsection*{Figures}
\listoffigures
\thispagestyle{preface}
\vspace{1em}
\subsubsection*{Tables}
\listoftables
\thispagestyle{preface}
\endgroup
}
\setcounter{secnumdepth}{5}
\titleformat{\chapter}[display]{\raggedleft\fontfamily{phv}\selectfont\bfseries\huge}{\Huge \thechapter}{-0.5em}{}[\hrule]
\titlespacing{\chapter}{0pc}{10em}{2em}
\titlespacing{\chapter}{0pc}{9em}{2em}
\titleformat{\section}{\raggedright\fontfamily{phv}\selectfont\bfseries\huge}{\thesection \hspace{1em}}{0.0em}{}[]
\titleformat{\section}{\raggedright\fontfamily{phv}\selectfont\bfseries\Large}{\thesection \hspace{1em}}{0.0em}{}[]
\titlespacing{\section}{0em}{1em}{1em}
\titleformat{\subsection}{\raggedright\fontfamily{phv}\selectfont\bfseries\LARGE}{\thesubsection\hspace{1em}}{0.0em}{}[]
\titleformat{\subsection}{\raggedright\fontfamily{phv}\selectfont\bfseries\large}{\thesubsection\hspace{1em}}{0.0em}{}[]
\titlespacing{\subsection}{0em}{1em}{1em}
\titleformat{\subsubsection}{\raggedright\fontfamily{phv}\selectfont\bfseries}{\thesubsubsection\hspace{1em}}{0.0em}{}[]
@@ -96,10 +116,10 @@ DIBOL & Rainbow & \\
\begin{table}[H]
\IfStrEq{X#1}{X}{}{
\label{table:\tbllabel}
\captionsetup{font=Large}
\captionsetup{font=large}
\caption{#1}
}
\tablesize
\normalsize
\begin{tabularx}{\textwidth}{#2}
\hline
\BODY
@@ -116,7 +136,7 @@ DIBOL & Rainbow & \\
\captionsetup{font=Large}
\caption[]{#1}
}
\tablesize
\normalsize
\begin{tabularx}{\textwidth}{#2}
\hline
\BODY