texlive[70777] Master/texmf-dist: litebook (26mar24)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 26 21:15:34 CET 2024


Revision: 70777
          https://tug.org/svn/texlive?view=revision&revision=70777
Author:   karl
Date:     2024-03-26 21:15:33 +0100 (Tue, 26 Mar 2024)
Log Message:
-----------
litebook (26mar24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
    trunk/Master/texmf-dist/doc/latex/litebook/litebook.pdf
    trunk/Master/texmf-dist/doc/latex/litebook/litebook.tex
    trunk/Master/texmf-dist/tex/latex/litebook/litebook.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/litebook/cha/cha2.tex

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/litebook/cha/scha.tex

Modified: trunk/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex	2024-03-26 20:15:20 UTC (rev 70776)
+++ trunk/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex	2024-03-26 20:15:33 UTC (rev 70777)
@@ -1,13 +1,11 @@
-\chapter{The \pkg{LiteBook} Template}
+\chapter{Introduction to the Template}
 
 \section{The purpose of this package}
+This template provides a streamlined design for typesetting books. Welcome to feedback bugs or ideas via email \href{mailto:xiamyphys at gmail.com}{\ttfamily xiamyphys at gmail.com} or \href{https://github.com/xiamyphys/litebook}{GitHub}.
 
-This template provides a fresh cover and chapter design for book. Welcome to feedback bugs or ideas via email \href{mailto:xiamyphys at gmail.com}{\ttfamily xiamyphys at gmail.com} or \href{https://github.com/xiamyphys/litebook}{GitHub}.
+This template is used by me to reformat the textbook \href{https://github.com/xiamyphys/LaTeX-General-Relativity-R.Wald}{\emph{General Relativity, R. Wald}}, and I also use this template to typesetting my notes on \href{https://github.com/xiamyphys/Group-Theory-in-Physics}{\emph{Group Theory in Physics}}. You can download them on \href{https://github.com/xiamyphys}{GitHub}.
 
-This template is used by me to reformat the textbook \href{https://github.com/xiamyphys/LaTeX-General-Relativity-R.Wald}{\emph{General Relativity, R. Wald}}, and I also use this template to typesetting my notes on \href{https://github.com/xiamyphys/Group-Theory-in-Physics}{\emph{Group Theory in Physics}}. You can download their codes on \href{https://github.com/xiamyphys}{GitHub}.
-
 \section{Installing \pkg{LiteBook} and loading it}
-
 For portable version, simply download latest \verb|litebook.cls| file from \href{https://github.com/xiamyphys/LiteBook}{GitHub} or \href{https://ctan.org/pkg/litebook}{CTAN} and save it under your working directory. This way of installation is simple and convenient, but you have to manually update \verb|.cls| now and then.
 
 However, I strongly suggest that you should use terminal/cmd to implement the commands to update all the packages (and install this package) to the latest version or switch to portable version instead
@@ -18,11 +16,9 @@
 If you are in some areas with awful Internet environment (such as GFW), you can choose a proper mirror source or use other means\footnote{Please comply with local network regulations.}. To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \hologo{TeX} distribution?}
 
 \section{Compatibility}
+The test environments are macOS + Mac\hologo{TeX} 2024 / Overleaf / Ubuntu 22.04.2 and they all work fine for \hologo{pdfLaTeX} and \hologo{XeLaTeX} compilers. Windows and Unix platforms' unknown. The compiling time of current document via \hologo{pdfLaTeX} compiler is about \verb|1s| on \textsf{MacBook Air M2 8 GB (macOS 14.4.1)} when charging.
 
-The test environments are macOS + Mac\hologo{TeX} 2024 / Overleaf and they all work fine for \hologo{pdfLaTeX} and \hologo{XeLaTeX} compilers. Windows, Linux and Unix platforms' unknown. The compile time of current document via \hologo{pdfLaTeX} compiler is \verb|0.965±0.0019s| on \textsf{MacBook Air M2 8GB (macOS Sonoma 14.4)} when charging.
-
-\section{Cover Information Settings}
-
+\section{Cover configurations}
 There are several lines of information and a cover image on the cover of this document, the corresponding commands are the following
 
 \begin{verbatim}
@@ -29,27 +25,22 @@
     \cover{\UPLOWFadingImage[trim={0 {.9\paperheight} 0 0},clip]{cover}
                             [trim={0 {.5\paperheight} 0 0},clip]{cover}}
     \title{\scshape The \pkg{LiteBook} Template}
-    \subtitle{Version 0.2a \today}        \author{Hsia Mingyu}
+    \subtitle{Version 0.2b \today}        \author{Hsia Mingyu}
     \bioinfo{Hangzhou Dianzi University}
     \press{\scshape The University of Chicago Press}
 \end{verbatim}
 
-The same as the \pkg{book} class, the command \cmd{title} could not be omitted, or it will return an error, and there will be a warning if the command \cmd{author} is omitted. The \cmd{cover} can assign the format of the image on the cover and you can adjust the format of the image with the \pkg{fadingimage} package.
+The same as the \pkg{book} class, the macro \cmd{title} could not be omitted, or it will return an error, and there will be a warning if the macro \cmd{author} is omitted. The \cmd{cover} can assign the format of the image on the cover and you can adjust the format of the image with the \pkg{fadingimage} package.
 
-\section{Global options of this template}
-
+\section{Math options of this template}
 \begin{verbatim}
-    \documentclass[<math>,<thmstyle>]{litebook}
+    \documentclass[<math>]{litebook}
 \end{verbatim}
 
-\begin{itemize}
-    \item The \mode{math} option can set the math font to be \mode{newtx} (default) or \mode{mtpro2}.
-    \item The \mode{thmstyle} option can set the style of \pkg{amsthm} environments be the \pkg{mdframed} (default) or \pkg{amsthm}.
-\end{itemize}
+You can set the math font to be \mode{newtx} (default) or \mode{mtpro2}.
 
 \section{Preset packages and commands}
-
-This template has been preset with the following packages:
+This template has preset with the following packages:
 \begin{table}[!ht]
     \centering
     \begin{tabular}{l l l l l l l l}
@@ -58,7 +49,7 @@
         \midrule
         \pkg{nicematrix} & \pkg{physics2} & \pkg{refstyle} & \pkg{siunitx} & \pkg{booktabs} & \pkg{diagbox} & \pkg{fontawesome5} & \pkg{geometry}\\
         \midrule
-        \pkg{indentfirst} & \pkg{mdframed} & \pkg{multicol} & \pkg{multirow} & \pkg{setspace} & \pkg{tabularx} & \pkg{tcolorbox} & \pkg{tikz}\\
+        \pkg{indentfirst} & \pkg{mdframed} & \pkg{multicol} & \pkg{multirow} & \pkg{setspace} & \pkg{tabularx} & \pkg{tikz} & \pkg{xcolor}\\
         \bottomrule
     \end{tabular}
 \end{table}
@@ -68,18 +59,18 @@
 And commands \verb|\i|, \verb|\e|, \verb|\T| have been defined to input 
 $\i$, $\e$ in roman (non-italic) text and matrix transpose symbol $\T$, which can help you typeset math quickly.
 
-The template has been preset the following reference command via \pkg{refstyle} package: \verb|\eqref{<label>}|, \verb|\figref{<label>}| and \verb|\tabref{<label>}|, you can add other ref commands via \pkg{refstyle} package.
+The template has preset the following commands for different type of references via \pkg{refstyle} package: \verb|\eqref{<label>}|, \verb|\figref{<label>}| and \verb|\tabref{<label>}|, you can add other ref commands via \pkg{refstyle} package.
 
-\section{Equation Test}
-
+\section{Equation test}
 The following is the Schr\"odinger Equation
 \begin{equation}
-    \i\hbar\pdv{}t\Psi(x,t)=\ab[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V(x,t)]\Psi(x,t)
+    \i\hbar\pdv{}t\Psi(\bm r,t)=\ab[-\frac{\hbar^2}{2m}\nabla^2+V(\bm r,t)]\Psi(\bm r,t)
+    \label{1.7.1}
 \end{equation}
 
-The above equations are the integral formula of the Maxwell's Equations in Gaussian units.
+\Eqref{1.7.1} is the time-dependent Schr\"odinger Equation for the nonrelativistic particle.
 
-\section{Figure and Caption Side by Side Test}
+\section{Figure and caption side by side test}
 \begin{figure}[htbp]
 \begin{minipage}{.32\textwidth}
     \caption{A diagram showing the causal structure of spacetime in special relativity. The ``light cone'' of $p$ rather than a ``surface of simultaneity'' with $p$ now plays a fundamental role in determining the causal relationship of $p$ to other events.}
@@ -106,54 +97,4 @@
 \end{minipage}
 \end{figure}
 
-Here, \figref{1.1} is a diagram showing the causal structure of spacetime in special relativity.
-
-\section{Preset Environments}
-
-\begin{verbatim}
-    \begin{<theoremname>} ... \end{<theoremname>}   \begin{axiom} ... \end{axiom}
-\end{verbatim}
-
-\begin{definition}[The Definition Environment]\leavevmode\newline
-    From WikipediA: A definition is used to give a precise meaning to a new term, by describing a condition which unambiguously qualifies what a mathematical term is and is not.
-\end{definition}
-
-\begin{theorem}[The Theorem Environment]\leavevmode\newline
-    From WikipediA: A theorem is a statement that has been proved, or can be proved.
-\end{theorem}
-
-\begin{lemma}[The Lemma Environment]\leavevmode\newline
-    From WikipediA: In mathematics, informal logic and argument mapping, a lemma (pl.: lemmas or lemmata) is a generally minor, proven proposition which is used as a stepping stone to a larger result. For that reason, it is also known as a ``helping theorem'' or an ``auxiliary theorem''.
-\end{lemma}
-
-\begin{corollary}[The Corollary Environment]\leavevmode\newline
-    From WikipediA: A corollary is a theorem of less importance which can be readily deduced from a previous, more notable statement.
-\end{corollary}
-
-\begin{proposition}[The Proposition Environment]\leavevmode\newline
-    From WikipediA: A proposition is a central concept in the philosophy of language, semantics, logic, and related fields, often characterized as the primary bearer of truth or falsity.
-\end{proposition}
-
-\begin{postulate}[The Postulate Environment]\leavevmode\newline
-    From WikipediA: A postulate is a statement everyone agrees to be correct.
-\end{postulate}
-
-\begin{axiom}[The Axiom Environment]\leavevmode\newline
-    From WikipediA: An axiom is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments.
-\end{axiom}
-
-\begin{remark}[The Remark Environment]\leavevmode\newline
-    From Math StackExchange: The remark device is used for material that is is too long to be included in parentheses, while it deserves greater prominence than a footnote.
-\end{remark}
-
-\begin{example}
-    From Cambridge Dictionary: The example is a way of helping someone to understand something by showing them how it is used.
-\end{example}
-
-\begin{problem}
-    From Springer: A problem is generally considered to be a task, a situation, or person which is difficult to deal with or control due to complexity and intransparency.
-\end{problem}
-
-\begin{solution}
-    The quick brown fox jumps over the lazy dog.
-\end{solution}
+Here, \figref{1.1} is a diagram showing the causal structure of spacetime in special relativity.
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/litebook/cha/cha2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litebook/cha/cha2.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litebook/cha/cha2.tex	2024-03-26 20:15:33 UTC (rev 70777)
@@ -0,0 +1,49 @@
+\chapter{Appendix: Package \pkg{thmlist}}
+
+This template has preset two \emph{styles} of theorem environment via the \pkg{thmlist} package, you can create a series of environments with the two styles
+\begin{verbatim}
+    \mdflist{theorem,   lemma,        definition,   proposition,    postulate;
+             Theorem,   Lemma,        Definition,   Proposition,    Postulate;
+             DarkGreen, MidnightBlue, MidnightBlue, DarkOliveGreen, Indigo}
+    \amslist{remark,    example,      problem,      solution;
+             Remark,    Example,      Problem,      Solution;
+             DarkRed,   Teal,         Black,        Black}
+\end{verbatim}
+
+You can add the environments like the two commands above as you need. For more information, please refer to the document of the \pkg{thmlist} package. The following are the effects of the two styles.
+
+The next five environments show the style of the \pkg{mdframed} package.
+
+\begin{theorem}[The Theorem Environment]\leavevmode\newline
+    From WikipediA: A theorem is a statement that has been proved, or can be proved.
+\end{theorem}
+
+\begin{lemma}[The Lemma Environment]\leavevmode\newline
+    From WikipediA: In mathematics, informal logic and argument mapping, a lemma (pl.: lemmas or lemmata) is a generally minor, proven proposition which is used as a stepping stone to a larger result. For that reason, it is also known as a ``helping theorem'' or an ``auxiliary theorem''.
+\end{lemma}
+
+\begin{definition}[The Definition Environment]\leavevmode\newline
+    From WikipediA: A definition is used to give a precise meaning to a new term, by describing a condition which unambiguously qualifies what a mathematical term is and is not.
+\end{definition}
+
+\begin{proposition}[The Proposition Environment]\leavevmode\newline
+    From WikipediA: A proposition is a central concept in the philosophy of language, semantics, logic, and related fields, often characterized as the primary bearer of truth or falsity.
+\end{proposition}
+
+\begin{postulate}[The Postulate Environment]\leavevmode\newline
+    From WikipediA: A postulate is a statement everyone agrees to be correct.
+\end{postulate}
+
+The next four environments show the style of the \pkg{amsthm} package.
+
+\begin{remark}[The Remark Environment]\leavevmode\newline
+    From Math StackExchange: The remark device is used for material that is is too long to be included in parentheses, while it deserves greater prominence than a footnote.
+\end{remark}
+
+\example{
+    From Cambridge Dictionary: The example is a way of helping someone to understand something by showing them how it is used.}
+
+\problem{
+    From Springer: A problem is generally considered to be a task, a situation, or person which is difficult to deal with or control due to complexity and intransparency.}
+
+\solution{The quick brown fox jumps over the lazy dog.}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litebook/cha/cha2.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/litebook/cha/scha.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litebook/cha/scha.tex	2024-03-26 20:15:20 UTC (rev 70776)
+++ trunk/Master/texmf-dist/doc/latex/litebook/cha/scha.tex	2024-03-26 20:15:33 UTC (rev 70777)
@@ -1,3 +0,0 @@
-\chapter*{A Test to Unnumbered Chapter}
-
-\lipsum[1-6]
\ No newline at end of file

Modified: trunk/Master/texmf-dist/doc/latex/litebook/litebook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litebook/litebook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litebook/litebook.tex	2024-03-26 20:15:20 UTC (rev 70776)
+++ trunk/Master/texmf-dist/doc/latex/litebook/litebook.tex	2024-03-26 20:15:33 UTC (rev 70777)
@@ -1,20 +1,32 @@
-\documentclass[
-    math     = newtx,
-    thmstyle = mdframed
-]{litebook}
+\documentclass{litebook}
 
 \cover{\UPLOWFadingImage[trim={0 {.9\paperheight} 0 0},clip]{cover}
                         [trim={0 {.5\paperheight} 0 0},clip]{cover}}
-\title{\scshape The \pkg{LiteBook} Template}
-\subtitle{Version 0.2a \today}
+\title{The \pkg{LiteBook} Template}
+\subtitle{Version 0.2b \today}
 \author{Hsia Mingyu}
 \bioinfo{Hangzhou Dianzi University}
 \press{\scshape\textcolor{teal}{\faIcon{telegram-plane}}Hangzhou in Late Spring 2024}
 
+\mdflist{theorem,   lemma,        definition,   proposition,    postulate;
+         Theorem,   Lemma,        Definition,   Proposition,    Postulate;
+         DarkGreen, MidnightBlue, MidnightBlue, DarkOliveGreen, Indigo}
+\amslist{remark,    example,      problem,      solution;
+         Remark,    Example,      Problem,      Solution;
+         DarkRed,   Teal,         Black,        Black}
+
 \begin{document}
 
-\maketitle\frontmatter\tableofcontents\mainmatter
+\let\theremark=\relax
+\def\theproblem{\arabic{problem}}
+\def\theexample{\arabic{example}}
+\let\thesolution=\relax
+
+\maketitle
+\frontmatter
+\tableofcontents
+\mainmatter
 \input{cha/cha1.tex}
-\input{cha/scha.tex}
+\input{cha/cha2.tex}
 
 \end{document}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/litebook/litebook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litebook/litebook.cls	2024-03-26 20:15:20 UTC (rev 70776)
+++ trunk/Master/texmf-dist/tex/latex/litebook/litebook.cls	2024-03-26 20:15:33 UTC (rev 70777)
@@ -19,7 +19,8 @@
 %% ****************************************************************************************************
 % !Mode:: "TeX:UTF-8"
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{litebook}[2024/03/18 v0.2a LiteBook document class]
+\PassOptionsToPackage{quiet}{xeCJK}
+\ProvidesClass{litebook}[2024/03/26 v0.2b LiteBook document class]
 \RequirePackage{kvoptions}
 \RequirePackage{etoolbox}
 \SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
@@ -29,16 +30,12 @@
 \DeclareVoidOption{newtx}{\ekv{math=newtx}}
 \DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
 
-\DeclareStringOption[mdframed]{thmstyle}
-\DeclareVoidOption{mdframed}{\ekv{thmstyle=mdframed}}
-\DeclareVoidOption{amsthm}{\ekv{thmstyle=amsthm}}
-
 \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
 \ProcessKeyvalOptions*\relax
-\LoadClass[letterpaper,11pt,openany]{book}
+\LoadClass[letterpaper,11pt,openright]{book}
 
 \RequirePackage{geometry,indentfirst,setspace,enumitem,booktabs,tabularx,diagbox,multicol,multirow}
-\geometry{lmargin = .8 in,rmargin = 1.2 in,tmargin= 1 in,bmargin= 1 in}
+\geometry{lmargin = .8 in,rmargin = 1.2 in,tmargin = 1 in,bmargin = 1 in}
 \setlength{\headheight}{13.6pt}
 
 \RequirePackage{lipsum,hologo}
@@ -45,12 +42,11 @@
 \hologoFontSetup{general=\sffamily}
 \RequirePackage{ifxetex}
 \ifXeTeX
-  \RequirePackage[quiet]{xeCJK}
+  \RequirePackage{ctex}
   \RequirePackage[quiet,no-math]{fontspec}
   \RequirePackage{zhlipsum}
-  \setlength{\parindent}{2em}
 \else
-  \setlength{\parindent}{2ex}
+  \usepackage[T1]{fontenc}
 \fi
 
 \RequirePackage{graphics,graphicx}
@@ -58,9 +54,9 @@
 
 \RequirePackage[labelsep=period,labelfont={bf,sf},font=small]{caption}
 \RequirePackage[nokeyprefix]{refstyle}
-\newref{eq}{refcmd=(\ref{#1}),name={\sffamily Eq.~}}
-\newref{fig}{name={\sffamily\bfseries Figure~}}
-\newref{tab}{name={\sffamily\bfseries Table~}}
+\newref{eq}{refcmd=(\ref{#1}),name={\sffamily eq.~},Name={\sffamily Eq.~}}
+\newref{fig}{name={\sffamily fig.~},Name={\sffamily Fig.~}}
+\newref{tab}{name={\sffamily tab.~},Name={\sffamily Tab.~}}
 
 \RequirePackage{tocloft}
 \setlength{\cftbeforetoctitleskip}{6\p@}
@@ -84,7 +80,6 @@
     \huge\bfseries\sffamily #1\par\nobreak
     \vskip 36\p@
 }}
-
 \def\@makeschapterhead#1{%
   \gdef\s at chapter{#1}
   \addcontentsline{toc}{chapter}{\s at chapter}
@@ -95,24 +90,30 @@
     \huge \bfseries \sffamily  #1\par\nobreak
     \vskip 40\p@
 }}
-
 \let\cleardoublepage=\clearpage
-\makeatletter
 \renewcommand*{\cleardoublepage}{\clearpage\if at twoside \ifodd\c at page\else
+\ifnum \thechapter=0
   \vspace*{\fill}
     {\centering\itshape\Large This page was intentionally left blank.\par}
   \vspace{\fill}
-\thispagestyle{empty}
-\newpage
+\else
+  \clearpage%
+  \thispagestyle{empty}%
+  \null\clearpage
+\fi
+\thispagestyle{empty}\newpage
 \if at twocolumn\hbox{}\newpage\fi\fi\fi}
 
 \RequirePackage{fancyhdr}
 \pagestyle{fancy}
-  \fancyhead[OL]{\textsc{\sffamily\nouppercase\leftmark}}
-  \fancyhead[OR]{\sffamily\thepage}
-  \fancyhead[ER]{\textsc{\sffamily\nouppercase\rightmark}}
-  \fancyhead[EL]{\sffamily\thepage}
-  \lfoot{}\cfoot{}\rfoot{}
+  \let\oldheadrule\headrule
+  \renewcommand{\headrule}{{\color{gray}\oldheadrule}}
+  \renewcommand{\headrulewidth}{1pt}
+  \fancyhead[OL]{\textsc{\color{darkgray}\sffamily\nouppercase\leftmark}}
+  \fancyhead[OR]{\color{darkgray}\sffamily\thepage}
+  \fancyhead[ER]{\textsc{\color{darkgray}\sffamily\nouppercase\rightmark}}
+  \fancyhead[EL]{\color{darkgray}\sffamily\thepage}
+  \cfoot{}
 
 \RequirePackage{tikz}
 \usetikzlibrary{arrows,tikzmark,patterns,calc}
@@ -119,11 +120,10 @@
 \RequirePackage{fadingimage}
 \tikzset{>=stealth',
 every picture/.append style={%
-    line join=round,
-    line cap=round,
+    line join = round,
+    line cap  = round,
     thick
-  }
-}
+}}
 
 \RequirePackage[fixed]{fontawesome5}
 \AddToHook{cmd/faIcon/before}{%
@@ -132,14 +132,10 @@
 \AddToHook{cmd/faIcon/after}{\endgroup}
 
 \RequirePackage[svgnames]{xcolor}
-\definecolor{pkgcolor}{Hsb}{103,.8,.5}
-\definecolor{moducolor}{Hsb}{290,.8,.5}
-\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\RequirePackage[colorlinks,linkcolor=cmdcolor,urlcolor=pkgcolor]{hyperref}
-\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{%
-    \href{https://ctan.org/pkg/#1}{\textsf{#1}}}}{“#1”}}
-\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
-\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
+\RequirePackage[colorlinks,linkcolor=DarkGreen,urlcolor=Teal]{hyperref}
+\def\pkg#1{\textcolor{DarkGreen}{\textsf{#1}}}
+\def\mode#1{\textcolor{Indigo}{\textsf{#1}}}
+\def\cmd#1{\textcolor{MidnightBlue}{\texttt{\string#1}}}
 
 \RequirePackage{datetime}\yyyymmdddate
 \def\subtitle#1{\gdef\@subtitle{#1}}
@@ -153,11 +149,7 @@
 \renewcommand*\maketitle{%
 \begin{titlepage}
   \newgeometry{margin = 0 in}
-    \ifcsname @cover\endcsname
-      \@cover\vskip75\p@
-    \else
-      \vspace*{75\p@}
-    \fi
+    \ifcsname @cover\endcsname\@cover\vskip80\p@\else\vspace*{80\p@}\fi
     \parindent=0pt
     \centering\sffamily\bfseries
     \HUge\@title\normalfont
@@ -171,7 +163,7 @@
       \parbox[t]{\textwidth}{\centering
         \sffamily\bfseries\large\@press\normalfont\vskip75\p@}\fi
     \clearpage
-    \vspace*{\fill}\normalfont
+    \vspace*{\fill}
       {\centering \Huge\sffamily\bfseries\itshape\@title\par}
     \vspace{\fill}
   \restoregeometry
@@ -183,58 +175,26 @@
   \RequirePackage[mtpscr,mtpccal,mtpfrak]{mtpro2}
   \RequirePackage[mono=false]{libertine}
 }{\relax}
-
 \ifdefstring{\LITE at math}{newtx}{%
   \RequirePackage[libertine,mono=false]{newtx}
 }{\relax}
-
 \let\openbox\relax\def\hmmax{0}\def\bmmax{0}
 \RequirePackage{physics2,bm,fixdif,derivative,cancel,extarrows,siunitx,nicefrac,nicematrix}
 \usephysicsmodule{ab,braket,diagmat,doubleprod,xmat,ab.legacy,op.legacy}
 \RequirePackage[e]{esvect}
-\def\i{\mathrm i}\def\e{\mathrm e}\def\T{\mathsf T}
+\def\i{\mathrm i}
+\def\e{\mathrm e}
+\def\T{\mathsf T}
+\AtBeginDocument{%
+  \setlength{\abovedisplayskip}{9pt}
+  \setlength{\belowdisplayskip}{9pt}
+}
 \numberwithin{equation}{section}
-
-\RequirePackage{amsthm,mdframed,listofitems}
-\setsepchar{;/,}\ignoreemptyitems
-\theoremstyle{definition}
-\def\th at definition{\thm at notefont{}\normalfont}
-\readlist*\thmlist{%
-  theorem,   lemma,        definition,   corollary, proposition, postulate, axiom,  remark;
-  DarkGreen, MidnightBlue, MidnightBlue, Olive,     Olive,       Indigo,    Indigo, DarkRed
-}
-\ifnum \listlen\thmlist[1]<\listlen\thmlist[2]
-  \def\thmnum{\listlen\thmlist[1]}
-\else
-  \def\thmnum{\listlen\thmlist[2]}
-\fi
-
-\ifdefstring{\LITE at thmstyle}{mdframed}{%
-  \foreach \x in {1,...,\thmnum}{\expandafter\xdef\csname\x\x\endcsname{\noexpand
-  \newmdtheoremenv[
-    skipabove=0pt,          skipbelow=0pt,
+\RequirePackage[amscounter=section,amsstyle=definition,
+                mdfcounter=section,mdfstyle=mdflist]{thmlist}
+\mdfsetup{skipabove=2pt,skipbelow=2pt}
+\mdfdefinestyle{mdflist}{%
     hidealllines=true,      leftline=true,
-    linewidth=.5ex,         linecolor=\thmlist[2,\x],
-    innerleftmargin=1.5ex,  innerrightmargin=0pt,
-    innertopmargin=-1.5ex,  innerbottommargin=.5ex]
-  {\thmlist[1,\x]}
-  {\noexpand\color{\thmlist[2,\x]}\noexpand\sffamily\expandafter\MakeUppercase\expanded{\thmlist[1,\x]}}[chapter]
-}}
-}{\relax}
-
-\ifdefstring{\LITE at thmstyle}{amsthm}{%
-  \foreach \x in {1,...,\thmnum}{\expandafter\xdef\csname\x\x\endcsname{\noexpand
-  \newtheorem
-  {\thmlist[1,\x]}
-  {\noexpand\color{\thmlist[2,\x]}\noexpand\sffamily\expandafter\MakeUppercase\expanded{\thmlist[1,\x]}}[chapter]
-}}
-}{\relax}
-
-\foreach \x in {1,...,\thmnum}{\csname\x\x\endcsname}
-\let\theremark=\relax
-
-\newtheorem{example}{\sffamily\color{Teal} Example}[chapter]
-\def\theexample{\arabic{example}}
-\newtheorem{problem}{\sffamily Problem}[chapter]
-\def\theproblem{\arabic{problem}}
-\newtheorem*{solution}{\sffamily Solution}
\ No newline at end of file
+    linewidth=.5ex,         innerleftmargin=1.5ex,
+    innerrightmargin=0pt,   innertopmargin=-1.75ex,
+    innerbottommargin=0pt}
\ No newline at end of file



More information about the tex-live-commits mailing list.