diff options
Diffstat (limited to 'macros/latex/contrib/colorist/colorist-fancy.sty')
-rw-r--r-- | macros/latex/contrib/colorist/colorist-fancy.sty | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/macros/latex/contrib/colorist/colorist-fancy.sty b/macros/latex/contrib/colorist/colorist-fancy.sty index 20c48e44a8..0674eb014d 100644 --- a/macros/latex/contrib/colorist/colorist-fancy.sty +++ b/macros/latex/contrib/colorist/colorist-fancy.sty @@ -2,7 +2,7 @@ %% This is file `colorist/colorist-fancy.sty', %% generated with the docstrip utility. %% -%% Copyright (C) 2021-2023 by Jinwen XU +%% Copyright (C) 2021-2024 by Jinwen XU %% %% This is part of the colorist class series. %% @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {colorist-fancy} - {2023/10/01} {} + {2024/02/20} {} {The fancy style of colorist} \IfPackageLoadedTF { colorist } {} @@ -862,9 +862,11 @@ heading_suffix "}\n" \PassOptionsToPackage { theorem style = { - , remark = emphasis - , observation = emphasis - , theorem = basic-var, lemma = basic-var, proposition = basic-var, corollary = basic-var, property = basic-var, axiom = basic-var, construction = basic-var, theorem-with-name = basic-var + , remark = emphasis, observation = emphasis, commentary = emphasis, motivation = emphasis + , remarks = emphasis, observations = emphasis, commentaries = emphasis, motivations = emphasis + , theorem = basic-var, lemma = basic-var, proposition = basic-var, corollary = basic-var, property = basic-var, axiom = basic-var, construction = basic-var + , theorems = basic-var, lemmas = basic-var, propositions = basic-var, corollaries = basic-var, properties = basic-var, axioms = basic-var, constructions = basic-var + , theorem-with-name = basic-var } } { projlib-theorem } @@ -875,28 +877,28 @@ heading_suffix "}\n" \SetTheorem { proof, proof* } { qed-symbol = { \customqedsymbol } } -\SetTheorem { theorem, lemma, proposition, corollary, property, axiom, construction, theorem-with-name } +\SetTheorem { theorem, theorems, lemma, lemmas, proposition, propositions, corollary, corollaries, property, properties, axiom, axioms, construction, constructions, theorem-with-name } { name style = { heading style = { \color{orange}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } } } -\SetTheorem { definition, assumption, convention, hypothesis, notation } +\SetTheorem { definition, definitions, assumption, assumptions, convention, conventions, hypothesis, hypotheses, notation, notations } { name style = { heading style = { \color{forestgreen}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } } } -\SetTheorem { application, claim, example, exercise, fact, problem, question, recall } +\SetTheorem { application, applications, claim, claims, example, examples, fact, facts, recall, recalls, problem, problems, question, questions } { name style = { heading style = { \color{main-text}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } } } -\SetTheorem { conjecture } +\SetTheorem { conjecture, conjectures } { name style = { heading style = { \color{purple}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } @@ -905,7 +907,7 @@ heading_suffix "}\n" \bool_if:NF \l__projlib_theorem_complexname_bool { - \SetTheorem { theorem, lemma, proposition, corollary, property, axiom, construction, theorem-with-name } + \SetTheorem { theorem, theorems, lemma, lemmas, proposition, propositions, corollary, corollaries, property, properties, axiom, axioms, construction, constructions, theorem-with-name } { name style = { , crefname style = { \color{orange}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } @@ -914,7 +916,7 @@ heading_suffix "}\n" } } - \SetTheorem { definition, assumption, convention, hypothesis, notation } + \SetTheorem { definition, definitions, assumption, assumptions, convention, conventions, hypothesis, hypotheses, notation, notations } { name style = { , crefname style = { \color{forestgreen}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } @@ -923,7 +925,7 @@ heading_suffix "}\n" } } - \SetTheorem { application, claim, example, exercise, fact, problem, question, recall } + \SetTheorem { application, applications, claim, claims, example, examples, fact, facts, recall, recalls, problem, problems, question, questions } { name style = { , crefname style = { \color{main-text}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } @@ -932,7 +934,7 @@ heading_suffix "}\n" } } - \SetTheorem { conjecture } + \SetTheorem { conjecture, conjectures } { name style = { , crefname style = { \color{purple}\colorist_bfseries:\g_colorist_title_font_common_tl\textsc } @@ -948,25 +950,28 @@ heading_suffix "}\n" { \renewcommand* { \marginnotevadjust } { #1 } } -\hook_gput_code:nnn { env/remark/begin } { colorist } +\clist_map_inline:nn { remark, remark*, observation, observation*, commentary, commentary*, motivation, motivation* } { - \if@twoside\checkoddpage - \ifoddpage\reversemarginpar\fi - \else - \reversemarginpar - \fi - \colorist_mpar_adjust:n {-.25em} - \marginnote{ - \colorist_icon_ideabulb:w [0.3] {orange} - \bool_if:NTF \l__colorist_is_book_bool - { - \hspace*{-.2em} - } - { - \hspace*{-.5em} + \hook_gput_code:nnn { env/#1/begin } { colorist } + { + \if@twoside\checkoddpage + \ifoddpage\reversemarginpar\fi + \else + \reversemarginpar + \fi + \colorist_mpar_adjust:n {-.33em} + \marginnote{ + \colorist_icon_ideabulb:w [0.3] {orange} + \bool_if:NTF \l__colorist_is_book_bool + { + \hspace*{-.2em} + } + { + \hspace*{-.5em} + } } - } - \normalmarginpar + \normalmarginpar + } } \hook_gput_code:nnn { env/conjecture/begin } { colorist } { @@ -1047,7 +1052,7 @@ heading_suffix "}\n" \tcolorboxenvironment { #1 } { #2 } } -\colorist_add_colorbox:nn { theorem, lemma, proposition, corollary, property, axiom, construction, definition-corollary, definition-proposition, definition-theorem, theorem-with-name } +\colorist_add_colorbox:nn { theorem, theorems, lemma, lemmas, proposition, propositions, corollary, corollaries, property, properties, axiom, axioms, construction, constructions, definition-corollary, definition-proposition, definition-theorem, theorem-with-name } { enhanced~jigsaw, breakable, lines~before~break=3, left=3.5mm, right=3.5mm, @@ -1055,7 +1060,7 @@ heading_suffix "}\n" opacityframe=0.9, colframe=orange, arc=.7mm } - \colorist_add_colorbox:nn { definition, assumption, convention, hypothesis, notation, corollary-definition, proposition-definition, theorem-definition } +\colorist_add_colorbox:nn { definition, definitions, assumption, assumptions, convention, conventions, hypothesis, hypotheses, notation, notations, corollary-definition, proposition-definition, theorem-definition } { enhanced~jigsaw, breakable, lines~before~break=3, left=4mm, right=4mm, top=1mm, bottom=1mm, @@ -1063,14 +1068,14 @@ heading_suffix "}\n" borderline~west={1.5mm}{0mm}{forestgreen}, arc=.7mm } -\colorist_add_colorbox:nn { application, claim, example, fact, recall } +\colorist_add_colorbox:nn { application, applications, claim, claims, example, examples, fact, facts, recall, recalls } { enhanced~jigsaw, breakable, lines~before~break=3, colback=main-text!5!paper, boxrule=0pt, frame~hidden, arc=.7mm } -\colorist_add_colorbox:nn { conjecture } +\colorist_add_colorbox:nn { conjecture, conjectures } { enhanced~jigsaw, breakable, lines~before~break=3, left=3.5mm, right=3.5mm, @@ -1078,14 +1083,14 @@ heading_suffix "}\n" opacityframe=0.7, colframe=purple, arc=.7mm } -\colorist_add_colorbox:nn { problem } +\colorist_add_colorbox:nn { problem, problems } { enhanced~jigsaw, breakable, lines~before~break=3, colback=yellow!25!paper, boxrule=0pt, frame~hidden, arc=.7mm } -\colorist_add_colorbox:nn { question, exercise, remark, observation } +\colorist_add_colorbox:nn { question, questions, exercise, exercises, remark, remarks, observation, observations, commentary, commentaries, motivation, motivations } { enhanced~jigsaw, breakable, lines~before~break=3, oversize, |