summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/colorist/colorist-fancy.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/colorist/colorist-fancy.sty')
-rw-r--r--macros/latex/contrib/colorist/colorist-fancy.sty15
1 files changed, 14 insertions, 1 deletions
diff --git a/macros/latex/contrib/colorist/colorist-fancy.sty b/macros/latex/contrib/colorist/colorist-fancy.sty
index 75e8f0eecd..773190630b 100644
--- a/macros/latex/contrib/colorist/colorist-fancy.sty
+++ b/macros/latex/contrib/colorist/colorist-fancy.sty
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{colorist-fancy}
- {2023/09/28} {}
+ {2023/09/30} {}
{The fancy style of colorist}
\IfPackageLoadedTF { colorist } {}
@@ -619,6 +619,7 @@ heading_suffix "}\n"
\vspace{2pc plus .5pc minus .3pc}
}
+%% Prevent column break before the first sub-entry in the index
\bool_new:N \l__colorist_if_first_subitem_bool
\renewcommand*{\@idxitem}
{
@@ -709,6 +710,7 @@ heading_suffix "}\n"
\tl_use:c { c_colorist_r_mathparen_ \l_projlib_language_current_languagetype_tl _tl }
}
+%% Change equation numbers to gray
\def\tagform@#1{\maketag@@@{\textcolor{.!39!paper}{(\ignorespaces#1\unskip\@@italiccorr)}}}
\PassOptionsToPackage { nopatch = eqnum } { microtype }
@@ -755,10 +757,18 @@ heading_suffix "}\n"
{\color{main-text!50!paper}\thmnote{\hspace{.4em} \colorist_insert_l_mathparen: #3 \colorist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace}
}
+\def\@endtheorem{\popQED\endtrivlist\@endpefalse}
+
\newcommand{\customqedsymbol}{
\makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
\let\qedsymbol\customqedsymbol
+%% Special treatments for the Q.E.D. symbol
+\def\noQED{\let\popQED\relax}
+\let\noqed\noQED
+\def\proofless{\pushQED{\qed}}
+
+%% The style of the theorem-type environment that will be wrapped into the color box
\bool_if:NTF \l__colorist_theorem_in_new_line_bool
{
\newtheoremstyle{basic}
@@ -801,10 +811,12 @@ heading_suffix "}\n"
\theoremstyle{basic}
+%% The style of remark-type environments
\newtheoremstyle{emphasis}
{0pt}{0pt}{\itshape}{0pt}{}{}{0pt}
{\thmnote{\normalfont\sffamily\color{main-text}#3\hspace*{0.5em}}}
+%% Custom proof style
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}
\normalfont \topsep6\p@\@plus6\p@\relax
@@ -1081,6 +1093,7 @@ heading_suffix "}\n"
opacityframe=0, opacityback=0
}
+%% Connect adjacent definition-type environments
\NewDocumentCommand \AfterEnvEnd { +m }
{ \colorist_after_env_end:nw { #1 } }
\cs_new_protected:Npn \colorist_after_env_end:nw #1 #2