summaryrefslogtreecommitdiff
path: root/macros/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-11 03:02:52 +0000
committerNorbert Preining <norbert@preining.info>2024-03-11 03:02:52 +0000
commitd0e99dfc632984d24851f9160409ef583a011f48 (patch)
treec4135f83059d24d568e89d91b17d94d64dc4f371 /macros/latex
parent0977b5581b838e81912bc5f34fff3672359e236a (diff)
CTAN sync 202403110302
Diffstat (limited to 'macros/latex')
-rw-r--r--macros/latex/contrib/fadingimage/doc/fadingimage.pdfbin135401 -> 135453 bytes
-rw-r--r--macros/latex/contrib/fadingimage/doc/fadingimage.tex5
-rw-r--r--macros/latex/contrib/fadingimage/tex/fadingimage.sty6
-rw-r--r--macros/latex/contrib/litebook/doc/cha/cha1.tex93
-rw-r--r--macros/latex/contrib/litebook/doc/litebook.pdfbin723924 -> 721987 bytes
-rw-r--r--macros/latex/contrib/litebook/doc/litebook.tex4
-rw-r--r--macros/latex/contrib/litebook/tex/litebook.cls27
-rw-r--r--macros/latex/contrib/litesolution/README.md11
-rw-r--r--macros/latex/contrib/litesolution/doc/Beautiful-realities.jpegbin0 -> 94115 bytes
-rw-r--r--macros/latex/contrib/litesolution/doc/figures/HDU.pdfbin22462 -> 0 bytes
-rw-r--r--macros/latex/contrib/litesolution/doc/figures/cover1.pngbin481466 -> 0 bytes
-rw-r--r--macros/latex/contrib/litesolution/doc/litesolution-doc.tex284
-rw-r--r--macros/latex/contrib/litesolution/doc/litesolution.pdfbin612010 -> 542691 bytes
-rw-r--r--macros/latex/contrib/litesolution/doc/litesolution.tex167
-rw-r--r--macros/latex/contrib/litesolution/tex/litesolution.cls623
-rw-r--r--macros/latex/contrib/litesolution/tex/titleimage.sty20
16 files changed, 382 insertions, 858 deletions
diff --git a/macros/latex/contrib/fadingimage/doc/fadingimage.pdf b/macros/latex/contrib/fadingimage/doc/fadingimage.pdf
index 9e7f64be16..4b7e4535d5 100644
--- a/macros/latex/contrib/fadingimage/doc/fadingimage.pdf
+++ b/macros/latex/contrib/fadingimage/doc/fadingimage.pdf
Binary files differ
diff --git a/macros/latex/contrib/fadingimage/doc/fadingimage.tex b/macros/latex/contrib/fadingimage/doc/fadingimage.tex
index 2ed7690ec6..a5a88ec226 100644
--- a/macros/latex/contrib/fadingimage/doc/fadingimage.tex
+++ b/macros/latex/contrib/fadingimage/doc/fadingimage.tex
@@ -8,7 +8,8 @@
\definecolor{pkgcolor}{Hsb}{103,.8,.5}
\definecolor{moducolor}{Hsb}{290,.8,.5}
\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
+\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”}}
\def\datechange#1#2{%
@@ -19,7 +20,7 @@
\author{Hsia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
\yyyymmdddate\date{\today}
\affil{\href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com}}
-\date{\today\quad Version 0.1b\thanks{\url{https://github.com/xiamyphys/FadingImage}}}
+\date{\today\quad Version 0.1c\thanks{\url{https://github.com/xiamyphys/FadingImage}}}
\begin{document}
\maketitle
\UPFadingImage[trim={0 {.96\paperheight} 0 0},clip]{Beautiful-realities}
diff --git a/macros/latex/contrib/fadingimage/tex/fadingimage.sty b/macros/latex/contrib/fadingimage/tex/fadingimage.sty
index 09a433a0ea..bde2e592cc 100644
--- a/macros/latex/contrib/fadingimage/tex/fadingimage.sty
+++ b/macros/latex/contrib/fadingimage/tex/fadingimage.sty
@@ -18,11 +18,11 @@
%% available at https://github.com/xiamyphys/FadingImage *
%% ****************************************************************************************************
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesPackage{fadingimage}[2024/03/09/ v0.1b Package for adding fading full width picture at the top or bottom of a page.]
+\ProvidesPackage{fadingimage}[2024/03/11/ v0.1c Package for adding fading full width picture at the top or bottom of a page.]
\RequirePackage{tikz,xcolor}
\usetikzlibrary{fadings}
-\NewDocumentCommand{\UPFadingImage}{ s o m }{
+\NewDocumentCommand{\UPFadingImage}{ s O{} m }{
\IfBooleanTF{#1}{
\tikz[remember picture,overlay]
\node[below,inner sep=0pt,outer sep=auto] at (current page.north) {\includegraphics[width=\paperwidth,#2]{#3}};
@@ -31,7 +31,7 @@
\node[scope fading=south,below,inner sep=0pt,outer sep=auto] at (current page.north) {\includegraphics[width=\paperwidth,#2]{#3}};
}
}
-\NewDocumentCommand{\LOWFadingImage}{ s o m }{
+\NewDocumentCommand{\LOWFadingImage}{ s O{} m }{
\IfBooleanTF{#1}{
\tikz[remember picture,overlay]
\node[above,inner sep=0pt,outer sep=auto] at (current page.south) {\includegraphics[width=\paperwidth,#2]{#3}};
diff --git a/macros/latex/contrib/litebook/doc/cha/cha1.tex b/macros/latex/contrib/litebook/doc/cha/cha1.tex
index 2f946f844b..09ca12e996 100644
--- a/macros/latex/contrib/litebook/doc/cha/cha1.tex
+++ b/macros/latex/contrib/litebook/doc/cha/cha1.tex
@@ -22,7 +22,7 @@ The test environments are macOS + Mac\TeX{} 2024 / Overleaf and they all work fi
Just like the cover of this document, there are 5 lines of information on the cover and a cover image, the corresponding commands are
\begin{verbatim}
- \title{The \pkg{LiteBook} Template} \subtitle{Version 0.1a \today}
+ \title{The \pkg{LiteBook} Template} \subtitle{Version 0.1b \today}
\press{The University of Chicago Press} \author{Hsia Mingyu}
\bioinfo{Hangzhou Dianzi University} \cover{Beautiful-realities.jpeg}
\end{verbatim}
@@ -33,13 +33,13 @@ Here, the same as the \pkg{book} class, the command \cmd{title} could not be omi
This package has been preset with the following packages:
\begin{table}[!ht]
\centering
- \begin{tabular}{l l l l l l}
+ \begin{tabular}{l l l l l l l}
\toprule
- \pkg{amsmath} & \pkg{amssymb} & \pkg{mathrsfs} & \pkg{esvect} & \pkg{physics2,fixdif} & \pkg{bm}\\
+ \pkg{amsmath} & \pkg{amssymb} & \pkg{mathrsfs} & \pkg{esvect} & \pkg{physics2} & \pkg{fixdif} & \pkg{bm}\\
\midrule
- \pkg{derivative} & \pkg{cancel} & \pkg{extarrows} & \pkg{siunitx} & \pkg{nicefrac} & \pkg{nicematrix}\\
+ \pkg{derivative} & \pkg{cancel} & \pkg{extarrows} & \pkg{siunitx} & \pkg{nicefrac} & \pkg{nicematrix} & \pkg{booktabs}\\
\midrule
- \pkg{booktabs} & \pkg{tabularx} & \pkg{diagbox} & \pkg{multicol} & \pkg{multirow} & \pkg{refstyle}\\
+ \pkg{tabularx} & \pkg{diagbox} & \pkg{multicol} & \pkg{multirow} & \pkg{refstyle} & \pkg{tcolorbox} & \pkg{fontawesome5}\\
\bottomrule
\end{tabular}
\end{table}
@@ -49,36 +49,54 @@ You can click on them to go to the homepage to view the documentation.
And commands \verb|\i|, \verb|\e|, \verb|\T| has 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 with the \pkg{refstyle} package: \verb|\eqref{#1}|, \verb|\figref{#1}| and \verb|tabref{#1}|, you can add other commands like these with the \pkg{refstyle} package.
+The template has been preset the following reference command via \pkg{refstyle} package: \verb|\eqref{#1}|, \verb|\figref{#1}| and \verb|\tabref{#1}|, you can add other commands like these via \pkg{refstyle} package.
\section{Preset Environments}
-The template has been preset the following envrionments with the \pkg{amsthm} package
-
-\begin{tcblisting}{sidebyside}
- \begin{theorem}
- A theorem environment.
- \end{theorem}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{example}
- An example environment.
- \end{example}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{problem}
- A problem environment.
- \end{problem}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{solution}
- A solution environment.
- \end{solution}
-\end{tcblisting}
-
-You can add other envrionments like these with the \pkg{amsthm} package.
+The following environments have been preset, you can add other environments via the \pkg{amsthm} package.
+
+\begin{multicols}{2}
+
+\begin{definition}
+ A definition environment.
+\end{definition}
+
+\begin{theorem}
+ A theorem environment.
+\end{theorem}
+
+\begin{lemma}
+ A lemma environment.
+\end{lemma}
+
+\begin{corollary}
+ A corollary environment.
+\end{corollary}
+
+\begin{postulate}
+ A postulate environment.
+\end{postulate}
+
+\begin{axiom}
+ An axiom environment.
+\end{axiom}
+
+\begin{proposition}
+ A proposition environment.
+\end{proposition}
+
+\begin{example}
+ An example environment.
+\end{example}
+
+\begin{problem}
+ A problem environment.
+\end{problem}
+
+\begin{solution}
+ A solution environment.
+\end{solution}
+
+\end{multicols}
\section{Equation Test}
\begin{equation}
@@ -115,11 +133,4 @@ The Klein-Gordon \eqref{1.6.1}.
\end{minipage}
\end{figure}
-\figref{1.1} shows the Light Cone.
-
-\section{Warnings}
-
-Due to the template has used the \pkg{FadingImage} package to add a fading image on the cover, when you use the \hologo{pdfLaTeX} compiler, should run it for two times or the cover image will not appear on the correct location, also, there will be a double question mark when referring to labels.
-
-
-% amsthm \ No newline at end of file
+\figref{1.1} shows the Light Cone. \ No newline at end of file
diff --git a/macros/latex/contrib/litebook/doc/litebook.pdf b/macros/latex/contrib/litebook/doc/litebook.pdf
index d361e0fef4..9172a5c78f 100644
--- a/macros/latex/contrib/litebook/doc/litebook.pdf
+++ b/macros/latex/contrib/litebook/doc/litebook.pdf
Binary files differ
diff --git a/macros/latex/contrib/litebook/doc/litebook.tex b/macros/latex/contrib/litebook/doc/litebook.tex
index dc6f146490..39ce87706e 100644
--- a/macros/latex/contrib/litebook/doc/litebook.tex
+++ b/macros/latex/contrib/litebook/doc/litebook.tex
@@ -2,17 +2,17 @@
\documentclass{litebook}
\title{The \pkg{LiteBook} Template}
-\subtitle{Version 0.1a \today}
+\subtitle{Version 0.1c \today}
\press{The University of Chicago Press}
\author{Hsia Mingyu}
\bioinfo{Hangzhou Dianzi University}
\cover{Beautiful-realities}
\begin{document}
-
\maketitle
\frontmatter\tableofcontents\mainmatter
\input{cha/cha1.tex}
\input{cha/scha.tex}
+
\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/litebook/tex/litebook.cls b/macros/latex/contrib/litebook/tex/litebook.cls
index e61bd5b7bb..92de10dd3e 100644
--- a/macros/latex/contrib/litebook/tex/litebook.cls
+++ b/macros/latex/contrib/litebook/tex/litebook.cls
@@ -19,7 +19,7 @@
%% ****************************************************************************************************
% !Mode:: "TeX:UTF-8"
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{litebook}[2024/03/10 v0.1a LiteBook document class]
+\ProvidesClass{litebook}[2024/03/11 v0.1c LiteBook document class]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
@@ -30,7 +30,7 @@
\geometry{rmargin=1.25 in,lmargin=.75 in,tmargin=1 in,bmargin=1 in}
\RequirePackage{graphics,graphicx}
-\graphicspath{{./figures/}}
+\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\RequirePackage{indentfirst}
\setlength{\parindent}{2ex}
@@ -84,7 +84,7 @@
\lfoot{}\cfoot{}\rfoot{}
\RequirePackage[most]{tcolorbox}
-\RequirePackage{tikz}
+\RequirePackage{tikz,fontawesome5}
\usetikzlibrary{arrows,tikzmark,patterns,calc}
\RequirePackage{fadingimage}
\tikzset{>=stealth',
@@ -109,9 +109,10 @@ every picture/.append style={
\begin{titlepage}
\newgeometry{margin = 0 in}
\ifcsname @cover\endcsname
+ \UPFadingImage[trim={0 {.9\paperheight} 0 0},clip]{\@cover}
\LOWFadingImage[trim={0 {.5\paperheight} 0 0},clip]{\@cover}
\fi
- \parindent=0pt\vskip12ex
+ \parindent=0pt\vskip75\p@
\centering\sffamily\bfseries
\HUge\@title
\ifcsname @subtitle\endcsname
@@ -122,8 +123,7 @@ every picture/.append style={
\vskip2ex\Large\@bioinfo\fi
\ifcsname @press\endcsname\vfill
\parbox[t]{\textwidth}{\centering
- \Large\@press\vskip10ex
- }\fi
+ \Large\@press\vskip75\p@}\fi
\clearpage
\vspace*{\fill}
\Huge\itshape\@title
@@ -163,13 +163,18 @@ every picture/.append style={
\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}
\theoremstyle{definition}
-\newtheorem{problem}{Problem}[section]
-\newtheorem{theorem}{Theorem}[section]
+\newtheorem{definition}{\sffamily\color{pkgcolor} Definition}[section]
+\newtheorem{theorem}{\sffamily\color{moducolor} Theorem}[section]
+\newtheorem{lemma}{\sffamily\color{moducolor} Lemma}[section]
+\newtheorem{corollary}{\sffamily\color{moducolor}Corollary}[section]
+\newtheorem{postulate}{\sffamily\color{moducolor}Postulate}[section]
+\newtheorem{axiom}{\sffamily\color{moducolor}Axiom}[section]
+\newtheorem{proposition}{\sffamily\color{cmdcolor}Proposition}[section]
+\newtheorem*{example}{\sffamily Example}
+\newtheorem{problem}{\sffamily Problem}[chapter]
\def\theproblem{\arabic{problem}}
-\newtheorem*{example}{Example}
-\newtheorem*{solution}{Solution}
+\newtheorem*{solution}{\sffamily Solution}
\numberwithin{equation}{section} \ No newline at end of file
diff --git a/macros/latex/contrib/litesolution/README.md b/macros/latex/contrib/litesolution/README.md
index a099ca4c3c..a7a7996604 100644
--- a/macros/latex/contrib/litesolution/README.md
+++ b/macros/latex/contrib/litesolution/README.md
@@ -1,11 +1,6 @@
-# The `LiteSolution` document
-
-This template provides a light and fresh template, mainly used for typesetting solutions of final, textbook and other exercises.
-
-The template has been developed based on [ElegantBook](https://ctan.org/pkg/elegantbook) and [VividBooK](https://github.com/Azure1210/VividBooK) and has ported and improved the chapter design module code of the [Legrand Orange Book Template](https://www.overleaf.com/latex/templates/the-legrand-orange-book-template-english/jtctyfmnpppc).
-
-Modules of `LiteSolution` provide the following supports:
+# The `LiteSolution` package
+This template provides a fresh design for typesetting solutions of midterm or final exam, textbooks and other exercises.
**Welcome to pull requests
[here](https://github.com/xiamyphys/LiteSolution).**
@@ -19,4 +14,4 @@ either version 1.3c of this license or (at your option) any later version.
This work has the LPPL maintenance status `maintained`.
The Current Maintainer of this work is
-[Mingyu Xia](https://www.ctan.org/author/xia-my). \ No newline at end of file
+[Mingyu Hsia](https://www.ctan.org/author/xia-my). \ No newline at end of file
diff --git a/macros/latex/contrib/litesolution/doc/Beautiful-realities.jpeg b/macros/latex/contrib/litesolution/doc/Beautiful-realities.jpeg
new file mode 100644
index 0000000000..2b6036083d
--- /dev/null
+++ b/macros/latex/contrib/litesolution/doc/Beautiful-realities.jpeg
Binary files differ
diff --git a/macros/latex/contrib/litesolution/doc/figures/HDU.pdf b/macros/latex/contrib/litesolution/doc/figures/HDU.pdf
deleted file mode 100644
index 3fe790b9ee..0000000000
--- a/macros/latex/contrib/litesolution/doc/figures/HDU.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/litesolution/doc/figures/cover1.png b/macros/latex/contrib/litesolution/doc/figures/cover1.png
deleted file mode 100644
index e4e9e35789..0000000000
--- a/macros/latex/contrib/litesolution/doc/figures/cover1.png
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/litesolution/doc/litesolution-doc.tex b/macros/latex/contrib/litesolution/doc/litesolution-doc.tex
deleted file mode 100644
index 41e608614c..0000000000
--- a/macros/latex/contrib/litesolution/doc/litesolution-doc.tex
+++ /dev/null
@@ -1,284 +0,0 @@
-\chapter{The \pkg{LiteSolution} Template}
-\fancyhead[L]{\,\color{H7}\href{https://github.com/xiamyphys/litesolution}{\faIcon{github}\;\leftmark}}
-\fancyhead[R]{\color{H7}\rightmark\,}
-
-\centerline{Hsia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
-\yyyymmdddate
-\begin{center}
- \mailto{xiamyphys@gmail.com}
-
- \today,\quad Version 1.3a
-\end{center}
-
-This is the document for \pkg{LiteSolution} template, which provides a lite design of the solution of test paper.
-
-Some designs of this template currently only support \textbf{Simplified Chinese (Mainland)}. If necessary, you can change some Chinese characters to the language you want in the \verb|*.cls| file.
-
-\section{Introduction}
-\subsection{The purpose of this template}
-This template provides a lite and fresh template, and mainly used for typesetting solutions of mid-term or final exam, textbooks and other exercises. This template is developed based on \pkg{ElegantBook} and \href{https://github.com/Azure1210/VividBooK}{\pkg*{VividBooK}}, ported and improved the chapter design module code of \href{https://www.overleaf.com/latex/templates/the-legrand-orange-book-template-english/jtctyfmnpppc}{\pkg*{The Legrand Orange Book}}. I'd like to express my gratitude to the template authors above for their previous work.
-
-If you meet bugs when using this template, or you have better suggestions or ideas, or you want to participate in the development of the template or other templates by me, welcome to contact via email \href{mailto:xiamyphys@gmail.com}{xiamyphys@gmail.com}.
-
-Also, you can join my \textsf\LaTeX{} Template Discussion \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} to communicate with me and get the insider preview edition of the template.
-
-\subsection{Loading \pkg{LiteSolution} and its modes}
-
-You should update all the packages to the latest version or switch to portable version instead by implementing the commands
-\begin{verbatim}
- tlmgr update --self --all --reinstall-forcibly-removed
-\end{verbatim}
-
-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 TEX distribution?}
-
-Save the file \verb|litesolution.cls| to your project's root directory, and then create a \verb|.tex| file, just input the command \verb|\documentclass{litesolution}| on the first line.
-
-The template provides 3 modes, \mode{answer}, \mode{mtpro2} and \mode{counter}. Just add the options of the modes you want separately in the square bracket of the command \verb|\documentclass[options]{litesolution}| in your \verb|.tex| file.
-
-\section{Modes of \pkg{LiteSolution}}
-\subsection{The \mode{answer} mode}
-This mode has two options, \mode{ans} and \mode{noans}, which can show and hide answers respectively. After you choose the \mode{noans}, the contents in the environment \cmd{solution}, the command \cmd{ans} and the answers in the multiple choice questions will all disappear. So the area that originally contained the answer will be replaced by an area of the same blank size. You can generate exams without answers and solutions by enabling \mode{noans}.
-
-\subsection{The \mode{mtpro2} mode}
-If you've installed the \emph{Mathtime Pro 2 Lite} font in your computer, then you can use this mode to change the math font.
-
-\subsection{The \mode{counter}}
-This mode has two options, \mode{separate} and \mode{continuous}, which can make the page counter between chapters be remaked or continuous.The page numbers between each test question will be continuous when you use the \mode{continuous} mode or the page number of each test question will start from 1 when you use the \mode{separate}.
-
-\section{Commands of \pkg{LiteSolution}}
-\subsection{The \cmd{chapterimage} command}
-\begin{verbatim}
- \chapterimage{cover1.png}
-\end{verbatim}
-
-This command can assign the title background image for each subsequent chapter.
-
-\subsection{The \cmd{chapterfont} command}
-\begin{verbatim}
- \chapterfont{PingFang HK} \chapterfont*{PingFang HK}
-\end{verbatim}
-
-This command can assign the title font for each subsequent chapter, if you do not use this command, the title font will be \emph{songti} in Chinese and \emph{Libertinus} in English.
-
-If a star (*) is added after the \verb|\chapterfont|, then \TeX Live will call the font file from the current path, note from the system. And the file in the current path only support the \verb|.ttf| format.
-
-\subsection{The \cmd{ans} command}
-This command can underlines the answer and changes the color of the answer to \textcolor{H5}{Blue Sapphire}.
-
-If mode \mode{noans} is enabled, the answer will disappear, leaving only a horizontal line the same width as the answer.
-
-\subsection{The \cmd{solute} command}
-\begin{verbatim}
- \solute{3} % create a solution box with the height of 3em.
-\end{verbatim}
-
-This command can create a fixable solution box when the mode \mode{noans} is enabled.
-
-\subsection{The \cmd{watermark} command}
-\begin{verbatim}
- \watermark{ctanlion.pdf}
-\end{verbatim}
-
-This command can add watermark to the document.
-
-\subsection{Other customer commands}
-In order to facilitate input, the following commands are scheduled. You can add others in the \verb|*.cls| file as you like.
-\vskip1em
-\begin{table}[!ht]
- \centering
- \begin{tabular}{l|l|l|l|l|l}
- \toprule
- Command & Output & Command & Output & Command & Output\\
- \midrule
- \verb|\titlelogo{#1}{#2}| & Add emoji with link in text & \verb|\point{#1}| & Add score & \verb|\i| & $\mathrm{i}$\\
- \hline
- \verb|\sokka{#1}| & 故本题选择\#1项 & \verb|\d| & $\mathrm{d}$ & \verb|\e| & $\mathrm{e}$\\
- \hline
- \verb|\xSim[#1]{#2}| & $\xSim[r_1\times2]{r_2+r_1}$ & \verb|\num{e#1}| & $\num{e-34}$ & \verb|\mat{#1}^\T| & $\mat{A}^\T$\\
- \hline
- \verb|\rank{#1}| & $\rank{\mat{AB}}$ & \verb|\QED| & \QED & \verb|$5\unit{kg}$| & $5\unit{kg}$\\
- \bottomrule
- \end{tabular}
-\end{table}
-
-\section{Environments of \pkg{LiteSolution}}
-\subsection{The \cmd{choice} environment}
-There're two variables in this envrionment. The first one is the answer of the choice problem, the second one is the keywords of this choice problem and it's optional.
-
-\begin{tcblisting}{sidebyside}
-\begin{choice}{D}[Keywords]
-If you want to add choice and keywords.
-\begin{tasks}(2) % 2 choices per line
- \task This is choice A \task This is choice B
- \task This is choice C \task This is choice D
-\end{tasks}
-\end{choice}
-\end{tcblisting}
-
-\begin{paracol}{2}
- \begin{choice}{D}[Gaussian theory]
- $A$和$B$为两个均匀带电球体,$A$带电荷$+q$,$B$带电荷$-q$,作一与$A$...
- \begin{tasks}(2)
- \task 通过$S$面的电场强度... \task 通过$S$面的电场强度...
- \task 通过$S$面的电场强度... \task 通过$S$面的电场强度...
- \end{tasks}
- \end{choice}
- \switchcolumn
- \centering\vfill
- \begin{tikzpicture}
- \draw [thick] (0,0) circle (0.8);
- \draw [thick] (0,0) circle (1.2);
- \draw [thick] (2.4,0) circle (0.8);
- \draw [thick] (0,0)--(0.85,0.85);
- \node [anchor=east] at (0,0) {$A$};
- \node [anchor=north] at (0,0) {$+q$};
- \node [anchor=east] at (0.566,0.566) {$r$};
- \node [anchor=south] at (0.85,0.85) {$S$};
- \node [anchor=south] at (2.4,0) {$-q$};
- \end{tikzpicture}
- \vfill
-\end{paracol}
-\begin{tcolorbox}
-\begin{verbatim}
-\begin{paracol}{2}
-\begin{choice}{D}[Gaussian theory]
- $A$和$B$为两个均匀带电球体,$A$带电荷$+q$,$B$带电荷$-q$,作一与$A$...
- \begin{tasks}(2)
- \task 通过$S$面的电场强度... \task 通过$S$面的电场强度...
- \task 通过$S$面的电场强度... \task 通过$S$面的电场强度...
- \end{tasks}
-\end{choice}
-\switchcolumn\centering\vfill\tikz{...}\vfill
-\end{paracol}
-\end{verbatim}
-\end{tcolorbox}
-
-\subsection{The \cmd{problem} environment}
-Sightly different from the cmd{choice} environment: the two variables are points and keywords, and the question number counter is shared with the multiple-choice question number counter.
-\begin{tcblisting}{sidebyside}
- \begin{problem}[Keywords][5]
- If you want to add keywords and points.
- \end{problem}
- \begin{problem}
- If you want to add none.
- \end{problem}
- \begin{problem}[Keywords]
- If you want to add keywords only.
- \end{problem}
- \begin{problem} [5]
- If you want to add points only.
- \end{problem}
-\end{tcblisting}
-
-\begin{paracol}{2}
-\begin{problem}[Gaussian theory \& Field strength][6]
- 一均匀带电直导线长为$d$,电荷线密度为$+\lambda$.过导线中点$O$作一半径为$R$($R>\frac{d}{2}$)的球面$S$,$P$为带电直导线的延长线与球面$S$的交点. 则通过该球面的电场强度通量$\Phi_e=$\ans{$\frac{\lambda d}{\varepsilon_0}$},带电直线的延长线与球面交点$P$处的电场强度的大小为\ans{$\frac{\lambda d}{4\pi\varepsilon_0(R^2-d^2/4)}$},方向\ans{沿矢径$\vv{OP}$}.
- \end{problem}
-\switchcolumn\centering
-\vfill
-\begin{tikzpicture}[scale=0.83]
- \draw (0,0) circle (2);
- \draw [thick,->] (-2,0)--(0,0)--(1,1.732);
- \node [anchor=east] at (-2,0) {$P$};
- \filldraw (-2,0) circle (0.05);
- \node [anchor=west] at (0.5,0.866) {$R$};
- \filldraw [pattern=north east lines] (-0.8,-0.1)--(-0.8,0.1)--(0.8,0.1)--(0.8,-0.1)--cycle;
- \draw [thick,|<-] (-0.8,-0.3)--(-0.25,-0.3);
- \draw [thick,|<-] (0.8,-0.3)--(0.25,-0.3);
- \node at (0,-0.3) {$L$};
-\end{tikzpicture}
-\vfill
-\end{paracol}
-\begin{tcolorbox}
-\begin{verbatim}
-\begin{paracol}{2}
- \begin{problem}[Gaussian theory \& Field strength][6]
- 一均匀带电直导线长为$d$,电荷线密度为$+\lambda$,过导线中点$O$...
- 场强大小\ans{$\frac{\lambda d}{4\pi\varepsilon_0(R^2-d^2/4)}$}...
- \end{problem}
-\switchcolumn\centering\vfill\tikz{...}\vfill
-\end{paracol}
-\end{verbatim}
-\end{tcolorbox}
-
-\subsection{The \cmd{note} environment}
-\begin{tcblisting}{sidebyside}
-\begin{note}
- Please note that...
-\end{note}
-\end{tcblisting}
-
-\subsection{The \cmd{proof} environment}
-\begin{tcblisting}{sidebyside}
-\begin{proof}
- Due to \emph{Langrange's Thorem}...
-\end{proof}
-\end{tcblisting}
-
-If a star (*) is added after the \verb|\begin{solution}|, then the content will follow the
-\begin{tcblisting}{sidebyside}
-\begin{proof}*
- Due to \emph{Langrange's Thorem}...
-\end{proof}
-\end{tcblisting}
-
-\subsection{The \cmd{solution} environment}
-\begin{tcblisting}{sidebyside}
-\begin{solution}
- This is the answer for the problem.
-\end{solution}
-\end{tcblisting}
-If a star (*) is added after the \verb|\begin{solution}|, then the content will follow the
-\begin{tcblisting}{sidebyside}
-\begin{solution}*
- This is the answer for the problem.
-\end{solution}
-\end{tcblisting}
-
-If mode \mode{noans} is enabled, the solution will disappear, leaving only a blank box with the same height as the solution, and the name of the box will change to \emph{\textcolor{1号色}{\textbf{\faIcon{pen-square} 答题区域}}}.
-
-\section{Known Issues}
-Sometimes \TeX Live will return errors when you enable the mode \mode{noans} and use the \cmd{solution} environment in \cmd{paracol} environment.
-
-\clearpage
-
-\section{Version History}
-This template is used to type the mid-term and final exam solutions of \emph{College Physics}. Initially, I used the \pkg*{ElegantBook} template for layout, however, it's no longer be maintained since January 1st, 2023, so I turn to use the \href{https://github.com/Azure1210/VividBooK}{\pkg*{VividBooK}} instead. But this template is too bloated and some functions \& designs need to be redesigned, so I started developing \pkg{LiteSolution}.
-
-\subsection*{Update Announcements}
-\datechange{2023/07/06}{Version 0.1b}
-\begin{itemize}
- \item Support page number remaking between chapters.
- \item Added \cmd{watermark} command.
-\end{itemize}
-
-\datechange{2023/11/15}{Version 1.0a}
-\begin{itemize}
- \item Redesigned the \cmd{chapterimage} part, include the layout and the code.
- \item Redesigned the \cmd{choice} and \cmd{solution} environment, keywords become optional and supports star (*) key.
- \item Replaced the \cmd{exercise} environment with the \cmd{problem} environment, supports adding only keywords or points.
- \item Added the \cmd{note} environment and some customer commands.
-\end{itemize}
-
-\datechange{2023/12/13}{Version 1.2a}
-\begin{itemize}
- \item Fixed the bug that the gap around the chapter image.
- \item Added some commands for matrices.
- \item Redesigned the \cmd{chapterfont} command.
- \item Redesigned the \cmd{proof} environment.
- \item Supports to adjust the height of solution box when output the exam paper without answer.
- \item Fixed the bug that warnings of the packages \pkg{xeCJK} and \pkg{fontspec}.
-\end{itemize}
-
-\datechange{\today}{Version 1.3a}
-\begin{itemize}
- \item Added the mode \mode{tcolorbox}, which you can choose whether the tcolorbox breakable or not.
- \item This version separate the chapterimage part to a single \verb|titleimage.sty| file, which will be posted on \nolinkurl{ctan.org} soon to make this template more maintainable.
-\end{itemize}
-
-\subsection*{Future Plans}
-\begin{itemize}
- \item Plan to add the \mode{dark} mode to this template to make the text color light while make the page color dark to protect eyesight.
- \item Plan to change the \verb|*.cls| file to a block code design to make it easier for subsequent developers to maintain or modify.
- \item ......
-\end{itemize} \ No newline at end of file
diff --git a/macros/latex/contrib/litesolution/doc/litesolution.pdf b/macros/latex/contrib/litesolution/doc/litesolution.pdf
index 3391d993f5..448aadb3bb 100644
--- a/macros/latex/contrib/litesolution/doc/litesolution.pdf
+++ b/macros/latex/contrib/litesolution/doc/litesolution.pdf
Binary files differ
diff --git a/macros/latex/contrib/litesolution/doc/litesolution.tex b/macros/latex/contrib/litesolution/doc/litesolution.tex
index 43f8d50f36..aa674fb100 100644
--- a/macros/latex/contrib/litesolution/doc/litesolution.tex
+++ b/macros/latex/contrib/litesolution/doc/litesolution.tex
@@ -1,13 +1,164 @@
-\documentclass[ans,continuous,nobreak]{litesolution}
+\documentclass[ans]{litesolution}
+\newenvironment{abstract}
+ {\small\setstretch{2}\begin{center}\textbf{Abstract}\par}{\end{center}}
+\begin{document}
-\usepackage{lipsum}
+\chapterfont{Chiron Sung HK}
+\chapterimage{Beautiful-realities}
+\chapter{The \pkg{LiteSolution} Template}
-\begin{document}
+\begin{center}
+ Hsia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}
+
+ \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com}
+
+ \today, Version 2.0a
+\end{center}
+
+\begin{abstract}
+ This is the document for \pkg{LiteSolution} template, which provides a lite design of the solution of test paper.
+\end{abstract}
+
+\section{Introduction}
+\subsection{The purpose of this template}
+This template provides a fresh design for typesetting solutions of midterm or final exam, textbooks and other exercises. Welcome to feedback bugs or ideas via email \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com} or \href{https://github.com/xiamyphys/litesolution}{GitHub}.
+
+\subsection{Installing \pkg{LiteSolution} and loading it}
+For portable version, simply download latest \verb|litesolution.cls| file from \href{https://github.com/xiamyphys/LiteSolution}{GitHub} or \href{https://ctan.org/pkg/litesolution}{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
+\begin{verbatim}
+ sudo tlmgr update --self --all
+\end{verbatim}
+
+If you are in some areas with awful Internet environment (such as a), you can choose 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?}
+
+\subsection{Compatibility}
+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 compatibility unknown.
+
+\clearpage
+
+\section{Global options of \pkg{LiteSolution}}
+\begin{verbatim}
+ \documentclass[options]{litesolution}
+\end{verbatim}
+\subsection{The \mode{answer} option}
+This option has two modes, \mode{ans} and \mode{noans}, which can show and hide answers respectively. After you enabled the \mode{noans} mode, the contents in the environment \cmd{solution}, the command \cmd{ans} and the answers of choice questions will be replaced with an area of the same blank size as the original contents.
+
+\subsection{The \mode{counter} option}
+This option has two modes, \mode{separate} and \mode{continuous}, which can make the page number between chapters be reset or continuous.
+
+\section{Commands of \pkg{LiteSolution}}
+\subsection{The \cmd{chapterimage} command}
+\begin{verbatim}
+ \chapterimage {⟨image path⟩}
+\end{verbatim}
+
+This command can assign the title background image for each subsequent chapter.
+
+\subsection{The \cmd{chapterfont} command}
+\begin{verbatim}
+ \chapterfont [⟨font features⟩] {⟨font name⟩}
+\end{verbatim}
+
+This command can assign the title font for each chapter and the default font of the title is \emph{Songti SC} in Chinese and \emph{Libertinus} in English. This command is \emph{only available with \hologo{XeLaTeX} compiler}.
+
+\subsection{The \cmd{ans} command}
+\begin{verbatim}
+ \ans {⟨contents⟩}
+\end{verbatim}
+
+This command can underline the answer, and if mode \mode{noans} is enabled, the answer will disappear, leaving only a horizontal line the same width as the answer.
+
+\subsection{The \cmd{solute} command}
+\begin{verbatim}
+ \solute {⟨number⟩}
+\end{verbatim}
+
+This command can create a fixable answer box when the mode \mode{noans} is enabled.
+
+\subsection{The \cmd{watermark} command}
+\begin{verbatim}
+ \watermark {⟨image path⟩}
+\end{verbatim}
+
+This command can add watermark to the document.
+
+\subsection{Other preset commands}
+This template provides the same math commands as \S 1.5 of the template \pkg{LiteBook} described additionly.
+
+\section{Environments of \pkg{LiteSolution}}
+\subsection{The \cmd{choice} environment}
+\begin{tcblisting}{sidebyside,colback=cmdcolor!5,colframe=cmdcolor!80}
+\begin{problem}[Keywords]
+ You can add keywords to the problem.
+\end{problem}
+\end{tcblisting}
+
+\subsection{The \cmd{solution} environment}
+\begin{tcblisting}{colback=moducolor!5,colframe=moducolor!80}
+\begin{solution}\leavevmode
+ \begin{tasks}(4)
+ \task Choice A \task[\small\faIcon{check-square}.] Choice B
+ \addtocounter{task}{1} \task Choice C \task Choice D
+ \end{tasks}
+\end{solution}
+\end{tcblisting}
+
+\subsection{The \cmd{note} environment}
+\begin{tcblisting}{sidebyside,colback=pkgcolor!5,colframe=pkgcolor!80}
+\begin{note}
+ Please note that...
+\end{note}
+\end{tcblisting}
+
+\section{Version History}
+This template is used to type the midterm and final exam solutions of \emph{College Physics}. Initially, I used the \href{https://github.com/Azure1210/VividBooK}{\pkg{VividBooK}} template for layout. However, this template is too bloated and many functions \& designs are excess and need to be redesigned, so I started developing the \pkg{LiteSolution} template.
+
+\subsection*{Update Announcements}
+\textbf{Version 0.1b -- 2023/07/06}
+\begin{itemize}
+ \item Support page number remaking between chapters.
+ \item Added \cmd{watermark} command.
+\end{itemize}
+
+\vskip1ex\hrule\vskip1ex
+
+\textbf{Version 1.0a -- 2023/11/15}
+\begin{itemize}
+ \item Redesigned the \cmd{chapterimage} part, include the layout and the code.
+ \item Redesigned the \cmd{choice} and \cmd{solution} environments, keywords are optional and supports star (*) key.
+ \item Replaced the \cmd{exercise} environment with the \cmd{problem} environment, supports adding only keywords or points.
+ \item Added the \cmd{note} environment and some custom commands.
+\end{itemize}
+
+\vskip1ex\hrule\vskip1ex
+
+\textbf{Version 1.2a -- 2023/12/13}
+\begin{itemize}
+ \item Fixed the bug that the gap around the chapter image.
+ \item Added some commands for matrices.
+ \item Redesigned the \cmd{chapterfont} command.
+ \item Redesigned the \cmd{proof} environment.
+ \item Supports to adjust the height of solution box when output the exam paper without answer.
+ \item Fixed the bug that warnings of the packages \pkg{xeCJK} and \pkg{fontspec}.
+\end{itemize}
+
+\vskip1ex\hrule\vskip1ex
+
+\textbf{Version 1.3a -- 2023/03/08}
+\begin{itemize}
+ \item Added the mode \mode{tcolorbox}, which you can choose whether the tcolorbox breakable or not.
+ \item This version separate the chapterimage part to a single \verb|titleimage.sty| file, which will be posted on \nolinkurl{ctan.org} soon to make this template more maintainable.
+\end{itemize}
+
+\vskip1ex\hrule\vskip1ex
-\chapterimage{cover1.png}
-\input{litesolution-doc.tex}
-% \input{litesolution-demo.tex}
-% \chapterfont{PingFang HK}
-% \input{litesolution-gauge.tex}
+\textbf{Version 2.0a -- \today}
+\begin{itemize}
+ \item This version redesigned the whole template and simplified the code, replaced the \pkg{tcolorbox} design with \pkg{amsthm} to accelerate compile.
+ \item Redesigned the chapter title.
+ \item Supports the \hologo{pdfLaTeX} compiler.
+\end{itemize}
\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/litesolution/tex/litesolution.cls b/macros/latex/contrib/litesolution/tex/litesolution.cls
index 66a333f04e..7706372a48 100644
--- a/macros/latex/contrib/litesolution/tex/litesolution.cls
+++ b/macros/latex/contrib/litesolution/tex/litesolution.cls
@@ -1,520 +1,185 @@
-%% ************************************************************************************************************
-%% ****************************************************** *
-%% * This work may be distributed and/or modified under * * ***** * * *
-%% * the conditions of the LaTeX Project Public License * * ** * * *** * * *
-%% * http://www.latex-project.org/lppl.txt * * * ** * ***** * *
-%% * either version 1.3c of this license or any later * * * ** * ***** * *
-%% * version. * * * ** * * * * *
-%% ****************************************************** ***** ** * * *** * * *
-%% start of file `litesolution.cls'. *
-%% Copyright 2024 LiteLaTeX (xiamyphys@gmail.com) *
-%% available at https://github.com/xiamyphys/LiteSolution *
-%% Thanks https://github.com/ElegantLaTeX/ElegantBook, https://github.com/Azure1210/VividBooK *
-%% !Mode:: "TeX:UTF-8" *
-%% ************************************************************************************************************
-
+%% ****************************************************************************************************
+%% Copyright 2024 by Mingyu Hsia <xiamyphys@gmail.com> *
+%% *
+%% This work may be distributed and/or modified under * ***** * * *
+%% the conditions of the LaTeX Project Public License * ** * * *** * * *
+%% * * ** * * * ** *
+%% http://www.latex-project.org/lppl.txt * * * * ***** ** *
+%% * * ** * * * * *
+%% either version 1.3c of this license or any later ***** ** * * *** * * *
+%% version. *
+%% *
+%% This work has the LPPL maintenance status `maintained'. *
+%% *
+%% The Current Maintainer of this work is Mingyu Hsia. *
+%% *
+%% This work consists of the files litesolution.cls, *
+%% and README.md. *
+%% available at https://github.com/xiamyphys/LitSolution *
+%% ****************************************************************************************************
+% !Mode:: "TeX:UTF-8"
\NeedsTeXFormat{LaTeX2e}
-\PassOptionsToPackage{quiet}{xeCJK}
-\PassOptionsToPackage{quiet}{fontspec}
-\PassOptionsToPackage{no-math}{fontspec}
-
-\ProvidesClass{litesolution}[2024/03/08 v1.3a LiteSolution document class]
+\ProvidesClass{litesolution}[2024/03/11 v2.0a LiteSolution document class]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
-\newcommand{\ekv}[1]{\kvsetkeys{LITE}{#1}}
+\def\ekv#1{\kvsetkeys{LITE}{#1}}
-% ---- 全局选项
\DeclareStringOption[ans]{answer}
\DeclareVoidOption{ans}{\ekv{answer=ans}}
\DeclareVoidOption{noans}{\ekv{answer=noans}}
-\DeclareStringOption[breakable]{tcolorbox}
-\DeclareVoidOption{breakable}{\ekv{tcolorbox=breakable}}
-\DeclareVoidOption{nobreak}{\ekv{tcolorbox=nobreak}}
-
\DeclareStringOption[separate]{counter}
\DeclareVoidOption{separate}{\ekv{counter=separate}}
\DeclareVoidOption{continuous}{\ekv{counter=continuous}}
-\DeclareStringOption{math}
-\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
-
-% ----- Default Options -----
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessKeyvalOptions*\relax
-\LoadClass[letterpaper,oneside]{book}
-\RequirePackage[letterpaper,margin=0.75in,headheight=0.25in,headsep=0.2in,footskip=0.2in]{geometry}
-\usepackage[level]{datetime}
+\LoadClass[letterpaper,11pt,openany]{book}
-\RequirePackage{extarrows}% 长等号
-\RequirePackage{physics2}
-\usephysicsmodule{ab,ab.legacy,braket,nabla.legacy}
-\RequirePackage{amsmath,amssymb}
-\usepackage{nicematrix}
-\usepackage{diagbox}
-\usepackage{nicefrac}
-\RequirePackage{bm}
-\RequirePackage{esint}
-\RequirePackage[e]{esvect}% 矢量箭头
-\RequirePackage{bbm}% 花体字
-\RequirePackage{dutchcal}% 花体字2
-\RequirePackage{mathrsfs}% 花体字3
-\RequirePackage{csquotes}% 引号
-\RequirePackage{tasks}% 选择题
-\settasks{label=\Alph*.}
-\RequirePackage{setspace}
+\RequirePackage{geometry,anyfontsize,setspace,enumitem,booktabs,tabularx,diagbox,multicol,multirow}
+\geometry{margin= 1 in}
\setstretch{1.25}
-\AtBeginDocument{
- \everymath{\displaystyle}
- \setlength{\abovedisplayskip}{3pt}
- \setlength{\belowdisplayskip}{3pt}
-}
-\definecolor{pkgcolor}{Hsb}{103,.8,.5}
-\definecolor{moducolor}{Hsb}{290,.8,.5}
-\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\definecolor{filecolor}{Hsb}{207,.6,.7}
-\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
-\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
-\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
-\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
-\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
-\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
-\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
-\RequirePackage{hyperref}
-\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
+\RequirePackage{graphics,graphicx}
+\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
-\RequirePackage{indentfirst,comment}
-% fontsetting
-\ifdefstring{\LITE@math}{mtpro2}{
- \let\Bbbk\relax
- \RequirePackage[lite]{mtpro2}
-}{\relax}
-\RequirePackage[UTF8,scheme=plain]{ctex}
-\RequirePackage{xeCJK}
-\RequirePackage[no-math]{fontspec}
-\RequirePackage{fixdif,derivative}
-\NewDocumentCommand\chapterfont{s m}{
- \IfBooleanTF{#1}{
- \setCJKfamilyfont{chapterfont}{#2}[Extension =.ttf]
- }
- {
- \setCJKfamilyfont{chapterfont}{#2}
- }
- \gdef\@chapterfont{#2}
-}
-\usepackage[libertine,mono=false]{newtx}
+\RequirePackage{indentfirst}
+\setlength{\parindent}{2ex}
+
+\RequirePackage[labelsep=period,labelfont={bf,sf},font=small]{caption}
+\RequirePackage[nokeyprefix]{refstyle}
+\newref{fig}{name={\sffamily\bfseries Figure~}}
+\newref{tab}{name={\sffamily\bfseries Table~}}
+
+\RequirePackage{lipsum,hologo}
+\hologoFontSetup{general=\sffamily}
+\RequirePackage{ifxetex}
+\ifXeTeX
+ \RequirePackage[quiet]{xeCJK}
+ \RequirePackage[quiet,no-math]{fontspec}
+ \RequirePackage{zhlipsum}
+ \NewDocumentCommand\chapterfont{ o m }{
+ \setCJKfamilyfont{chapterfont}[#1]{#2}
+ \gdef\@chapterfont[#1]{#2}
+ }
+\else
+ \def\chapterfont#1{}
+ \def\CJKfamily#1{}
+\fi
-\setcounter{tocdepth}{1}
-\AfterEndPreamble{
- \setlength\parindent{2\ccwd}}{\relax}
+\def\chapterimage#1{\gdef\@chapterimage{#1}}
+\def\@makechapterhead#1{%
+ {\UPFadingImage[trim={0 {.9\paperheight} 0 0},clip]{\@chapterimage}
+ \parindent \z@ \centering \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \par\nobreak
+ \fi
+ \interlinepenalty\@M
+ \ifcsname @chapterfont\endcsname\CJKfamily{chapterfont}\fi
+ \normalsize \bfseries \ifXeTeX\else\sffamily\fi \huge #1\par\nobreak
+ \vskip 20\p@\normalfont\normalsize
+ }}
+
+\def\@makeschapterhead#1{%
+ {\parindent \z@ \centering
+ \normalfont
+ \interlinepenalty\@M
+ \huge \bfseries \sffamily #1\par\nobreak
+ \vskip 40\p@
+ }}
+\setlength{\headheight}{14pt}
+\def\thesection{\arabic{section}}
-%% 章节
-\RequirePackage{xcolor}
-\RequirePackage{silence}
-\RequirePackage[center,pagestyles]{titlesec}
-\RequirePackage[title,titletoc,header]{appendix}
+\RequirePackage{datetime}
+\yyyymmdddate
-% ----- box -----
+\def\watermark#1{\RequirePackage{wallpaper}\CenterWallPaper{0.5}{#1}}
+\RequirePackage{fancyhdr}
+\def\sectionmark#1{\markright{#1}{}}
+\def\chaptermark#1{\markboth{#1}{}}
+\pagestyle{fancy}
+ \fancyhead[OL]{\scshape\sffamily\nouppercase\rightmark}
+ \fancyhead[OR]{\thepage}
+ \fancyhead[EL]{\thepage}
+ \fancyhead[ER]{\scshape\sffamily\nouppercase\leftmark}
+ \lfoot{}\cfoot{}\rfoot{}
+
+\RequirePackage[most]{tcolorbox}
+\RequirePackage{circuitikz,fontawesome5}
+\usetikzlibrary{arrows,tikzmark,patterns,calc}
+\RequirePackage{fadingimage}
+\tikzset{>=stealth',
+every picture/.append style={
+ line join=round,
+ line cap=round,
+ thick
+ }
+}
+\RequirePackage{pgfplots}
+\pgfplotsset{compat=1.9}
\definecolor{headrulecolor}{HTML}{640125}
-\definecolor{1号色}{HTML}{4D5AAF} %
-\definecolor{2号色}{HTML}{006E54} %
-\definecolor{solutioncolor}{HTML}{0F2350} %
+\RequirePackage{comment}
\ifdefstring{\LITE@answer}{ans}{
- \def\solutionname{\faIcon{check-square} 分析与解}
- \def\ans#1{\underline{\color{solutioncolor}\ #1\ }}
- \def\choiceans#1{{\color{solutioncolor}\ #1\ }}
- \definecolor{backgroundcolor}{HTML}{F8F7E9}
+ \def\solutionname{\small\faIcon{check-square}\normalsize~Solution}
+ \def\ans#1{\underline{~#1~}}
+ \def\choiceans#1{~#1~}
\def\solute#1{\relax}
- \def\hidesolution{\relax}
}{\relax}
\ifdefstring{\LITE@answer}{noans}{
- \def\solutionname{\faIcon{pen-square} 答题区域}
- \def\ans#1{\underline{\phantom{\color{solutioncolor}#1}}}
- \def\choiceans#1{\phantom{\color{solutioncolor}}}
- \definecolor{backgroundcolor}{HTML}{FFFFFF}
- \def\solute#1{\begin{draft}\vspace{#1em}\end{draft}}
- \def\hidesolution{
+ \def\solutionname{\small\faIcon{pen-square}\normalsize~Answer}
+ \def\ans#1{\underline{\phantom{#1}}}
+ \def\choiceans#1{\phantom{#1}}
+ \def\solute#1{\begin{draft}\leavevmode\vspace*{#1ex}\end{draft}}
+ \AtBeginDocument{
\excludecomment{solution}
\let\endsolution\relax
}
}{\relax}
-\pagecolor{backgroundcolor!20}
-\def\notename{\faIcon{info-circle} 注意}
-\def\proofname{证明.}
-\def\problemname{\faIcon{pen-square} 题目} % 题目=习题
-
-\RequirePackage[most]{tcolorbox}
-\ifdefstring{\LITE@tcolorbox}{breakable}{
-\tcbuselibrary{breakable}
-\tcbset{
- common/.style={
- blanker,breakable,
- left=3mm,
- toprule=.3em,
- bottomrule=.3em,
- bottomtitle=.75\baselineskip,
- fonttitle=\bfseries
- }
-}
-}
-{\relax}
-\ifdefstring{\LITE@tcolorbox}{nobreak}{
-\tcbset{
- common/.style={
- blanker,
- left=3mm,
- toprule=.3em,
- bottomrule=.3em,
- bottomtitle=.75\baselineskip,
- fonttitle=\bfseries
- }
-}
-}
-{\relax}
-
-\newcounter{prob}[chapter]
-\setcounter{prob}{1}
-\renewcommand{\theprob}{\arabic{prob}}
-
-\NewDocumentEnvironment{choice}{m o}{
- \refstepcounter{prob}
- \IfNoValueTF{#2}
- {
- \begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname}\theprob\hfill【\quad \choiceans#1 \color{2号色}\quad 】,
- coltitle=2号色
- ]
- }{
- \begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname}\theprob\hfill\color{2号色}\faIcon{tag}~#2\qquad【\quad \choiceans#1 \color{2号色}\quad 】,
- coltitle=2号色
- ]
- }
- \rmfamily}{\end{tcolorbox}}
-
-\NewDocumentEnvironment{problem}{s !o o}{
-\refstepcounter{prob}
-\IfBooleanTF{#1}{
-\tcbset{
- wrapfig/.style={sidebyside,righthand width=\dimeval{2\textwidth/7}}}
-}{
-\tcbset{
- wrapfig/.style={}}
-}
- \IfNoValueTF{#3}{
- \IfNoValueTF{#2}{
- \begin{tcolorbox}[
- common,wrapfig,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname} \theprob,
- coltitle=2号色,
- ]
- }{
- \begin{tcolorbox}[
- common,wrapfig,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname} \theprob\hfill\faIcon{tag}~#2,
- coltitle=2号色,
- ]
- }
- }{
- \IfNoValueTF{#2}{
- \begin{tcolorbox}[
- common,wrapfig,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname} \theprob(本题#3分),
- coltitle=2号色,
- ]
+\definecolor{pkgcolor}{HTML}{006E54}
+\definecolor{moducolor}{HTML}{4D5AAF}
+\definecolor{cmdcolor}{HTML}{19727F}
+\RequirePackage[colorlinks,linkcolor=teal,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”}}
+\NewDocumentCommand{\titlelogo}{ o m }{
+ \leavevmode@ifvmode
+ \IfNoValueTF{#1}{
+ \lower\dimexpr\f@size\p@*1/10\hbox{\includegraphics[height={\f@size\p@}]{#2}}
}{
- \begin{tcolorbox}[
- common,wrapfig,
- borderline west={1.5pt}{0mm}{2号色},
- title=\color{2号色}{\problemname} \theprob(本题#3分)\hfill\faIcon{tag}~#2,
- coltitle=2号色,
- ]
+ \lower\dimexpr\f@size\p@*1/10\hbox{\href{#1}{\includegraphics[height={\f@size\p@}]{#2}}}
}
- }
- \rmfamily}{\end{tcolorbox}}
-
-\newenvironment{note}{
- \begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{H1},
- title=\color{H1}\notename,
- coltitle=H1
- ]
- \kaishu}{\end{tcolorbox}}
-
-\NewDocumentEnvironment{proof}{s}{
- \par\noindent\songti{\color{H1}\proofname\;}
- \color{solutioncolor!90}\fangsong
-}{\IfBooleanTF{#1}{\relax}{\QED}}
-
-\NewDocumentEnvironment{solution}{s}{
- \IfBooleanTF{#1}{
- \begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{1号色},
- coltitle=1号色
- ]
- \color{1号色}\textbf{\solutionname}
- }
- {
- \begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{1号色},
- title=\color{1号色}\solutionname,
- coltitle=1号色,
- colupper=solutioncolor,
- collower=solutioncolor
- ]}%
- \kaishu\color{solutioncolor}}{\end{tcolorbox}}
-
-\newenvironment{draft}{
-\begin{tcolorbox}[
- common,
- borderline west={1.5pt}{0mm}{1号色},
- coltitle=1号色
- ]
- \color{1号色}\bfseries\solutionname
- }
-{\end{tcolorbox}}
-
-\RequirePackage{enumerate}
-\RequirePackage[shortlabels,inline]{enumitem}
-\setlist{nolistsep,leftmargin=1.5em}
-
-\RequirePackage{graphicx}
-\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
-\RequirePackage{pdfpages}
-\RequirePackage{wrapstuff}% 图文绕排
-\RequirePackage{booktabs}
-\RequirePackage{paracol}
-\columnratio{0.67}
-% sidebyside,righthand width=\dimeval{\linewidth/4}
-\RequirePackage{multicol,multirow}
-\RequirePackage{fancyvrb}
-
-%绘图
-\RequirePackage{tikz} %% load tikz without tikz
-\usetikzlibrary{intersections,decorations.markings,spy,arrows,shapes,fadings,mindmap,shapes.arrows,shapes.symbols,tikzmark,shapes.geometric,graphs,decorations.pathmorphing,through,arrows.meta,shapes.misc,decorations.shapes,angles,backgrounds,calc,math,decorations,decorations.pathreplacing,fit,quotes,shadows,positioning,patterns}
-\tikzset{>=stealth,line cap=round,line join=round}
-\RequirePackage{pgfplots}
-\pgfplotsset{compat=1.9}
-\RequirePackage{circuitikz}
-\ctikzset{logic ports=ieee,logic ports/scale=0.6,fill=backgroundcolor}
-
-\newcommand*{\eitemi}{\tikz \draw [baseline, ball color=1号色,draw=none] circle (2pt);}
-\newcommand*{\eitemii}{\tikz \draw [baseline, fill=1号色,draw=none,circular drop shadow] circle (2pt);}
-\newcommand*{\eitemiii}{\tikz \draw [baseline, fill=1号色,draw=none] circle (2pt);}
-\setlist[enumerate,1]{label=\color{1号色}\arabic*.}
-\setlist[enumerate,2]{label=\color{1号色}(\alph*).}
-\setlist[enumerate,3]{label=\color{1号色}\Roman*.}
-\setlist[enumerate,4]{label=\color{1号色}\Alph*.}
-\setlist[itemize,1]{label={\eitemi}}
-\setlist[itemize,2]{label={\eitemii}}
-\setlist[itemize,3]{label={\eitemiii}}
-
-\titleformat{\chapter}[hang]{\bfseries}{
- \filcenter\LARGE\enspace\bfseries}{1pt}{
- \LARGE\bfseries\color{1号色}\filcenter}[]
-\def\thesection{\arabic{section}}
-\titleformat{\section}[hang]{\bfseries}{
- \Large\bfseries\heiti{\color{1号色}\thesection.}\enspace}{1pt}{%
- \color{1号色}\Large\bfseries\filright}
-\titleformat{\subsection}[hang]{\bfseries}{
- \large\bfseries\color{1号色}\thesubsection\enspace}{1pt}{%
- \color{1号色}\large\bfseries\filright}
-\titleformat{\subsubsection}[hang]{\bfseries}{
- \large\bfseries\color{1号色}\thesubsubsection\enspace}{1pt}{%
- \color{1号色}\large\bfseries\filright}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-%%%%%%%%%%%chapter图片定制开始%%%%%%%%%%%%%%%
-\RequirePackage{titleimage}
-\makeatletter
-\def\chapterimage{\gdef\@chapterimage}
-\def\@makechapterhead#1{%
- \titleimage[
- \ifcsname @chapterfont\endcsname\CJKfamily{chapterfont}\fi\huge\bfseries#1~\color{2号色}\faIcon{feather-alt}]
- {\@chapterimage}
- \vspace{3.5\paperwidth/13}
- \thispagestyle{plain}
- \fancypagestyle{plain}{
- \fancyhead{} % 页眉清空
- \renewcommand{\headrule}{} % 首页去页眉线
- }
- \ifdefstring{\LITE@counter}{separate}{
- \setcounter{page}{1}
- }{\relax}
-}
-\def\@makeschapterhead#1{
- {\parindent \z@ \raggedright
- \normalfont
- \interlinepenalty\@M
- \centering \ifcsname @chapterfont\endcsname\CJKfamily{chapterfont}\fi \huge \bfseries \color{1号色!80!2号色!80!black} #1\par\nobreak
- \vspace*{1em}
- }
- \makeatother
- \thispagestyle{plain}
- \fancypagestyle{plain}{
- \fancyhead{} % 页眉清空
- \renewcommand{\headrule}{} % 首页去页眉线
- }
- \ifdefstring{\LITE@counter}{separate}{
- \setcounter{page}{1}
- }{\relax}
- \setcounter{section}{0}
- \setcounter{prob}{0}
-}
-%%%%%%%%%%%chapter图片定制结束%%%%%%%%%%%%%%%
-
-\def\watermark#1{\RequirePackage{wallpaper}\CenterWallPaper{0.5}{#1}}
-%%%%%%%%%%%%%%%%%%%%%%%
-\RequirePackage{ulem}
-\RequirePackage{fancyhdr}
-\RequirePackage{fontawesome5}
-\fancyhf{}
-\fancyfoot[C]{\color{1号色}\sout{\hbox to 0.4\textwidth{}}\quad\faIcon{chevron-left}\;第~{\sffamily\thepage}\color{1号色}~页\;\faIcon{chevron-right}\quad\sout{\hbox to 0.4\textwidth{}}}
-\fancyfoot[L]{\color{1号色}{$\boldsymbol{\cdot}$}}
-\fancyfoot[R]{\color{1号色}{$\boldsymbol{\cdot}$}}
-\renewcommand{\headrule}{\color{headrulecolor}\hrule width\textwidth}
-
-\pagestyle{fancy}
-\renewcommand{\sectionmark}[1]{\markright{#1}{}}
-\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
-%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\usepackage{listings,dirtree}
-\lstdefinestyle{TeX}{
- language = [LaTeX]TeX,
- texcsstyle = *\color{H7},
- numbers = none,
- basicstyle = {\small\color{H6}\tt},
- mathescape = false,
- breaklines = true,
- columns = fixed,
- keywordstyle = \color{H3},
- commentstyle = \color{darkgray},
- tabsize = 2,
- keywords = {chapter,choice,problem,solution,enumerate}
}
-
-% document setup
-\RequirePackage{siunitx}
-\def\e{\mathrm{e}}
-\def\i{\mathrm{i}}
-\def\T{\mathsf{T}}
-\def\mat#1{\mathbf{#1}}
-\def\rank#1{\text{R}({#1})}
-\def\QED{\hfill\sffamily Q.E.D. }
-\def\mailto#1{\href{mailto:#1}{\nolinkurl{#1}}}
-\def\sokka#1{故本题选择 \textbf{#1} 项.}
-\def\length#1#2#3#4{
-\node (a) at ($0.5*($#2+#1$)$) {#3};
-\draw [->|] ($0.5*($#2+#1+#4$)$) -- #2;
-\draw [->|] ($0.5*($#2+#1-#4$)$) -- #1;
-}
-\def\point#1{\leavevmode\cleaders\hb@xt@.44em{\hss$\cdot$\hss}\hfill\kern\z@\texttt{(#1pt)}}
-\makeatletter
\pdfstringdefDisableCommands{%
- \def\pkg#1{<#1>}%
- \def\mode#1{<#1>}%
- \def\titlelogo#1#2{<#1#2>}%
+ \def\titlelogo#1{<#1>}%
}
-\def\@pkg#1{\texorpdfstring{\href{https://www.ctan.org/pkg/#1}{\textcolor{pkgcolor}{\textsf{#1}}}}{“#1”}}
-\def\s@pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
-\DeclareRobustCommand\pkg{\@ifstar\s@pkg\@pkg}
-\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
-\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
-\def\datechange#1#2{%
- \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
- \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
-\protected\def\@titlelogo#1#2{
- \leavevmode@ifvmode
- \lower\dimexpr\f@size\p@*1/10\hbox{\href{#1}{\includegraphics[height={\f@size\p@}]{#2}}}
- }
-\protected\def\s@titlelogo#1#2{
- \leavevmode@ifvmode
- \lower\dimexpr\f@size\p@*1/10\hbox{\includegraphics[height={\f@size\p@}]{#1}}
- }
-\DeclareRobustCommand\titlelogo{\@ifstar\s@titlelogo\@titlelogo}
-
-\RequirePackage{qrcode}
-\qrset{link, height=4em}
-
-\renewcommand*{\date}[8]{
- \vspace{-0.5em}
- \begin{minipage}{0.64\textwidth}
- \begin{multicols}{2}
- \textbf{考试时间}:\kaishu #1
-
- \textbf{\songti 课程编号}:\kaishu #3
-
- \textbf{\songti 任课教师}:\kaishu #2
-
- \textbf{\songti 解析制作}:\kaishu #4
- \end{multicols}
- \end{minipage}
- \hfill
- \begin{minipage}{0.15\textwidth}
- \centering
- \qrcode{#5}
-
- \vskip1ex\scriptsize\textbf{\href{#5}{#6}}
- \end{minipage}
- \hfill
- \begin{minipage}{0.15\textwidth}
- \centering
- \qrcode{#7}
- \vskip1ex\scriptsize\textbf{\href{#7}{#8}}
- \end{minipage}
- \vspace{-0.5em}
-}
-
-\def\sim@x@scale{.15}
-\def\sim@y@scale{.05}
-\def\sim@y@thick{.02}
-\newsavebox\sim@upper
-\newsavebox\sim@lower
-% extensible sim symbol
-\NewDocumentCommand{\xSim}{ O{} m }{%
- \TextOrMath{%
- \PackageError{TEST}{`\string\xSim` is valid in math mode only.}{}%
- }{
- % math mode only, hence no need to eliminate spaces
- \sbox\sim@upper{$\scriptstyle #2$}
- \sbox\sim@lower{$\scriptstyle #1$}
- \pgfmathparse{min(max(\wd\sim@upper/1em, \wd\sim@lower/1em, 1.0), 1.5)}
- \edef\sim@ratio{\pgfmathresult}
- \def\sim@x {\sim@x@scale * \sim@ratio}
- \def\sim@y {\sim@y@scale * \sim@ratio}
- \def\sim@@y{\sim@y@thick * \sim@ratio}
- \pgfmathparse{floor(max(\wd\sim@upper/1em, \wd\sim@lower/1em)) + 1}
- \edef\sim@wd{\pgfmathresult em}
- \mathrel{
- \begin{tikzpicture}[baseline=-.7ex]
- \filldraw[line width=.2pt]
- (0, 0)
- .. controls +(\sim@x, \sim@y+\sim@@y) and +(-\sim@x, -\sim@y) ..
- +(\sim@wd, 0)
- node[midway, above] {\usebox\sim@upper}
- node[midway, below] {\usebox\sim@lower}
- .. controls +(-\sim@x, -\sim@y-\sim@@y) and +(\sim@x, \sim@y) ..
- (0, 0);
- \end{tikzpicture}
- }
- }%
+\AtBeginDocument{
+ \setlength{\abovedisplayskip}{3pt}
+ \setlength{\belowdisplayskip}{3pt}
}
-\makeatother
-\hidesolution \ No newline at end of file
+\def\hmmax{0}\def\bmmax{0}
+\RequirePackage{amsmath,amssymb,amsthm,mathrsfs,tasks}
+\settasks{label=\Alph*.}
+\RequirePackage[libertine,mono=false]{newtx}
+\RequirePackage[e]{esvect}
+\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}
+
+\newtheoremstyle{tags}{3pt}{3pt}{}{}{}{}{.5em}
+ {\bfseries \thmname{#1} \thmnumber{#2}. \hfill \thmnote{\normalfont\small\faIcon{rss}\normalsize~#3}\\\leavevmode}
+\theoremstyle{tags}
+\newtheorem{problem}{\sffamily\scshape\color{pkgcolor}\small\faIcon{pen-square}\normalsize~Problem}[chapter]
+\def\theproblem{\arabic{problem}}
+
+\theoremstyle{definition}
+\newtheorem*{solution}{\sffamily\scshape\color{moducolor}\solutionname}
+\newtheorem*{draft}{\sffamily\scshape\color{moducolor}\solutionname}
+\newtheorem*{note}{\sffamily\scshape\color{cmdcolor}\small\faIcon{info-circle}\normalsize~Note} \ No newline at end of file
diff --git a/macros/latex/contrib/litesolution/tex/titleimage.sty b/macros/latex/contrib/litesolution/tex/titleimage.sty
deleted file mode 100644
index 0a4972aae1..0000000000
--- a/macros/latex/contrib/litesolution/tex/titleimage.sty
+++ /dev/null
@@ -1,20 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesPackage{titleimage}[2024/03/08/ v0.1 Package for adding south-shading full width picture on the top of page.]
-
-\RequirePackage{tikz,xcolor}
-\usetikzlibrary{shadings}
-\definecolor{titleline}{HTML}{006E54} %
-
-\newsavebox\imagebox % goes into the preamble
-\NewDocumentCommand{\titleimage}{ o m }{
- \tikz[remember picture,overlay]
- {
- \node[scope fading=south,anchor=north,inner sep=0pt,outer sep=auto] at (current page.north) {\includegraphics[width=\paperwidth]{#2}};
- \IfNoValueF{#1}{
- \fill [backgroundcolor!40,opacity=0.5] ($(current page.north west)-(0,3.5/13*\paperwidth)$) rectangle +(\paperwidth,-\paperwidth/13); % 中间
- \draw [line width=2pt,titleline!40] ($(current page.north west)-(0,3.5/13*\paperwidth)$) -- ($(current page.north east)-(0,3.5/13*\paperwidth)$); % 上线
- \draw [line width=2pt,titleline!40] ($(current page.north west)-(0,4.5/13*\paperwidth)$) -- ($(current page.north east)-(0,4.5/13*\paperwidth)$); % 下线
- \node at ($(current page.north west)-(-0.5*\paperwidth,4/13*\paperwidth)$) {#1};
- }
- }
-} \ No newline at end of file