texlive[71017] Master/texmf-dist: litesolution (20apr24)

commits+karl at tug.org commits+karl at tug.org
Sat Apr 20 21:26:32 CEST 2024


Revision: 71017
          https://tug.org/svn/texlive?view=revision&revision=71017
Author:   karl
Date:     2024-04-20 21:26:32 +0200 (Sat, 20 Apr 2024)
Log Message:
-----------
litesolution (20apr24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/litesolution/README.md
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
    trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/litesolution/figure/
    trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg
    trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf
    trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf
    trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.tex

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/litesolution/Beautiful-realities.jpeg
    trunk/Master/texmf-dist/doc/latex/litesolution/schrodinger.pdf

Deleted: trunk/Master/texmf-dist/doc/latex/litesolution/Beautiful-realities.jpeg
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litesolution/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/README.md	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/README.md	2024-04-20 19:26:32 UTC (rev 71017)
@@ -3,7 +3,7 @@
 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).**
+[here](https://github.com/xiamyphys/litesolution).**
 
 ## License
 

Added: trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg	2024-04-20 19:26:32 UTC (rev 71017)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figure/Beautiful-realities.jpeg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf	2024-04-20 19:26:32 UTC (rev 71017)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figure/schrodinger.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf	2024-04-20 19:26:32 UTC (rev 71017)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.tex	2024-04-20 19:26:32 UTC (rev 71017)
@@ -0,0 +1,44 @@
+\documentclass[svgnames,tikz]{standalone}
+
+\usepackage{xcolor}\let\Bbbk\relax
+\usepackage{newtxtext,mtpro2,cancel,physics2,xfrac}
+\usephysicsmodule{ab.legacy}
+\usetikzlibrary{tikzmark}
+\tikzset{every node/.style={align=center,MidnightBlue!30},
+          every path/.style={MidnightBlue!30,line cap=round}}
+
+\begin{document}\tikz{
+    \node [above right] at (0,0) {$\color{MidnightBlue!30}
+      \tikzmarknode a\Psi=\displaystyle\tikzmarknode b\int
+      \tikzmarknode c{\mathrm e}^{
+        \sfrac{\tikzmarknode d{\mathrm i}}{\tikzmarknode e\hbar}
+        \int\ab(\frac{\tikzmarknode fR}{16\pi \tikzmarknode gG}-\frac14\tikzmarknode hF^2
+        +\overline\psi\mathrm i\tikzmarknode{i}{\cancel D}\psi-\tikzmarknode j\lambda
+        \tikzmarknode k{\varphi\overline\psi}\psi
+        +\abs{D\tikzmarknode l\varphi}^2-V(\varphi))}$};
+      \draw ([yshift=-1ex] a.south) coordinate (A) --++ (0,-.5)
+       node [scale=.45,below] {Schr\"odinger\\\footnotesize wave function};
+      \draw ([yshift=1ex] b.north) coordinate (B) --++ (0,.55)
+       node [scale=.45,above] {\footnotesize path integral\\Feynmann};
+      \draw ([yshift=-1ex] c.south) coordinate (C) --++ (0,-.7)
+       node [scale=.45,below] {Euler\\\footnotesize exponential};
+      \draw ([yshift=1ex] d.north) coordinate (D) --++ (0,.45)
+       node [scale=.45,above,xshift=1ex] {\footnotesize imaginary unit};
+      \draw ([yshift=-1ex] e.south) coordinate (E) --++ (0,-.5)
+       node [scale=.45,below,xshift=2ex] {Planck\\\footnotesize quantum};
+      \draw ([yshift=1ex] f.north) coordinate (F) --++ (0,.7)
+       node [scale=.45,above] {\footnotesize spacetime-relativity\\Einstein};
+      \draw ([yshift=-1ex] g.south) coordinate (G) --++ (0,-.5)
+       node [scale=.45,below] {Newton\\\footnotesize gravitation};
+      \draw ([yshift=1ex] h.north) coordinate (H) --++ (0,.5)
+       node [scale=.45,above,xshift=5ex] {\footnotesize strong/weak/e.m. interactions\\Maxwell Yang-Mills};
+      \draw ([yshift=-1ex] i.south) coordinate (I) --++ (0,-.6)
+       node [scale=.45,below] {Dirac\\\footnotesize relativistic wave function};
+      \draw ([yshift=-1ex] j.south) coordinate (J) --++ (0,-.2)
+       node [scale=.45,below,xshift=3ex] {Kobayashi-Maskawa\\\footnotesize CKM matrix};
+      \draw ([yshift=1ex] k.north) coordinate (K) --++ (0,.5)
+       node [scale=.45,above] {\footnotesize $\varphi$ - $\psi$ interaction\\Yukawa};
+      \draw ([yshift=-1ex] l.south) coordinate (L) --++ (0,-.3)
+       node [scale=.45,below] {Higgs\\\footnotesize Boson};
+      \foreach \x in {A,B,...,L}\fill [MidnightBlue!30] (\x) circle (.025);}
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figure/universe.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex	2024-04-20 19:26:32 UTC (rev 71017)
@@ -1,33 +1,30 @@
 \documentclass[ans,mtpro2]{litesolution}
 
 \usepackage[listings]{tcolorbox}
+\usepackage{fancyvrb}
 
-\cover{schrodinger}
+\lstset{language=[LaTeX]TeX,basicstyle=\small\ttfamily,breaklines=true,columns=flexible}
 \title{\sffamily The \pkg{LiteSolution} Class}
 \subtitle{\sffamily\scshape Hangzhou Dianzi University}
-\bioinfo{\scshape\sffamily Mingyu Hsia, \href{mailto:xiamyphys at gmail.com}{\ttfamily xiamyphys at gmail.com} | \today, Version 2.1a}
-\coverdecoration{$\Psi=\displaystyle\int\e^{\frac i\hbar\int\ab(\frac{R}{16\pi G}-\frac14F^2+\overline\psi i\cancel D\psi-\lambda\varphi\overline\psi\psi+\abs{D\varphi}^2-V(\varphi))}$}
+\bioinfo{\scshape\sffamily Mingyu Hsia, \href{mailto:xiamyphys at gmail.com}{\ttfamily xiamyphys at gmail.com} | \today, Version 2.1c}
+\cover[checkerboard]{schrodinger}\coverhead[5]{universe}
 
 \begin{document}
+\maketitle[MidnightBlue]
 
-\maketitle
-
 \chapterimage{\UPFadingImage[trim={0 {.9\paperheight} 0 0},clip]{Beautiful-realities}}
+\chapter{An Introduction to The \pkg{LiteSolution} Class}
 
-\chapter{An Introduction to the \pkg{LiteSolution} Class}
-
 \section{Introduction}
 
-This is the document for \pkg{litesolution} template, which provides a lite design of the solution of test paper.
+This is the document for the \pkg{litesolution} class, which provides a lite design for typesetting solutions of exams, textbooks or other exercises.
 
-\subsection{The purpose of this template}
+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/litesolution}{GitHub}.
 
-This template provides a fresh design for typesetting solutions of exams, textbooks or other exercises. 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/litesolution}{GitHub}.
+\subsection{Installing \pkg{litesolution} and loading it}
 
