diff options
author | Norbert Preining <norbert@preining.info> | 2021-06-24 03:04:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-06-24 03:04:59 +0000 |
commit | 1a77d17b8844e0cdad3a4851d5cb3a95b703a4df (patch) | |
tree | 8efd430bf6e5066743f396c3b58a95a84311af53 /macros/latex/contrib/minimalist/minimalist.sty | |
parent | a809a190ff669feb11cb64db915b763abd0bed81 (diff) |
CTAN sync 202106240304
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist.sty | 244 |
1 files changed, 138 insertions, 106 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist.sty b/macros/latex/contrib/minimalist/minimalist.sty index fdea2527fb..90b8b1564c 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/06/07a A simple and clear style for articles and books] + [2021/06/23 A simple and clear style for articles and books] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -28,8 +28,10 @@ \DeclareBoolOption[false]{fast} \DeclareBoolOption[false]{puretext} \DeclareBoolOption[false]{nothms} +\DeclareBoolOption[false]{nothmnum} \DeclareBoolOption[false]{allowbf} \DeclareBoolOption[false]{classical} +\DeclareBoolOption[false]{runin} \ProcessKeyvalOptions*\relax \if@minimalist@draft @@ -48,22 +50,24 @@ \newif\ifIsBook \ifdefined\c@chapter\IsBooktrue\else\IsBookfalse\fi +\def\minimalist@titlefontshape{} + %%================================ %% Title fonts %%================================ \RequirePackage{anyfontsize} \if@minimalist@classical -\newcommand{\partfont}{\conditionalbfseries\sffamily} -\newcommand{\chapfont}{\conditionalbfseries\sffamily} -\newcommand{\secfont}{\conditionalbfseries\sffamily} -\newcommand{\subsecfont}{\conditionalbfseries\sffamily} -\newcommand{\subsubsecfont}{\conditionalbfseries\sffamily} +\newcommand{\partfont}{\conditionalbfseries\minimalist@titlefontshape} +\newcommand{\chapfont}{\conditionalbfseries\minimalist@titlefontshape} +\newcommand{\secfont}{\conditionalbfseries\minimalist@titlefontshape} +\newcommand{\subsecfont}{\conditionalbfseries\minimalist@titlefontshape} +\newcommand{\subsubsecfont}{\conditionalbfseries\minimalist@titlefontshape\itshape} \else -\newcommand{\partfont}{\conditionalbfseries\sffamily} -\newcommand{\chapfont}{\conditionalbfseries\sffamily} +\newcommand{\partfont}{\conditionalbfseries\minimalist@titlefontshape} +\newcommand{\chapfont}{\conditionalbfseries\minimalist@titlefontshape} \newcommand{\secfont}{\conditionalbfseries} \newcommand{\subsecfont}{\conditionalbfseries} -\newcommand{\subsubsecfont}{\conditionalbfseries} +\newcommand{\subsubsecfont}{\conditionalbfseries\itshape} \fi %%================================ @@ -81,14 +85,14 @@ \fancypagestyle{fancy}{ \fancyhf{} \if@twoside - \fancyfoot[RO]{\small\textcolor{black!30!paper}{\lastrightmark}% - ~~\rlap{\textcolor{gray!55!paper}{$|$}~~\thepage}} + \fancyfoot[RO]{\small\textcolor{maintext!30!paper}{\lastrightmark}% + ~~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}} \fancyfoot[LE]{\small\leavevmode\llap{\thepage% - ~~\textcolor{gray!55!paper}{$|$}}% - ~~\textcolor{black!30!paper}{\lastleftmark}} + ~~\textcolor{maintext!27!paper}{$|$}}% + ~~\textcolor{maintext!30!paper}{\lastleftmark}} \else - \fancyfoot[R]{\small\textcolor{black!30!paper}{\lastrightmark}% - ~~\rlap{\textcolor{gray!55!paper}{$|$}~~\thepage}} + \fancyfoot[R]{\small\textcolor{maintext!30!paper}{\lastrightmark}% + ~~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}} \fi \renewcommand{\headrulewidth}{0pt} } @@ -97,12 +101,12 @@ \fancyhf{} \if@twoside \fancyfoot[RO]{\small% - ~\rlap{\textcolor{gray!55!paper}{$|$}~~\thepage}} + ~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}} \fancyfoot[LE]{\small\leavevmode\llap{\thepage% - ~~\textcolor{gray!55!paper}{$|$}}} + ~~\textcolor{maintext!27!paper}{$|$}}} \else \fancyfoot[R]{\small% - ~\rlap{\textcolor{gray!55!paper}{$|$}~~\thepage}} + ~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}} \fi \renewcommand{\headrulewidth}{0pt} } @@ -121,12 +125,12 @@ +(-\i*0.5em-.025em,-10pt+\i*1.1pt)$) rectangle ($(current page text area.south east) +(-\i*0.5em+.025em,10pt-\i*1.1pt)$); - \shade[top color=paper,bottom color=black,opacity=0.12-0.02*\i] + \shade[top color=paper,bottom color=maintext,opacity=0.12-0.02*\i] ($(current page text area.north east) +(-\i*0.5em-.025em,2pt)$) rectangle ($(current page text area.north east) +(-\i*0.5em+.025em,-10pt+\i*1.1pt)$); - \shade[top color=black,bottom color=paper,opacity=0.12-0.02*\i] + \shade[top color=maintext,bottom color=paper,opacity=0.12-0.02*\i] ($(current page text area.south east) +(-\i*0.5em-.025em,-2pt)$) rectangle ($(current page text area.south east) @@ -169,7 +173,7 @@ %%================================ \PassOptionsToPackage{pagewise,mathlines}{lineno} \RequirePackage{lineno} -\renewcommand\linenumberfont{\ttfamily\color{gray!15!paper}\footnotesize} +\renewcommand\linenumberfont{\ttfamily\color{maintext!7!paper}\footnotesize} \setlength\linenumbersep{1em} \RequirePackage{mathtools} @@ -259,7 +263,7 @@ \LocallyStopLineNumbers% \begin{flushright}% \begin{minipage}{0.833\textwidth}% - \color{black!80!paper}\raggedleft#1% + \color{maintext!80!paper}\raggedleft#1% \end{minipage}% \end{flushright}% \ResumeLineNumbers% @@ -271,16 +275,16 @@ \titleformat{\chapter} {\thispagestyle{fancy}% \LocallyStopLineNumbers% - \color{black!80!paper}\chapfont\fontsize{16}{0}\selectfont}{}{0em} - {\rlap{\hspace*{-.5em}{\color{gray!25!paper}% + \color{maintext!80!paper}\chapfont\fontsize{16}{0}\selectfont}{}{0em} + {\rlap{\hspace*{-.5em}{\color{maintext!12!paper}% \fontsize{80}{0}\selectfont\raisebox{-7pt}{\thechapter}}}#1} [\ResumeLineNumbers] \titleformat{name=\chapter,numberless} {\thispagestyle{fancy}% \LocallyStopLineNumbers% % \phantomsection\addcontentsline{toc}{chapter}{#1}% - \color{black!80!paper}\chapfont\fontsize{16}{0}\selectfont}{}{0em} - {\rlap{\hspace*{-.5em}{\color{gray!25!paper}% + \color{maintext!80!paper}\chapfont\fontsize{16}{0}\selectfont}{}{0em} + {\rlap{\hspace*{-.5em}{\color{maintext!12!paper}% \fontsize{80}{0}\selectfont\normalfont\raisebox{-7pt}{*}}}#1} [\ResumeLineNumbers] }{ @@ -305,7 +309,7 @@ \LocallyStopLineNumbers% \begin{flushright}% \begin{minipage}{0.833\textwidth}% - \color{black!80!paper}\raggedleft#1% + \color{maintext!80!paper}\raggedleft#1% \end{minipage}% \end{flushright}% \ResumeLineNumbers% @@ -323,15 +327,15 @@ {#1} [\ResumeLineNumbers] \else -\newcommand\seculine{\bgroup\markoverwith{\color{gray!55!paper}% +\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/}} \titleformat{\section} {\LocallyStopLineNumbers% \secfont\centering}{}{0em} - {{\small\textcolor{gray!55!paper}{\sec@decochar}% - \,\,\textcolor{black!90!paper}{\conditionalbfseries\arabic{section}}% - \,\,\textcolor{gray!55!paper}{\sec@decochar}}\\ + {{\small\textcolor{maintext!27!paper}{\sec@decochar}% + \,\,\textcolor{maintext!90!paper}{\conditionalbfseries\arabic{section}}% + \,\,\textcolor{maintext!27!paper}{\sec@decochar}}\\ \seculine{#1}} [\ResumeLineNumbers] \titleformat{name=\section,numberless} @@ -353,12 +357,12 @@ {#1} [\ResumeLineNumbers] \else -\newcommand\subseculine{\bgroup\markoverwith{\color{gray!55!paper}% +\newcommand\subseculine{\bgroup\markoverwith{\color{maintext!27!paper}% \rule[-1ex]{2pt}{.75pt}}\ULon} \titleformat{\subsection} {\LocallyStopLineNumbers% \subsecfont}{}{0em} - {\subseculine{\thesubsection~\textcolor{gray!55!paper}{$|$}~#1}} + {\subseculine{\thesubsection~\textcolor{maintext!27!paper}{$|$}~#1}} [\ResumeLineNumbers] \titleformat{name=\subsection,numberless} {\LocallyStopLineNumbers% @@ -368,11 +372,21 @@ \fi %% Subsubsection +\if@minimalist@runin +\titleformat{\subsubsection}[runin] + {\color{maintext!70!paper}\subsubsecfont}{\thesubsubsection}{.5em} + {#1.}[\hspace*{.3em}] +\else \titleformat{\subsubsection} {\LocallyStopLineNumbers% - \color{paper!30!-paper}\subsubsecfont}{\thesubsubsection}{.6em} + \color{maintext!70!paper}\subsubsecfont}{\thesubsubsection}{.5em} {#1} [\ResumeLineNumbers] +\fi + +%% Paragraph +\titleformat{\paragraph}[runin] + {\scshape}{\theparagraph}{1em}{#1} \titlespacing{\section}{0pt}{\baselineskip}{.6\baselineskip} \titlespacing{\subsection}{0pt}{.75\baselineskip}{.4\baselineskip} @@ -395,44 +409,44 @@ {\addvspace{.5pc}\normalfont} {\contentslabel{2em}} {\hspace*{-2em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} \titlecontents{section} [4em] % i.e., 2em (chapter) + 2em {\normalfont} {\contentslabel{1.75em}} {\hspace*{-1.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} \titlecontents{subsection} - [7em] % i.e., 4em (section) + 3em + [6.5em] % i.e., 4em (section) + 2.5em {\normalfont} - {\contentslabel{2.75em}} - {\hspace*{-2.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\contentslabel{2.25em}} + {\hspace*{-2.25em}} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} \titlecontents{subsubsection} - [9em] % i.e., 7em (subsection) + 2em + [8.5em] % i.e., 6.5em (subsection) + 3em {\normalfont} {\contentslabel{2.75em}} {\hspace*{-2.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} }{ \titlecontents{section} [2em] % i.e., 0em (part) + 2em {\normalfont} {\contentslabel{1.75em}} {\hspace*{-1.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} \titlecontents{subsection} - [5em] % i.e., 2em (section) + 3em + [4.5em] % i.e., 2em (section) + 2.5em {\normalfont} - {\contentslabel{2.75em}} - {\hspace*{-2.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\contentslabel{2.25em}} + {\hspace*{-2.25em}} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} \titlecontents{subsubsection} - [7em] % i.e., 5em (subsection) + 2em + [7.5em] % i.e., 4.5em (subsection) + 3em {\normalfont} {\contentslabel{2.75em}} {\hspace*{-2.75em}} - {\titlerule*[1em]{\textcolor{gray!30!paper}{.}}\contentspage} + {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\contentspage} } %%================================ @@ -440,9 +454,10 @@ %%================================ \RequirePackage{enumitem} \setlist{noitemsep,leftmargin=2em} -\renewcommand\labelitemi{\color{gray!50}$\bullet$} -\renewcommand\labelitemii{\color{gray!55}--} -\renewcommand\labelitemiii{\color{gray!55}\texttt{*}} +\gappto{\PJLlang@langconfig@common}{\renewcommand\labelitemi{\textcolor{maintext!25}{$\bullet$}}} +\gappto{\PJLlang@langconfig@french}{\renewcommand\labelitemi{\textcolor{maintext!50}{---}}} +\renewcommand\labelitemii{\textcolor{maintext!27}{--}} +\renewcommand\labelitemiii{\textcolor{maintext!27}{\texttt{*}}} %%================================ %% Blank page @@ -455,7 +470,7 @@ \AddToHookNext{shipout/background} {% \put(0.5\paperwidth,-0.5\paperheight){% - \makebox[0pt]{\large\color{gray!20!paper}\blinkpagetext}}} + \makebox[0pt]{\large\color{maintext!10!paper}\blinkpagetext}}} \null\newpage\fi\fi} %%================================ @@ -468,45 +483,33 @@ %%================================ \RequirePackage{amsthm} \if@minimalist@classical - \if@minimalist@allowbf \newtheoremstyle{simple}% {}{}% {\normalfont}{}% {\normalfont}{}% {0pt}% - {{\conditionalbfseries\sffamily\thmname{#1}\thmnumber{ #2}}\hspace{.4em}% - {\color{gray}\thmnote{\ensuremath{(\text{#3})}~~}}} - \else - \newcommand\thmuline{\bgroup\markoverwith{\color{gray!55!paper}% - \rule[-.6ex]{2pt}{.5pt}}\ULon} + {{\conditionalbfseries\minimalist@titlefontshape\thmname{#1}\thmnumber{ #2}}% + {\color{maintext!50!paper}\thmnote{\hspace{.4em}\ensuremath{(\text{#3})}}}~~{\normalfont---}~~} +\else + \def\simpleqedsymbol{% + \makebox[1em]{\rlap{\textcolor{maintext!12!paper}{\rule[-0.1em]{.95em}{.95em}}}{\kern.07em\raisebox{.07em}{\textcolor{paper}{\rule[-0.1em]{.81em}{.81em}}}\kern.07em}}} \newtheoremstyle{simple}% {}{}% {\normalfont}{}% {\normalfont}{}% {0pt}% - {{\sffamily\thmuline{\thmname{\textsc{#1}}\thmnumber{ #2}}}\hspace{.4em}% - {\color{gray}\thmnote{\ensuremath{(\text{#3})}~~}}} - \fi -\else -\def\simpleqedsymbol{% - \makebox[1em]{\rlap{\textcolor{gray!25!paper}{\rule[-0.1em]{.95em}{.95em}}}{\kern.07em\raisebox{.07em}{\textcolor{paper}{\rule[-0.1em]{.81em}{.81em}}}\kern.07em}}} -\newtheoremstyle{simple}% - {}{}% - {\normalfont}{}% - {\normalfont}{}% - {0pt}% - {\global\let\qedsymbol\simpleqedsymbol% - {\conditionalbfseries\thmname{#1}\thmnumber{ #2}}\hspace{.4em}% - \textcolor{gray!55!paper}{$|$}\hspace{.4em}% - \color{gray}\thmnote{\ensuremath{(\text{#3})}~~}% - \pushQED{\qed}% - } -\def\@endtheorem{\popQED\endtrivlist\@endpefalse -\global\let\qedsymbol\qedsymbolOriginal} + {\global\let\qedsymbol\simpleqedsymbol% + {\conditionalbfseries\thmname{#1}\thmnumber{ #2}}\hspace{.4em}% + \textcolor{maintext!27!paper}{$|$}\hspace{.4em}% + \color{maintext!50!paper}\thmnote{\ensuremath{(\text{#3})}~~}% + \pushQED{\qed}% + } + \def\@endtheorem{\popQED\endtrivlist\@endpefalse + \global\let\qedsymbol\qedsymbolOriginal} \fi \renewcommand{\qedsymbol}{% - \makebox[1em]{\color{gray!55!paper}\rule[-0.1em]{.95em}{.95em}}} + \makebox[1em]{\color{maintext!27!paper}\rule[-0.1em]{.95em}{.95em}}} \let\qedsymbolOriginal\qedsymbol \if@minimalist@fast @@ -540,8 +543,8 @@ \pretocmd{\problemnameEN}{\textsc}{}{\FAIL} \pretocmd{\questionnameEN}{\textsc}{}{\FAIL} \pretocmd{\exercisenameEN}{\textsc}{}{\FAIL} -\pretocmd{\remarknameEN}{\textsc}{}{\FAIL} -\pretocmd{\observationnameEN}{\textsc}{}{\FAIL} +\pretocmd{\remarknameEN}{\itshape}{}{\FAIL} +\pretocmd{\observationnameEN}{\itshape}{}{\FAIL} %% Adjust French theorems names \pretocmd{\theoremnameFR}{\textsc}{}{\FAIL} @@ -561,8 +564,8 @@ \pretocmd{\problemnameFR}{\textsc}{}{\FAIL} \pretocmd{\questionnameFR}{\textsc}{}{\FAIL} \pretocmd{\exercisenameFR}{\textsc}{}{\FAIL} -\pretocmd{\remarknameFR}{\textsc}{}{\FAIL} -\pretocmd{\observationnameFR}{\textsc}{}{\FAIL} +\pretocmd{\remarknameFR}{\itshape}{}{\FAIL} +\pretocmd{\observationnameFR}{\itshape}{}{\FAIL} %% Adjust German theorems names \pretocmd{\theoremnameDE}{\textsc}{}{\FAIL} @@ -582,8 +585,8 @@ \pretocmd{\problemnameDE}{\textsc}{}{\FAIL} \pretocmd{\questionnameDE}{\textsc}{}{\FAIL} \pretocmd{\exercisenameDE}{\textsc}{}{\FAIL} -\pretocmd{\remarknameDE}{\textsc}{}{\FAIL} -\pretocmd{\observationnameDE}{\textsc}{}{\FAIL} +\pretocmd{\remarknameDE}{\itshape}{}{\FAIL} +\pretocmd{\observationnameDE}{\itshape}{}{\FAIL} %% Adjust Italian theorems names \pretocmd{\theoremnameIT}{\textsc}{}{\FAIL} @@ -603,8 +606,8 @@ \pretocmd{\problemnameIT}{\textsc}{}{\FAIL} \pretocmd{\questionnameIT}{\textsc}{}{\FAIL} \pretocmd{\exercisenameIT}{\textsc}{}{\FAIL} -\pretocmd{\remarknameIT}{\textsc}{}{\FAIL} -\pretocmd{\observationnameIT}{\textsc}{}{\FAIL} +\pretocmd{\remarknameIT}{\itshape}{}{\FAIL} +\pretocmd{\observationnameIT}{\itshape}{}{\FAIL} %% Adjust Portuguese theorems names \pretocmd{\theoremnamePT}{\textsc}{}{\FAIL} @@ -624,8 +627,8 @@ \pretocmd{\problemnamePT}{\textsc}{}{\FAIL} \pretocmd{\questionnamePT}{\textsc}{}{\FAIL} \pretocmd{\exercisenamePT}{\textsc}{}{\FAIL} -\pretocmd{\remarknamePT}{\textsc}{}{\FAIL} -\pretocmd{\observationnamePT}{\textsc}{}{\FAIL} +\pretocmd{\remarknamePT}{\itshape}{}{\FAIL} +\pretocmd{\observationnamePT}{\itshape}{}{\FAIL} %% Adjust Brazilian theorems names \pretocmd{\theoremnameBR}{\textsc}{}{\FAIL} @@ -645,8 +648,8 @@ \pretocmd{\problemnameBR}{\textsc}{}{\FAIL} \pretocmd{\questionnameBR}{\textsc}{}{\FAIL} \pretocmd{\exercisenameBR}{\textsc}{}{\FAIL} -\pretocmd{\remarknameBR}{\textsc}{}{\FAIL} -\pretocmd{\observationnameBR}{\textsc}{}{\FAIL} +\pretocmd{\remarknameBR}{\itshape}{}{\FAIL} +\pretocmd{\observationnameBR}{\itshape}{}{\FAIL} %% Adjust Spanish theorems names \pretocmd{\theoremnameES}{\textsc}{}{\FAIL} @@ -666,8 +669,8 @@ \pretocmd{\problemnameES}{\textsc}{}{\FAIL} \pretocmd{\questionnameES}{\textsc}{}{\FAIL} \pretocmd{\exercisenameES}{\textsc}{}{\FAIL} -\pretocmd{\remarknameES}{\textsc}{}{\FAIL} -\pretocmd{\observationnameES}{\textsc}{}{\FAIL} +\pretocmd{\remarknameES}{\itshape}{}{\FAIL} +\pretocmd{\observationnameES}{\itshape}{}{\FAIL} %% Theorem environments \theoremstyle{simple} @@ -677,6 +680,17 @@ \newaliascnt{highest}{section} } \if@minimalist@nothms\else +\if@minimalist@nothmnum +\CreateTheorem*{theorem} +\CreateTheorem*{lemma} +\CreateTheorem*{proposition} +\CreateTheorem*{corollary} +\CreateTheorem*{definition-proposition} +\CreateTheorem*{definition-theorem} +\CreateTheorem*{property} +\CreateTheorem*{fact} +\CreateTheorem*{conjecture} +\else \CreateTheorem{theorem}<highest> \CreateTheorem{lemma}[theorem] \CreateTheorem{proposition}[theorem] @@ -686,6 +700,7 @@ \CreateTheorem{property}[theorem] \CreateTheorem{fact}[theorem] \CreateTheorem{conjecture}[theorem] +\fi \CreateTheorem*{theorem*} \CreateTheorem*{lemma*} \CreateTheorem*{proposition*} @@ -695,6 +710,18 @@ \CreateTheorem*{property*} \CreateTheorem*{fact*} \CreateTheorem*{conjecture*} +\if@minimalist@nothmnum +\CreateTheorem*{definition} +\CreateTheorem*{axiom} +\CreateTheorem*{assumption} +\CreateTheorem*{convention} +\CreateTheorem*{hypothesis} +\CreateTheorem*{notation} +\CreateTheorem*{example} +\CreateTheorem*{problem} +\CreateTheorem*{question} +\CreateTheorem*{exercise} +\else \CreateTheorem{definition}[theorem] \CreateTheorem{axiom}[theorem] \CreateTheorem{assumption}[theorem] @@ -705,6 +732,7 @@ \CreateTheorem{problem}[theorem] \CreateTheorem{question}[theorem] \CreateTheorem{exercise}[theorem] +\fi \CreateTheorem*{definition*} \CreateTheorem*{axiom*} \CreateTheorem*{assumption*} @@ -715,14 +743,17 @@ \CreateTheorem*{problem*} \CreateTheorem*{question*} \CreateTheorem*{exercise*} +\if@minimalist@nothmnum +\CreateTheorem*{remark} +\CreateTheorem*{observation} +\else \CreateTheorem{remark}<highest> -\CreateTheorem*{remark*} \CreateTheorem{observation}<highest> +\fi +\CreateTheorem*{remark*} \CreateTheorem*{observation*} \fi -\setlength{\parindent}{2em} - \ifbool{IsBook}{}{% %%================================ @@ -732,8 +763,8 @@ \renewcommand{\@maketitle}{% \LocallyStopLineNumbers% \begin{center}% - {\conditionalbfseries\sffamily\large\@title}\\\bigskip% - \color{black!80!paper}% + {\conditionalbfseries\minimalist@titlefontshape\large\@title}\\\bigskip% + \color{maintext!80!paper}% {\small\scshape\@author}\\[2pt]% {\small\@date}% \end{center}% @@ -745,12 +776,12 @@ \renewcommand{\@maketitle}{% \LocallyStopLineNumbers% \noindent% - {\textcolor{gray!55!paper}{\rule{\textwidth}{0.75pt}}}% + {\textcolor{maintext!27!paper}{\rule{\textwidth}{0.75pt}}}% % \vspace{-\parskip}% \vspace{-.5\baselineskip}% \begin{flushright}% {\conditionalbfseries\@title}\\\medskip% - \color{black!80!paper}% + \color{maintext!80!paper}% {\small\scshape\@author}% \par\vspace{-\parskip}\vspace{2pt}% {\small\@date}% @@ -758,11 +789,12 @@ % \vspace{-\parskip}% \vspace{-.5\baselineskip}% \ifx\@date\@empty% - \vspace{1.6\baselineskip}% + \vspace{\baselineskip}% + \vspace{1.2\parskip}% \else% \vspace{-.5\baselineskip}% \fi% - {\textcolor{gray!55!paper}{\rule{\textwidth}{0.75pt}}\par}% + {\textcolor{maintext!27!paper}{\rule{\textwidth}{0.75pt}}\par}% \ResumeLineNumbers% } \fi @@ -780,7 +812,7 @@ \vspace{-.3\baselineskip}% \begin{minipage}[t]{.833\textwidth}% \vspace{0pt}% - \color{black!80!paper}% + \color{maintext!80!paper}% \footnotesize% \parindent=2em }{% @@ -798,7 +830,7 @@ \vspace{-.25\baselineskip}% \begin{minipage}[t]{.833\textwidth}% \vspace{0pt}% - \color{black!80!paper}% + \color{maintext!80!paper}% \footnotesize% \parindent=2em }{% @@ -829,7 +861,7 @@ \vspace{-.3\baselineskip}% \begin{minipage}[t]{.833\textwidth}% \vspace{0pt}% - \color{black!80!paper}% + \color{maintext!80!paper}% \footnotesize% \parindent=2em \begin{center}% @@ -850,7 +882,7 @@ \vspace{-.30\baselineskip}% \begin{minipage}[t]{.833\textwidth}% \vspace{0pt}% - \color{black!80!paper}% + \color{maintext!80!paper}% \footnotesize% \parindent=2em \raggedleft% |