summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-07 19:58:56 +0000
committerKarl Berry <karl@freefriends.org>2024-05-07 19:58:56 +0000
commit5ca0efce6da23cc050495c823bc455d2ff3f623e (patch)
tree7cbfe426814f810f8fc590cede257c9fc849de2c /Master/texmf-dist
parent36df40cd28c66c7a2c808fd5bc6a11e93e5bec74 (diff)
litesolution (7may24)
git-svn-id: svn://tug.org/texlive/trunk@71199 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/litesolution/litesolution.pdfbin269427 -> 276452 bytes
-rw-r--r--Master/texmf-dist/doc/latex/litesolution/litesolution.tex85
-rw-r--r--Master/texmf-dist/tex/latex/litesolution/litesolution.cls90
3 files changed, 107 insertions, 68 deletions
diff --git a/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf b/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
index f22da56fc89..8d9efb2ba37 100644
--- a/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
+++ b/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/litesolution/litesolution.tex b/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
index 901dd4c49ac..678e4cd4aa7 100644
--- a/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
+++ b/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
@@ -1,20 +1,22 @@
-\documentclass[mtpro2]{litesolution}
+\documentclass[mtpro2,twoside,openany]{litesolution}
\usepackage[listings]{tcolorbox}
\lstset{language=[LaTeX]TeX,basicstyle=\small\ttfamily,breaklines=true,columns=flexible}
\title{\sffamily The \pkg{LiteSolution} Class}
\subtitle{\sffamily\scshape Hangzhou Dianzi University}
-\bioinfo{Mingyu Hsia (\mailto{xiamyphys@hdu.edu.cn})\quad|\quad\today\quad|\quad Version 2.2a}
+\bioinfo{Mingyu Hsia (\mailto{xiamyphys@hdu.edu.cn})\quad|\quad\today\quad|\quad Version 2.2b}
\cover[checkerboard]{schrodinger}\coverhead[3]{universe}
\begin{document}
-\maketitle[DarkSlateGray]
+\maketitle[DarkSlateGray]
+\frontmatter\tableofcontents\mainmatter
\chapterimage{\UPFadingImage*[trim={0 {.9\paperheight} 0 0},clip]{Beautiful-realities}}
-\chapter{User Manual For The \pkg{LiteSolution} Class}
-\section{Introduction}
+\chapter{Introduction to the \pkg{LiteSolution} Class}
+
+\section{Preface}
This is the document for the \pkg{LiteSolution} class, which is designed for typesetting solutions of problems in exams, textbooks, etc.
@@ -48,12 +50,14 @@ The \mode{hideanswer} mode can hide contents in \cmd{solution} environment and \
The \mode{mtpro2}, \mode{newtx} and \mode{newtxsf} modes can format the font of formulas in the document. Please check if mtpro2 font has been installed on your computer correctly before using \mode{mtpro2} mode.
-\section{Related packages}
+\section{Related Packages}
\begin{description}
\item[Package \pkg{notebeamer}] provides macros for inputting slides on note papers quickly.
\item[Package \pkg{fadingimage}] provides macros for inputting full width picture at the edges of pages quickly.
\end{description}
+\chapter{Settings \& Usages of this Class}
+
\section{Cover Configurations}
\subsection{The cover page configurations}
@@ -70,7 +74,7 @@ The \mode{mtpro2}, \mode{newtx} and \mode{newtxsf} modes can format the font of
\title{\sffamily The \pkg{LiteSolution} Class}
\subtitle{\sffamily\scshape Hangzhou Dianzi University}
\bioinfo{Mingyu Hsia (\mailto{xiamyphys@hdu.edu.cn})
- \quad|\quad\today\quad|\quad Version 2.2a}
+ \quad|\quad\today\quad|\quad Version 2.2b}
\cover[checkerboard]{schrodinger} \coverhead[5]{universe}
\begin{document} \maketitle[Midnightblue]
@@ -84,6 +88,32 @@ The \mode{mtpro2}, \mode{newtx} and \mode{newtxsf} modes can format the font of
This command can assign the format of the image at every chapters begin and you can adjust the format of the image with the \pkg{fadingimage} package.
+\section{Preset Packages}
+
+This template has preset many packages. The following packages are the common ones
+
+\begin{table}[htbp]
+ \centering\small
+ \begin{tabular}{l l l l l l l l}
+ \toprule
+ \pkg{amsthm} & \pkg{amssymb} & \pkg{bm} & \pkg{booktabs} &
+ \pkg{cancel} & \pkg{caption} & \pkg{circuitikz} & \pkg{datetime} \\
+ \midrule
+ \pkg{derivative} & \pkg{diagbox} & \pkg{esvect} & \pkg{extarrows} &
+ \pkg{fadingimage} & \pkg{fancyhdr} & \pkg{fixdif} & \pkg{fontawesome5} \\
+ \midrule
+ \pkg{geometry} & \pkg{graphics} & \pkg{graphicx} & \pkg{hyperref} &
+ \pkg{indentfirst} & \pkg{lipsum} & \pkg{mathtools} & \pkg{multicol} \\
+ \midrule
+ \pkg{multirow} & \pkg{nicematrix} & \pkg{notebeamer} & \pkg{paracol} &
+ \pkg{pgfplots} & \pkg{physics2} & \pkg{qrcode} & \pkg{refstyle} \\
+ \midrule
+ \pkg{setspace} & \pkg{siunitx} & \pkg{tabularx} & \pkg{tasks} &
+ \pkg{wallpaper} & \pkg{xcolor} & \pkg{xeCJK} & \pkg{xfrac} \\
+ \bottomrule
+ \end{tabular}
+\end{table}
+
\section{Preset Commands}
\subsection{The \cmd{ans} command}
@@ -92,7 +122,7 @@ This command can assign the format of the image at every chapters begin and you
\ans {<contents>}
\end{verbatim}
-This command can underline the answer, and if mode \mode{noans} is enabled, the answer will be hidden.
+This command can underline the answer, and if mode \mode{noans} is enabled the answer will be hidden.
\subsection{The \cmd{solute} command}
@@ -114,7 +144,7 @@ This command can create a fixable answer box when the mode \mode{noans} is enabl
\subsection{The \cmd{problem} environment}
\begin{tcblisting}{sidebyside,colback=DarkGreen!5,colframe=DarkGreen!80}
-\begin{problem}[Keywords]\leavevmode
+\begin{problem}[<Keywords>]\leavevmode
\begin{tasks}(2)
\task Choice A \task[\true] Choice B
\task Choice C \task Choice D
@@ -140,39 +170,14 @@ This command can create a fixable answer box when the mode \mode{noans} is enabl
\end{tcblisting}
\end{minipage}
-\subsection{Equation test}
-
-\[\i\hbar\partial_t\psi(\mathbf x,t)=-(\i\hbar c\bm\alpha\cdot\bm\nabla+\beta mc^2)\psi(\mathbf x,t)\]
-
-\section{Preset packages}
-
-This template has preset many packages. The following packages are the common ones
-
-\begin{table}[htbp]
- \centering\small
- \begin{tabular}{l l l l l l l l}
- \toprule
- \pkg{amsthm} & \pkg{amssymb} & \pkg{bm} & \pkg{booktabs} &
- \pkg{cancel} & \pkg{caption} & \pkg{circuitikz} & \pkg{datetime} \\
- \midrule
- \pkg{derivative} & \pkg{diagbox} & \pkg{esvect} & \pkg{extarrows} &
- \pkg{fadingimage} & \pkg{fancyhdr} & \pkg{fixdif} & \pkg{fontawesome5} \\
- \midrule
- \pkg{geometry} & \pkg{graphics} & \pkg{graphicx} & \pkg{hyperref} &
- \pkg{indentfirst} & \pkg{lipsum} & \pkg{mathtools} & \pkg{multicol} \\
- \midrule
- \pkg{multirow} & \pkg{nicematrix} & \pkg{notebeamer} & \pkg{paracol} &
- \pkg{pgfplots} & \pkg{physics2} & \pkg{qrcode} & \pkg{refstyle} \\
- \midrule
- \pkg{setspace} & \pkg{siunitx} & \pkg{tabularx} & \pkg{tasks} &
- \pkg{wallpaper} & \pkg{xcolor} & \pkg{xeCJK} & \pkg{xfrac} \\
- \bottomrule
- \end{tabular}
-\end{table}
+\section{Equation test}
-\clearpage\appendix\def\thesection{Appendix}
+\[\begin{cases}
+ \i\hbar\partial_t\psi(\mathbf x,t)=\ab(-\frac{\hbar^2}{2m}\bm\nabla^2+V)\\
+ \i\hbar\partial_t\psi(\mathbf x,t)=-(\i\hbar c\bm\alpha\cdot\bm\nabla+\beta mc^2)\psi(\mathbf x,t)
+\end{cases}\]
-\section{Original code for the cover head}
+\section*{Original Code for the Cover Head}
\setstretch{1.15}
\lstinputlisting{figure/universe.tex}
diff --git a/Master/texmf-dist/tex/latex/litesolution/litesolution.cls b/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
index 96d68b2164c..0f59d89630f 100644
--- a/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
+++ b/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
@@ -21,7 +21,7 @@
\NeedsTeXFormat{LaTeX2e}
\PassOptionsToPackage{no-math}{fontspec}
\PassOptionsToPackage{svgnames}{xcolor}
-\ProvidesClass{litesolution}[2024/05/06 v2.2a LiteSolution document class]
+\ProvidesClass{litesolution}[2024/05/07 v2.2b LiteSolution document class]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
@@ -37,16 +37,9 @@
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessKeyvalOptions*\relax
-\LoadClass[letterpaper,11pt,openany]{book}
+\LoadClass[letterpaper,11pt]{book}
\RequirePackage{setspace,datetime,caption,booktabs,multicol,diagbox,paracol}
-\RequirePackage[inline]{enumitem}
-\RequirePackage[notelinecolor=MidnightBlue,notemargin=.75in]{notebeamer}
-\RequirePackage[nokeyprefix]{refstyle}
-\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.~}}
-\geometry{margin=1in}
\linespread{1.3}
\ddmmyyyydate
\captionsetup{labelsep=period,labelfont={bf,sf},font=small}
@@ -55,8 +48,15 @@
\AtBeginEnvironment{paracol}{\nointerlineskip}
\AfterEndEnvironment{paracol}{\nointerlineskip}
\columnratio{.64}
+\RequirePackage[inline]{enumitem}
\setlist[enumerate]{itemsep=.5ex}
\setlist[itemize]{itemsep=.5ex}
+\RequirePackage[notelinecolor=MidnightBlue,notemargin=.75in]{notebeamer}
+\geometry{margin=1in}
+\RequirePackage[nokeyprefix]{refstyle}
+\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{graphics,graphicx,wallpaper,pagecolor}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
@@ -73,12 +73,10 @@
\let\Bbbk\relax
\RequirePackage[mono=false]{libertine}
}{\relax}
-
\ifdefstring{\LITE@math}{newtx}{%
\RequirePackage[libertine,mono=false]{newtx}
\let\Bbbk\relax
}{\relax}
-
\ifdefstring{\LITE@math}{newtxsf}{%
\RequirePackage{newtxsf,mathrsfs}
\RequirePackage[mono=false]{libertine}
@@ -113,7 +111,7 @@
\RequirePackage{circuitikz,pgfplots,fadingimage}
\usetikzlibrary{arrows,tikzmark,patterns,calc,angles,quotes,intersections}
\tikzset{>=stealth',
-every picture/.append style={%
+ every picture/.append style={%
line join=round,line cap=round,thick
}}
\pgfplotsset{compat=1.8}
@@ -144,17 +142,18 @@ every picture/.append style={%
\IfValueT{#1}{\gdef\@coverpattern{#1}}
\gdef\@cover{#2}}
\RenewDocumentCommand\maketitle{O{MidnightBlue}}{
- \newgeometry{margin=0in}\newpagecolor{#1!10}
+ \begin{titlepage}
+ \newgeometry{margin=0in}\newpagecolor{#1!15}
\tikz[remember picture,overlay]{
\ifcsname @coverhead\endcsname
- \node[rotate=\@coverheadrotate] at ($(current page.center)+(0,.35*\paperheight)$) {\includegraphics[width=\paperwidth]{\@coverhead}};
+ \node [rotate=\@coverheadrotate] at ($(current page.center)+(0,.35*\paperheight)$) {\includegraphics[width=\paperwidth]{\@coverhead}};
\fi
\fill [white,opacity=.5] ($(current page.south west)+(.2*\paperwidth,.6*\paperheight)$) rectangle (current page.south east);
\fill [white,opacity=.5] ($(current page.south west)+(.3*\paperwidth,.7*\paperheight)$) rectangle (current page.south east);
\ifcsname @cover\endcsname
\node [opacity=.5] at ($(current page.south west)+(.65*\paperwidth,.3*\paperheight)$) {\includegraphics[height=.3\paperheight]{\@cover}};
\ifcsname @coverpattern\endcsname
- \fill [pattern=\@coverpattern,pattern color=#1!10!white!50!white!50] ($(current page.south west)+(.3*\paperwidth,0)$) rectangle ++ (.7*\paperwidth,.6\paperheight);
+ \fill [pattern=\@coverpattern,pattern color=#1!15!white!25] ($(current page.south west)+(.3*\paperwidth,0)$) rectangle ++ (.7*\paperwidth,.6\paperheight);
\fi\fi
\node [darkgray] at ($(current page.south west)+(.65*\paperwidth,.65*\paperheight)$) {\Huge\bfseries\@title};
\ifcsname @subtitle\endcsname
@@ -162,9 +161,24 @@ every picture/.append style={%
\fi
\ifcsname @bioinfo\endcsname
\node [gray,opacity=.4] at ($(current page.south)+(.15*\paperwidth,.075*\paperheight)$) {\large\@bioinfo};
- \fi}\restoregeometry\restorepagecolor
+ \fi}
+ \end{titlepage}
+ \restoregeometry\restorepagecolor
+ \if@twoside
+ \clearpage%
+ \newpagecolor{#1!15!white!50}
+ \thispagestyle{empty}%
+ \null\clearpage
+ \fi\restorepagecolor
}
+\RequirePackage{tocloft}
+\setlength{\cftbeforetoctitleskip}{6\p@}
+\setlength{\cftaftertoctitleskip}{24\p@}
+\setlength{\cftbeforesecskip}{3\p@}
+\def\contentsname{\sffamily\scshape\hfill Contents\hfill}
+\setcounter{tocdepth}{1}
+
\let\@chapapptmp\@chapapp
\def\@chapapp{\textsc{\@chapapptmp}}
\def\chapterimage#1{\gdef\@chapterimage{#1}}
@@ -180,7 +194,7 @@ every picture/.append style={%
\fi
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
- \parbox{2cm}
+ \parbox{6em}
{\centering\HUGE\normalfont\bfseries\textcolor{darkgray}\thechapter\vskip4\p@\normalsize\bfseries\textcolor{darkgray}{\bfseries\sffamily\@chapapp}}%
\fi
\fi
@@ -201,18 +215,42 @@ every picture/.append style={%
\interlinepenalty\@M
\huge \bfseries #1\par\nobreak
\vskip 28\p@}}
+\let\cleardoublepage=\clearpage
+\renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
+\ifnum \thechapter=0
+ \vspace*{\fill}
+ {\centering\itshape\Large This page was intentionally left blank.\par}
+ \vspace{\fill}
+\else
+ \clearpage%
+ \thispagestyle{empty}%
+ \null\clearpage
+\fi
+\thispagestyle{empty}\newpage
+\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\let\oldheadrule\headrule
\renewcommand{\headrule}{{\color{gray}\oldheadrule}}
- \renewcommand{\headrulewidth}{1pt}\cfoot{}
- \fancyhead[OL]{\color{darkgray}\nouppercase\leftmark}
- \fancyhead[OR]{\color{darkgray}\sffamily\thepage}
- \fancyhead[ER]{\color{darkgray}\nouppercase\rightmark}
- \fancyhead[EL]{\color{darkgray}\sffamily\thepage}
+ \renewcommand{\headrulewidth}{1pt}
+ \if@twoside\cfoot{}
+ \fancyhead[OL]{\color{darkgray}\nouppercase\leftmark}
+ \fancyhead[OR]{\color{darkgray}\sffamily\thepage}
+ \fancyhead[ER]{\color{darkgray}\nouppercase\rightmark}
+ \fancyhead[EL]{\color{darkgray}\sffamily\thepage}
+ \else
+ \fancyhead[L]{\color{darkgray}\nouppercase\leftmark}
+ \fancyhead[R]{\color{darkgray}\nouppercase\rightmark}
+ \cfoot{\color{darkgray}\sffamily\thepage}
+ \fi
\setlength{\headheight}{14pt}
+\theoremstyle{definition}
+\newtheorem{problem}{\color{DarkGreen}\faIcon{pen-square}~\textsc{\textsf{Problem}}}[chapter]
+\newtheorem*{solution}{\color{MidnightBlue}\faIcon{check-square}~\textsc{\textsf{Solution}}}
+\newtheorem*{scratch}{\color{MidnightBlue}\faIcon{check-square}~\textsc{\textsf{Scratch}}}
+\newtheorem*{note}{\color{DarkRed}\faIcon{info-circle}~\textsc{\textsf{Note}}}
\RequirePackage{comment}
\ifdefstring{\LITE@answer}{hideanswer}{%
\def\ans#1{\underline{\phantom{#1}}}
@@ -232,9 +270,5 @@ every picture/.append style={%
\def\true{\addtocounter{task}{1}\faIcon{check-circle}}
}
\DeclareRobustCommand\solute{\@ifstar\s@solute\@solute}
-
-\theoremstyle{definition}
-\newtheorem{problem}{\color{DarkGreen}\faIcon{pen-square}~\textsc{\textsf{Problem}}}[chapter]
-\newtheorem*{solution}{\color{MidnightBlue}\faIcon{check-square}~\textsc{\textsf{Solution}}}
-\newtheorem*{scratch}{\color{MidnightBlue}\faIcon{check-square}~\textsc{\textsf{Scratch}}}
-\newtheorem*{note}{\color{DarkRed}\faIcon{info-circle}~\textsc{\textsf{Note}}} \ No newline at end of file
+%%
+%% End of file `litesolution.cls'.