-\subsection{Installing \pkg{Litesolution} and loading it}
+Simply download \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. However, I strongly suggest to use terminal to install and update all packages to the latest version
 
-Simply download \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. However, I strongly suggest to use terminal to install and update all packages to the latest version
-
 \begin{verbatim}
     sudo tlmgr update --self --all
 \end{verbatim}
@@ -35,10 +32,11 @@
 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.
 
-\section{Global Options of \pkg{Litesolution}}
+The test environments are macOS + Mac\hologo{TeX} 2024 / Overleaf / Ubuntu 22.04.2 + \hologo{TeX} Live 2024 and they all work fine for \hologo{pdfLaTeX} and \hologo{XeLaTeX} compilers. Windows and Unix platforms compatibility unknown.
 
+\section{Global Options of this Class}
+
 \begin{verbatim}
     \documentclass[<options>]{litesolution}
 \end{verbatim}
@@ -45,32 +43,36 @@
 
 \subsection{The \mode{answer} option}
 
-This option has two modes, \mode{ans} and \mode{noans}, which can show or hide answers. After the \mode{noans} mode is enabled, the environment \cmd{solution} will be deactivated and contents in command \cmd{ans} will be hidden.
+The \mode{ans} and \mode{noans} modes can show or hide contents in \cmd{solution} environment and \cmd{ans} command.
 
 \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.
