summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/minimalist/minimalist.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist.sty')
-rw-r--r--macros/latex/contrib/minimalist/minimalist.sty22
1 files changed, 11 insertions, 11 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist.sty b/macros/latex/contrib/minimalist/minimalist.sty
index 6b11172530..a50f03497d 100644
--- a/macros/latex/contrib/minimalist/minimalist.sty
+++ b/macros/latex/contrib/minimalist/minimalist.sty
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesPackage{minimalist}
- [2021/07/05 A simple and clear style for articles and books]
+ [2021/07/13 A simple and clear style for articles and books]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{%
@@ -156,7 +156,7 @@
\renewcommand{\chaptermark}[1]{\markboth{\textsc{#1}}{\textsc{#1}}}
\fi
\renewcommand*{\sectionmark}[1]{%
- \markright{\sec@decochar~\thesection~\sec@decochar~~~#1}}
+ \markright{\sec@decochar~\arabic{section}~\sec@decochar~~~#1}}
}{
\if@twoside
\renewcommand*{\sectionmark}[1]{\markboth{\textsc{#1}}{}}
@@ -322,7 +322,6 @@
}
%% Section
-\renewcommand\thesection{\arabic{section}}
\if@minimalist@classical
\newcommand\sec@decochar{}
\titleformat{\section}
@@ -332,15 +331,16 @@
{#1}
[\ResumeLineNumbers]
\else
+\renewcommand\thesection{\arabic{section}}
\newcommand\seculine{\bgroup\markoverwith{\color{maintext!27!paper}%
\rule[-0.9ex]{2pt}{.6pt}\hspace{-2pt}\rule[-1.2ex]{2pt}{.6pt}}\ULon}
-\newcommand\sec@decochar{\raisebox{.03em}{\normalfont\footnotesize/}}
+\newcommand\sec@decochar{\raisebox{.03em}{\normalfont/}}
\titleformat{\section}
{\LocallyStopLineNumbers%
\secfont\centering}{}{0em}
- {{\small\textcolor{maintext!27!paper}{\sec@decochar}%
+ {{\small\textcolor{maintext!27!paper}{\footnotesize\sec@decochar}%
\,\,\textcolor{maintext!90!paper}{\conditionalbfseries\arabic{section}}%
- \,\,\textcolor{maintext!27!paper}{\sec@decochar}}\\
+ \,\,\textcolor{maintext!27!paper}{\footnotesize\sec@decochar}}\\
\seculine{#1}}
[\ResumeLineNumbers]
\titleformat{name=\section,numberless}
@@ -352,8 +352,6 @@
\fi
%% Subsection
-\renewcommand\thesubsection{%
- \ifnum\c@section=0\else\arabic{section}.\fi\arabic{subsection}}
\if@minimalist@classical
\titleformat{\subsection}
{\LocallyStopLineNumbers%
@@ -362,6 +360,8 @@
{#1}
[\ResumeLineNumbers]
\else
+\renewcommand\thesubsection{%
+ \ifnum\c@section=0\else\arabic{section}.\fi\arabic{subsection}}
\newcommand\subseculine{\bgroup\markoverwith{\color{maintext!27!paper}%
\rule[-1ex]{2pt}{.75pt}}\ULon}
\titleformat{\subsection}
@@ -404,7 +404,7 @@
\titlecontents{part}
[0em]
{\addvspace{1.5pc}\filcenter\normalfont}
- {\thecontentslabel\\\uppercase}
+ {\thecontentslabel\nopagebreak\\\nopagebreak\uppercase}
{}
{} % without page number
[\addvspace{.5pc}]
@@ -418,8 +418,8 @@
\titlecontents{section}
[4em] % i.e., 2em (chapter) + 2em
{\normalfont}
- {\contentslabel{1.75em}}
- {\hspace*{-1.75em}}
+ {\contentslabel[\textcolor{maintext!27!paper}{\small\sec@decochar}\,\textcolor{maintext!90!paper}{\thecontentslabel}\,\textcolor{maintext!27!paper}{\small\sec@decochar}]{2em}}
+ {\hspace*{-2em}}
{\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage}
\titlecontents{subsection}
[6.5em] % i.e., 4em (section) + 2.5em