summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/colorist
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-08-10 03:01:45 +0000
committerNorbert Preining <norbert@preining.info>2021-08-10 03:01:45 +0000
commit5bc44ca57dbc5dac1c9beae2df2712cdb16dc563 (patch)
tree026a7751d13233572872931696ff7faa58db83a0 /macros/latex/contrib/colorist
parent36320cbe81185b9897691aaae9caae090e675fd0 (diff)
CTAN sync 202108100301
Diffstat (limited to 'macros/latex/contrib/colorist')
-rw-r--r--macros/latex/contrib/colorist/colorart.cls2
-rw-r--r--macros/latex/contrib/colorist/colorbook.cls2
-rw-r--r--macros/latex/contrib/colorist/colorist-doc.pdfbin94096 -> 93925 bytes
-rw-r--r--macros/latex/contrib/colorist/colorist-doc.tex78
-rw-r--r--macros/latex/contrib/colorist/colorist.sty56
5 files changed, 69 insertions, 69 deletions
diff --git a/macros/latex/contrib/colorist/colorart.cls b/macros/latex/contrib/colorist/colorart.cls
index 4f2a247c67..446fa868ad 100644
--- a/macros/latex/contrib/colorist/colorart.cls
+++ b/macros/latex/contrib/colorist/colorart.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{colorart}
- [2021/08/08 A colorful article style]
+ [2021/08/09 A colorful article style]
\def\colorclass@baseclass{article}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
diff --git a/macros/latex/contrib/colorist/colorbook.cls b/macros/latex/contrib/colorist/colorbook.cls
index cefcb450bb..711916d899 100644
--- a/macros/latex/contrib/colorist/colorbook.cls
+++ b/macros/latex/contrib/colorist/colorbook.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{colorbook}
- [2021/08/08 A colorful book style]
+ [2021/08/09 A colorful book style]
\def\colorclass@baseclass{book}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
diff --git a/macros/latex/contrib/colorist/colorist-doc.pdf b/macros/latex/contrib/colorist/colorist-doc.pdf
index 365d097b77..bf1291a619 100644
--- a/macros/latex/contrib/colorist/colorist-doc.pdf
+++ b/macros/latex/contrib/colorist/colorist-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/colorist/colorist-doc.tex b/macros/latex/contrib/colorist/colorist-doc.tex
index d0782450d0..dfebcdfda3 100644
--- a/macros/latex/contrib/colorist/colorist-doc.tex
+++ b/macros/latex/contrib/colorist/colorist-doc.tex
@@ -93,7 +93,7 @@
\title{\colorist{}, write your articles or books in a colorful way}
\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\colorist{} 2021/08/08}}
+\thanks{Corresponding to: \texttt{\colorist{} 2021/08/09}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
\date{August 2021, Beijing}
@@ -136,7 +136,7 @@ With the help of the \ProjLib{} toolkit, also developed by the author, the class
You can directly use \colorart{} or \colorbook{} as your document class. In this way, you can directly begin writing your document, without having to worry about the configurations.
\begin{code}
- \documentclass{colorart} (*{\normalfont or}*) \documentclass{colorbook}
+\documentclass{colorart} (*{\normalfont or}*) \documentclass{colorbook}
\end{code}
\begin{tip}
@@ -146,8 +146,8 @@ You can directly use \colorart{} or \colorbook{} as your document class. In this
You can also use the default classes \textsf{article} or \textsf{book}, and load the \colorist{} package. This way, only the basic styles are set, and you can thus use your preferred fonts and page layout. All the features mentioned in this article are provided.
\begin{code}
- \documentclass{article} (*{\normalfont or}*) \documentclass{book}
- \usepackage{colorist}
+\documentclass{article} (*{\normalfont or}*) \documentclass{book}
+\usepackage{colorist}
\end{code}
\LevelTwoTitle{Example - \colorart}
@@ -169,7 +169,7 @@ Let's first look at a complete example of \colorart{} (the same works for \lebha
\maketitle
\begin{abstract}
- Ceci est un résumé. \dnf<Plus de contenu est nécessaire.>
+ Ceci est un résumé. \dnf<(*\meta{some hint}*)>
\end{abstract}
\begin{keyword}
AAA, BBB, CCC, DDD, EEE
@@ -462,12 +462,12 @@ When referencing a theorem-like environment, it is recommended to use \lstinline
\begin{tip}[Example]
\begin{code}
- \begin{definition}[Strange things] \label{def: strange} ...
+\begin{definition}[Strange things] \label{def: strange} ...
\end{code}
will produce
\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately an one-line space before and after the theorem environment, and there will be a symbol to mark the end of the environment.
+ This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
\end{definition}
\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
@@ -571,9 +571,9 @@ And then define this environment in one of following five ways:
Here is an example. The following code:
\begin{code}
- \NameTheorem[EN]{proofidea}{Idea}
- \CreateTheorem*{proofidea*}
- \CreateTheorem{proofidea}<subsection>
+\NameTheorem[EN]{proofidea}{Idea}
+\CreateTheorem*{proofidea*}
+\CreateTheorem{proofidea}<subsection>
\end{code}
defines an unnumbered environment \lstinline|proofidea*| and a numbered environment \lstinline|proofidea| (numbered within subsection) respectively. They can be used in English context.
The effect is as follows:
@@ -608,45 +608,45 @@ Similarly, there is \lstinline|\needgraph| :
Therefore, the title part can either be written in the usual way, in accordance with the standard class \textsf{article}:
\begin{code}
- \title{(*\meta{title}*)}
- \author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
- \date{(*\meta{date}*)}
- \maketitle
- \begin{abstract}
- (*\meta{abstract}*)
- \end{abstract}
- \begin{keyword}
- (*\meta{keywords}*)
- \end{keyword}
+\title{(*\meta{title}*)}
+\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
+\date{(*\meta{date}*)}
+\maketitle
+\begin{abstract}
+ (*\meta{abstract}*)
+\end{abstract}
+\begin{keyword}
+ (*\meta{keywords}*)
+\end{keyword}
\end{code}
or written in the way of \AmS{} classes:
\begin{code}
- \title{(*\meta{title}*)}
- \author{(*\meta{author}*)}
- \thanks{(*\meta{text}*)}
- \address{(*\meta{address}*)}
- \email{(*\meta{email}*)}
- \date{(*\meta{date}*)}
- \keywords{(*\meta{keywords}*)}
- \subjclass{(*\meta{subjclass}*)}
- \begin{abstract}
- (*\meta{abstract}*)
- \end{abstract}
- \maketitle
+\title{(*\meta{title}*)}
+\author{(*\meta{author}*)}
+\thanks{(*\meta{text}*)}
+\address{(*\meta{address}*)}
+\email{(*\meta{email}*)}
+\date{(*\meta{date}*)}
+\keywords{(*\meta{keywords}*)}
+\subjclass{(*\meta{subjclass}*)}
+\begin{abstract}
+ (*\meta{abstract}*)
+\end{abstract}
+\maketitle
\end{code}
The author information can contain multiple groups, written as:
\begin{code}
- \author{(*\meta{author 1}*)}
- \address{(*\meta{address 1}*)}
- \email{(*\meta{email 1}*)}
- \author{(*\meta{author 2}*)}
- \address{(*\meta{address 2}*)}
- \email{(*\meta{email 2}*)}
- ...
+\author{(*\meta{author 1}*)}
+\address{(*\meta{address 1}*)}
+\email{(*\meta{email 1}*)}
+\author{(*\meta{author 2}*)}
+\address{(*\meta{address 2}*)}
+\email{(*\meta{email 2}*)}
+...
\end{code}
Among them, the mutual order of \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| is not important.
diff --git a/macros/latex/contrib/colorist/colorist.sty b/macros/latex/contrib/colorist/colorist.sty
index f5f9766e09..0374aec614 100644
--- a/macros/latex/contrib/colorist/colorist.sty
+++ b/macros/latex/contrib/colorist/colorist.sty
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesPackage{colorist}
- [2021/08/08 A colorful style for articles and books]
+ [2021/08/09 A colorful style for articles and books]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{%
@@ -109,14 +109,14 @@
\fancypagestyle{fancy}{
\fancyhf{}
\if@twoside
- \fancyfoot[RO]{\small\textcolor{maintext!30!paper}{\lastrightmark}%
- ~~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}}
- \fancyfoot[LE]{\small\leavevmode\llap{\thepage%
- ~~\textcolor{maintext!27!paper}{$|$}}%
- ~~\textcolor{maintext!30!paper}{\lastleftmark}}
+ \fancyfoot[RO]{\sffamily\textcolor{maintext!30!paper}{\small\lastrightmark}%
+ \rlap{~~~~\textcolor{maintext!75!paper}{\textbf{\thepage}}}}
+ \fancyfoot[LE]{\leavevmode\sffamily\llap{\textcolor{maintext!75!paper}{\textbf{\thepage}}%
+ ~~~~}%
+ \textcolor{maintext!30!paper}{\small\lastleftmark}}
\else
- \fancyfoot[R]{\small\textcolor{maintext!30!paper}{\lastrightmark}%
- ~~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}}
+ \fancyfoot[R]{\sffamily\textcolor{maintext!30!paper}{\small\lastrightmark}%
+ \rlap{~~~~\textcolor{maintext!75!paper}{\textbf{\thepage}}}}
\fi
\renewcommand{\headrulewidth}{0pt}
}
@@ -125,13 +125,13 @@
\fancypagestyle{plain}{
\fancyhf{}
\if@twoside
- \fancyfoot[RO]{\small%
- ~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}}
- \fancyfoot[LE]{\small\leavevmode\llap{\thepage%
- ~~\textcolor{maintext!27!paper}{$|$}}}
+ \fancyfoot[RO]{%
+ \sffamily~\rlap{~~~~\textcolor{maintext!75!paper}{\textbf{\thepage}}}}
+ \fancyfoot[LE]{\leavevmode\sffamily\llap{\textcolor{maintext!75!paper}{\textbf{\thepage}}%
+ ~~~}}
\else
- \fancyfoot[R]{\small%
- ~\rlap{\textcolor{maintext!27!paper}{$|$}~~\thepage}}
+ \fancyfoot[R]{%
+ ~\rlap{~~~~\textcolor{maintext!75!paper}{\textbf{\thepage}}}}
\fi
\renewcommand{\headrulewidth}{0pt}
}
@@ -333,8 +333,8 @@
\RequirePackage{titletoc}
\titlecontents{part}
[0em]
- {\addvspace{1.5pc}\filcenter\colorist@sffamily}
- {{\normalfont\color{maintheme}\thecontentslabel}\nopagebreak\\\nopagebreak\uppercase}
+ {\addvspace{1.5pc}\large\filcenter\colorist@sffamily\conditionalbfseries}
+ {\textcolor{maintheme}{\bfseries\thecontentslabel}\nopagebreak\\\nopagebreak\uppercase}
{}
{} % without page number
[\addvspace{.5pc}]
@@ -343,45 +343,45 @@
[2em] % i.e., 0em (part) + 2em
{\addvspace{1pc}\normalfont\color{maintheme}\colorist@sffamily\conditionalbfseries}
{\contentslabel{2em}}
- {\hspace*{-2em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintheme}\contentspage}
+ {\colorist@scshape\hspace*{-2em}}
+ {\titlerule*[10pt]{\parbox{2pt}{\hspace*{-.25pt}\textcolor{maintext!15!paper}{.}}}\color{maintheme}\contentspage}
\titlecontents{section}
[4em] % i.e., 2em (chapter) + 2em
{\addvspace{.3pc}\normalfont\color{maintheme}\colorist@sffamily}
{\contentslabel{1.75em}}
{\hspace*{-1.75em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintheme}\contentspage}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintheme}\contentspage}
\titlecontents{subsection}
[7em] % i.e., 4em (section) + 3em
{\addvspace{.15pc}\normalfont\colorist@sffamily}
{\contentslabel{2.75em}}
{\hspace*{-2.75em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintext!45!paper}\contentspage}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintext!45!paper}\contentspage}
\titlecontents{subsubsection}
[10em] % i.e., 7em (subsection) + 3em
{\normalfont\colorist@sffamily}
{\contentslabel{3.25em}}
{\hspace*{-3.25em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintext!45!paper}\contentspage}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintext!45!paper}\contentspage}
}{
\titlecontents{section}
[2em] % i.e., 0em (part) + 2em
{\addvspace{.3pc}\normalfont\color{maintheme}\colorist@sffamily}
{\contentslabel{1.75em}}
{\hspace*{-1.75em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintheme}\contentspage}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintheme}\contentspage}
\titlecontents{subsection}
- [5em] % i.e., 2em (section) + 3em
+ [4.5em] % i.e., 2em (section) + 2.5em
{\addvspace{.15pc}\normalfont\colorist@sffamily}
- {\contentslabel{2.25em}}
- {\hspace*{-2.25em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintext!45!paper}\contentspage}
+ {\contentslabel{2.15em}}
+ {\hspace*{-2.15em}}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintext!45!paper}\contentspage}
\titlecontents{subsubsection}
- [8em] % i.e., 5em (subsection) + 3em
+ [7.75em] % i.e., 5em (subsection) + 3.25em
{\normalfont\colorist@sffamily}
{\contentslabel{2.75em}}
{\hspace*{-2.75em}}
- {\titlerule*[1em]{\textcolor{maintext!15!paper}{.}}\color{maintext!45!paper}\contentspage}
+ {\titlerule*[10pt]{\parbox{2pt}{\textcolor{maintext!15!paper}{.}}}\color{maintext!45!paper}\contentspage}
}
%%================================