+The \mode{separate} and \mode{continuous} modes can make the page number between chapters be reset or continuous.
 
+\subsection{The \mode{math} option}
+
+The \mode{mtpro2} and \mode{newtx} 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{Cover Configurations}
 
 \subsection{The cover page configurations}
 
 \begin{verbatim}
-    \cover{<image name>}  \title{<title>}  \subtitle{<vertical subtitle>}
-    \bioinfo{<bioinfo on bottom>}          \coverdecoration{<above contents>}
+    \title{<content>}               \subtitle{<content>}
+    \bioinfo{<content>}             \cover[<pattern>]{<image>}
+    \coverhead[<angle>]{<image>}    \coverhead*[<angle>]{<content>}
+
+    \begin{document}                \maketitle[<color>]
 \end{verbatim}
 
-The same as the \pkg{book} class, the macro title could not be omitted, or it will return an error. The following is the cover configurations of this document
-
 \begin{verbatim}
     \title{\sffamily The \pkg{litesolution} Class}
     \subtitle{\sffamily\scshape Hangzhou Dianzi University}
     \bioinfo{\scshape\sffamily Mingyu Hsia, \href{mailto:xiamyphys at gmail.com}
-        {\ttfamily xiamyphys at gmail.com} | \today, Version 2.1a}
-    \coverdecoration{$\Psi=\displaystyle\int\e^{\frac i\hbar
-        \int\ab(\frac{R}{16\pi G}-\frac14F^2+\overline\psi i\cancel D\psi
-        -\lambda\varphi\overline\psi\psi+\abs{D\varphi}^2-V(\varphi))}$}
-    \cover{schrodinger}
+            {\ttfamily xiamyphys at gmail.com} | \today, Version 2.1a}
+    \cover[checkerboard]{schrodinger}       \coverhead[5]{universe}
+
+    \begin{document}                \maketitle[Midnightblue]
 \end{verbatim}
 
 \subsection{The chapter head configurations}
@@ -101,7 +103,10 @@
 
 \subsection{Other preset commands}
 
-This template provides the same math commands as \S 1.5 of the template \pkg{LiteBook} described additionly.
+\begin{verbatim}
+    \def\i{\mathrm i}       \def\e{\mathrm e}       \def\T{\mathsf T}
+    \let\leq\leqslant       \let\geq\geqslant
+\end{verbatim}
 
 \section{Preset \pkg{amsthm} Environments}
 
@@ -134,17 +139,44 @@
 \end{tcblisting}    
 \end{minipage}
 
-\appendix
-\def\thesection{Appendix \Alph{section}}
+\subsection{Equation test}
 
-\section{An Introduction to The \pkg{notebeamer} Class}
+\[\i\hbar\partial_t\psi(\mathbf x,t)=-(\i\hbar c\bm\alpha\cdot\bm\nabla+\beta mc^2)\psi(\mathbf x,t)\]
 
-This class provides an easy way to input Beamers on note papers and make notebook quickly. It's optimized for Goodnotes' default paper size and there won't have difference between papers.
+\section{Preset packages}
 
-In the future, this class will be redesigned to a package that optimized for the \pkg{litesolution} class.
+This template has preset many packages. The following packages are the common ones
 
-\section{An Introduction to The \pkg{fadingimage} Package}
+\begin{table}[htbp]
+    \centering
+    \begin{tabular}{l l l l l l l l}
+        \toprule
+        \pkg{amsthm} & \pkg{bm} & \pkg{booktabs} & \pkg{cancel} & \pkg{caption} & \pkg{circuitikz} & \pkg{datetime} & \pkg{derivative}\\
+        \midrule
+        \pkg{diagbox} & \pkg{esvect} & \pkg{extarrows} & \pkg{fancyhdr} & \pkg{fixdif} & \pkg{fontawesome5} & \pkg{geometry} & \pkg{indentfirst}\\
+        \midrule
+        \pkg{lipsum} & \pkg{multicol} & \pkg{multirow} & \pkg{nicematrix} & \pkg{paracol} & \pkg{pgfplots} & \pkg{physics2} & \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{Related packages}
+
+\subsection{The \pkg{notebeamer} package}
+
+This package provides an easy way to input slides on note papers quickly for making annotations.
+
+\subsection{The \pkg{fadingimage} package}
+
 This package provides three commands for adding fading full width picture at the top or bottom of a page.
 
