diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/knowledge/knowledge.sty | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/knowledge/knowledge.sty b/Master/texmf-dist/tex/latex/knowledge/knowledge.sty index fa431f68578..3e48b04ccb8 100644 --- a/Master/texmf-dist/tex/latex/knowledge/knowledge.sty +++ b/Master/texmf-dist/tex/latex/knowledge/knowledge.sty @@ -23,7 +23,7 @@ %% LaTeX version 1999/12/01 or later. %% \usepackage{expl3} -\ProvidesExplPackage{knowledge}{2020/03/05}{1.23}{} +\ProvidesExplPackage{knowledge}{2020/09/22}{1.24}{} %%%%%%%%%% \RequirePackage{l3keys2e} \RequirePackage{etoolbox} @@ -830,8 +830,9 @@ } \cs_new:Nn\knowledge_info:n {\msg_info:nnn{knowledge}{knowledge~info}{#1}} -\cs_new:Nn\knowledge_warning:n - {\msg_warning:nnn{knowledge}{knowledge~warning}{#1}} +\cs_new:Nn\knowledge_warning:n{ + \msg_warning:nnn{knowledge}{knowledge~warning}{#1} + } \cs_new:Nn\knowledge_error:n {\msg_error:nnn{knowledge}{knowledge~error}{#1}} \cs_new:Npn\knowledge_werror:Nn#1 @@ -842,6 +843,28 @@ \cs_generate_variant:Nn\knowledge_info:n{x} \cs_generate_variant:Nn\knowledge_warning:n{x} \cs_generate_variant:Nn\knowledge_error:n{x} +\cs_new:Npn\knowledge_warning:nn{ +\bool_if:NTF\knowledge_warningsilent_bool +\use_none:nn +\msg_warning:nn +} +\cs_new:Npn\knowledge_warning:nnn{ +\bool_if:NTF\knowledge_warningsilent_bool +\use_none:nnn +\msg_warning:nnn +} +\cs_new:Npn\knowledge_warning:nnnn{ +\bool_if:NTF\knowledge_warningsilent_bool +\use_none:nnnn +\msg_warning:nnnn +} +\cs_generate_variant:Nn\knowledge_warning:nnnn{nnxx} +\cs_new:Npn\knowledge_warning:nnnnn{ +\bool_if:NTF\knowledge_warningsilent_bool +\use_none:nnnnn +\msg_warning:nnnnn +} +\cs_generate_variant:Nn\knowledge_warning:nnnnn{nnxxx} \msg_new:nnn{ knowledge }{ knowledge~recursion } { The~knowledges~are~probably~cyclic,~starting~from\\<#1>~(namespace~'#2'),~ currently~at~'#3'.} @@ -959,6 +982,9 @@ \bool_new:N\knowledge_warningstrict_bool \bool_set_false:N\knowledge_warningstrict_bool \KnowledgeConfigureBooleanOption[\knowledge_warningstrict_bool]{strict} +\bool_new:N\knowledge_warningsilent_bool +\bool_set_false:N\knowledge_warningsilent_bool +\KnowledgeConfigureBooleanOption[\knowledge_warningsilent_bool]{silent} \bool_new:N\knowledge_configuration_quotation_bool \KnowledgeConfigureBooleanOptionTF[\knowledge_configuration_quotation_bool]{quotation}{\klactivatequotation}{\kldeactivatequotation} \KnowledgeConfigureTrigger{protect~quotation}{\kl_protect_environment_quotation:n{#1}} @@ -2452,7 +2478,7 @@ \cs_new:Nn\knowledge_kl_error_unknown_firsttime: {\bool_if:cTF{\knowledge_variant_var:n{unknownwarning_bool}} {\IfKnowledgePaperModeF{ - \msg_warning:nnxxx{ knowledge }{ knowledge~unknown } + \knowledge_warning:nnxxx{ knowledge }{ knowledge~unknown } {\exp_not:V\knowledge_kl_key_tl} {\exp_not:V\knowledge_kl_namespace_tl} {\seq_use:Nn\knowledge_visible_instances_seq{|}}} @@ -2484,7 +2510,7 @@ \cs_new:Nn\knowledge_kl_error_unknown_in_scope_firsttime: {\bool_if:cTF{\knowledge_variant_var:n{unknownwarning_bool}} {\IfKnowledgePaperModeF{ - \msg_warning:nnxxx{ knowledge }{ knowledge~unknown~in~scope } + \knowledge_warning:nnxxx{ knowledge }{ knowledge~unknown~in~scope } {\exp_not:V\knowledge_kl_key_tl} {\exp_not:V\knowledge_kl_namespace_tl} {\knowledge_kl_linkscope_tl}}}{} @@ -2518,7 +2544,7 @@ } % \IfKnowledgePaperModeF{ - \msg_warning:nnxx{ knowledge }{ knowledge~unknown~label } + \knowledge_warning:nnxx{ knowledge }{ knowledge~unknown~label } {\exp_not:V\knowledge_kl_key_tl} {\knowledge_kl_linkscope_tl}} % |