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.sty14
1 files changed, 13 insertions, 1 deletions
diff --git a/macros/latex/contrib/colorist/colorist-fancy.sty b/macros/latex/contrib/colorist/colorist-fancy.sty
index 0afe2b971d..1fddb04d17 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/03/07} {}
+ {2023/07/14} {}
{The fancy style of colorist}
\IfPackageLoadedTF { colorist } {}
@@ -1206,6 +1206,18 @@ heading_suffix "}\n"
\PassOptionsToPackage { amsfashion } { projlib-author }
\RequirePackage { projlib-author }
+%%================================
+%% Special adjustment
+%%================================
+\crefformat { chapter } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \normalfont\textcolor{maintheme} {\larger #1} #3 }
+\labelcrefformat { chapter } { #2 \normalfont\textcolor{maintheme} {\larger #1} #3 }
+\crefformat { section } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \color{maintheme} \g_colorist_title_font_section_tl {#1} #3 }
+\labelcrefformat { section } { #2 \color{maintheme} \g_colorist_title_font_section_tl {#1} #3 }
+\crefformat { subsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \g_colorist_title_font_subsection_tl {#1} #3 }
+\labelcrefformat { subsection } { #2 \g_colorist_title_font_subsection_tl {#1} #3 }
+\crefformat { subsubsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \color{main-text!70!paper} \g_colorist_title_font_subsubsection_tl {#1} #3 }
+\labelcrefformat { subsubsection } { #2 \color{main-text!70!paper} \g_colorist_title_font_subsubsection_tl {#1} #3 }
+
\endinput
%%
%% End of file `colorist/colorist-fancy.sty'.