+\clearpage\appendix\def\thesection{Appendix}
+
+\section{Original code for the cover head}
+
+\setstretch{1.15}
+\lstinputlisting{figure/universe.tex}
+
 \end{document}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/litesolution/schrodinger.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls	2024-04-20 19:26:20 UTC (rev 71016)
+++ trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls	2024-04-20 19:26:32 UTC (rev 71017)
@@ -15,12 +15,12 @@
 %%                                                           *
 %%   This work consists of the files litesolution.cls,       *
 %%                               and README.md.              *
-%%   available at https://github.com/xiamyphys/LitSolution   *
+%%   available at https://github.com/xiamyphys/litsolution   *
 %% ***********************************************************
 % !Mode:: "TeX:UTF-8"
 \NeedsTeXFormat{LaTeX2e}
 \PassOptionsToPackage{svgnames}{xcolor}
-\ProvidesClass{litesolution}[2024/04/17 v2.1a LiteSolution document class]
+\ProvidesClass{litesolution}[2024/04/20 v2.1c LiteSolution document class]
 \RequirePackage{kvoptions}
 \RequirePackage{etoolbox}
 \SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
@@ -42,11 +42,12 @@
 \ProcessKeyvalOptions*\relax
 \LoadClass[letterpaper,11pt,openany]{book}
 
-\RequirePackage{geometry,setspace,datetime,caption,booktabs,multicol,diagbox,paracol,float,enumitem}
+\RequirePackage{setspace,datetime,caption,booktabs,multicol,diagbox,paracol,enumitem}
+\RequirePackage[notelinecolor=MidnightBlue,notemargin=.75in]{notebeamer}
 \RequirePackage[nokeyprefix]{refstyle}
 \newref{fig}{name={\sffamily\bfseries Figure~}}
 \newref{tab}{name={\sffamily\bfseries Table~}}
-\geometry{margin = 1in}
+\geometry{margin=1in}
 \linespread{1.3}
 \ddmmyyyydate
 \captionsetup{labelsep=period,labelfont={bf,sf},font=small}
@@ -58,7 +59,7 @@
 \setlist[enumerate]{itemsep=.5ex}
 \setlist[itemize]{itemsep=.5ex}
 
-\RequirePackage{graphics,graphicx,wallpaper}
+\RequirePackage{graphics,graphicx,wallpaper,pagecolor}
 \graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
 
 \RequirePackage{ifxetex}
@@ -79,13 +80,11 @@
   \RequirePackage[libertine,mono=false]{newtx}
 }{\relax}
 \let\openbox\relax\def\hmmax{0}\def\bmmax{0}
-\RequirePackage{amsthm,mdframed,physics2,bm,fixdif,derivative,cancel,extarrows,siunitx,xfrac,nicematrix}
+\RequirePackage{amsthm,physics2,bm,fixdif,derivative,cancel,extarrows,siunitx,xfrac,nicematrix}
 \usephysicsmodule{ab,braket,diagmat,doubleprod,xmat,ab.legacy,op.legacy}
 \RequirePackage[e]{esvect}
 \AtBeginDocument{%
-  \def\i{\mathrm i}
-  \def\e{\mathrm e}
-  \def\T{\mathsf T}
+  \def\i{\mathrm i}\def\e{\mathrm e}\def\T{\mathsf T}
   \let\leq\leqslant\let\geq\geqslant
   \setlength{\abovedisplayskip}{9pt}
   \setlength{\belowdisplayskip}{9pt}
@@ -99,13 +98,13 @@
 \AddToHook{cmd/faIcon/after}{\endgroup}
 
 \RequirePackage{circuitikz,pgfplots,fadingimage}
-\usetikzlibrary{arrows,tikzmark,patterns,calc,fadings,angles,quotes,intersections,}
+\usetikzlibrary{arrows,tikzmark,patterns,calc,fadings,angles,quotes,intersections}
 \tikzset{>=stealth',
 every picture/.append style={%
     line join=round,line cap=round,thick
   }}
 \pgfplotsset{compat=1.8}
-\ctikzset{capacitors/width=0.12,capacitors/height=0.3}
+\ctikzset{capacitors/width=.12,capacitors/height=.3}
 \NewDocumentCommand\length{ O{} m m m m m }{%
   \node [#1] at ($.5*($#3+#2$)$) {#4}#6
   \draw [->|,thick] ($.5*($#3+#2+#5$)$) -- #3#6
@@ -125,30 +124,39 @@
 
 \def\subtitle#1{\gdef\@subtitle{#1}}
 \def\bioinfo#1{\gdef\@bioinfo{#1}}
-\def\coverdecoration#1{\gdef\@coverdecoration{#1}}
-\def\cover#1{\gdef\@cover{#1}}
-\renewcommand*\maketitle{
-  \newgeometry{margin = 0in}
+\NewDocumentCommand\coverhead{ s O{0} m }{
+  \IfBooleanTF{#1}{
+    \gdef\s at coverheadrotate{#2}
+    \gdef\s at coverhead{#3}}{
+    \gdef\@coverheadrotate{#2}
+    \gdef\@coverhead{#3}
+    }}
+\NewDocumentCommand\cover{ o m }{
+  \IfValueT{#1}{\gdef\@coverpattern{#1}}
+  \gdef\@cover{#2}}
+\RenewDocumentCommand\maketitle{O{MidnightBlue}}{
+  \newgeometry{margin=0in}\newpagecolor{#1!10}
   \tikz[remember picture,overlay]{
-    \fill [MidnightBlue!10] (current page.north west) rectangle (current page.south east);
+    \ifcsname @coverhead\endcsname
+      \node[rotate=\@coverheadrotate] at ($(current page.center)+(0,.35*\paperheight)$) {\includegraphics[width=\paperwidth]{\@coverhead}};
+    \fi
+    \ifcsname s at coverhead\endcsname
+      \node[scale=2,color=#1!30,rotate=\s at coverheadrotate] at ($(current page.center)+(0,.35*\paperheight)$) {\s at 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}};
-      \foreach \a in {0,1,...,50}
-        \fill [pattern=checkerboard,pattern color=MidnightBlue!10!white!50!white!50] ($(current page.south west)+(.3*\paperwidth,0)$) rectangle ++ (.7*\paperwidth,.6\paperheight);
-    \fi
+      \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);
+    \fi\fi
     \node [darkgray] at ($(current page.south west)+(.65*\paperwidth,.65*\paperheight)$) {\Huge\bfseries\@title};
     \ifcsname @subtitle\endcsname
-      \node [rotate=90,gray!60] at ($(current page.south west)+(.25*\paperwidth,.3*\paperheight)$) {\huge\bfseries\@subtitle};
+      \node [rotate=90,gray,opacity=.6] at ($(current page.south west)+(.25*\paperwidth,.3*\paperheight)$) {\huge\bfseries\@subtitle};
     \fi
-    \ifcsname @coverdecoration\endcsname
-    \node[opacity=0.5,scale=2,color=MidnightBlue!40,rotate=15] at ($(current page.center)+(0,.35*\paperheight)$) {\@coverdecoration};
-    \fi
     \ifcsname @bioinfo\endcsname
-      \node [gray!40] at ($(current page.south)+(.15*\paperwidth,.075*\paperheight)$) {\large\@bioinfo};
-    \fi
-  }\restoregeometry
+      \node [gray,opacity=.4] at ($(current page.south)+(.15*\paperwidth,.075*\paperheight)$) {\large\@bioinfo};
+    \fi}\restoregeometry\restorepagecolor
 }
 
 \def\chapterimage#1{\gdef\@chapterimage{#1}}
@@ -200,16 +208,10 @@
   \AtBeginDocument{%
     \excludecomment{solution}\excludecomment{note}
     \let\endsolution\relax\let\endnote\relax}
-  \def\true{%
-    \addtocounter{task}{1}%
-    \thetask
-  }
+  \def\true{\addtocounter{task}{1}\thetask}
 }{\relax}
 \def\solute{\@ifstar\s at solute\@solute}
 
-\newtheoremstyle{tags}{3pt}{3pt}{}{}{}{}{.5em}
-  {\bfseries  \thmname{#1} \thmnumber{#2}. \hfill \thmnote{\normalfont\faIcon{rss}~#3}\\\leavevmode}
-\theoremstyle{tags}
 \theoremstyle{definition}
 \newtheorem{problem}{\scshape\sffamily\color{DarkGreen}\faIcon{pen-square}~\scshape Problem}[chapter]
 \def\theproblem{\arabic{problem}}



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