summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty87
1 files changed, 67 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty
index 8694ec49b78..05c7bdd6b6b 100644
--- a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty
+++ b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty
@@ -7,7 +7,7 @@
%% denisbdoc.dtx (with options: `package')
%% -----------------------------------------------------------------------------
%% denisbdoc --- A personal dirty package for documenting personal classes,
-%% version 0.9.3
+%% version 0.9.4
%%
%% Maintained by Denis Bitouzé
%% E-mail: denis.bitouze@univ-littoral.fr
@@ -16,7 +16,7 @@
%% -----------------------------------------------------------------------------
%%
\RequirePackage{expl3,l3keys2e,xparse}
-\ProvidesExplPackage {denisbdoc} {2021-12-01} {0.9.3}
+\ProvidesExplPackage {denisbdoc} {2022-06-13} {0.9.4}
{A personal package for documenting packages}
\@ifpackagelater { expl3 } { 2012/11/21 }
{ }
@@ -45,7 +45,6 @@
% % to be copied and pasted as they are, and not replaced
% % by "h" and "i"
\RequirePackage[T1]{fontenc}
- \RequirePackage[utf8]{inputenc}
\pdfsuppresswarningpagegroup=1
}{
\RequirePackage{fontspec}
@@ -837,14 +836,14 @@
\DeclareFontShape{T1}{lmtt}{bx}{it}{<-> ssub * lmtt/b/sl}{}%
}
\if@DBD@beamer@not@loaded@
-\ifcsdef{@chapter}{
- \xapptocmd{\@chapter}{%
+\ifcsdef{@chapter}{%
+ \AddToHook{cmd/@chapter/before}{%
\addtocontents{dbwarninglist}{\protect\addvspace{10\p@}}%
\addtocontents{dbremarklist}{\protect\addvspace{10\p@}}%
\addtocontents{dbexamplelist}{\protect\addvspace{10\p@}}%
\addtocontents{dbfaqlist}{\protect\addvspace{10\p@}}%
\addtocontents{dbtablist}{\protect\addvspace{10\p@}}%
- }{}{}
+ }%
}{}
\fi%
\sisetup{locale=FR,detect-all}
@@ -1042,9 +1041,15 @@
\texttt{#1}
% \egroup
}
-\ProvideDocumentCommand{\file}{ m }
+\ProvideDocumentCommand{\file}{ s m }
{%
- \__denisbdoc_file:n {#1}
+ \IfBooleanT {#1} {
+ \IfLanguageName{french}{fichier~}{}%
+ }
+ \__denisbdoc_file:n {#2}
+ \IfBooleanT {#1} {
+ \IfLanguageName{english}{~file}{}%
+ }
}
\NewDocumentCommand{\File}{ m }
{%
@@ -1066,6 +1071,10 @@
{
\__denisbdoc_file:n {#1}%
}
+\NewDocumentCommand{\software}{ m }
+{
+ \__denisbdoc_file:n {#1}%
+}
\NewDocumentCommand{\texstudio}{ }
{
\program{TeXstudio}
@@ -1334,11 +1343,26 @@
\newunicodechar{⟩}{$\rangle$}
\cs_new_protected:Nn \__denisbdoc_meta:nn
{
+ % \bgroup%
+ % \normalfont
+ % \ttfamily%
+ % \itshape%
+ % \textcolor{#1}{$\langle$#2$\rangle$}%
+ % \egroup%
\bgroup%
- \normalfont
- \ttfamily%
- \itshape%
- \textcolor{#1}{$\langle$#2$\rangle$}%
+ \color{#1}%
+ \ensuremath\langle
+ \ifmmode \expandafter \nfss@text \fi
+ {%
+ \meta@font@select
+ \edef\meta@hyphen@restore
+ {\hyphenchar\the\font\the\hyphenchar\font}%
+ \hyphenchar\font\m@ne
+ \language\l@nohyphenation
+ \ttfamily%
+ #2%
+ \meta@hyphen@restore
+ }\ensuremath\rangle
\egroup%
}
\AtBeginDocument{%
@@ -1396,17 +1420,26 @@
\@ifclassloaded{gztarticle}{\tl_set:Nn \g__denisbdoc_number_within_tl {section}}{}%
\@ifclassloaded{nwejmart}{\tl_set:Nn \g__denisbdoc_number_within_tl {section}}{}%
\@ifclassloaded{beamer}{\tl_set:Nn \g__denisbdoc_number_within_tl {section}}{}%
-\newtcbtheorem[list~inside=dbwarninglist,number~within=\g__denisbdoc_number_within_tl,crefname={avertissement}{avertissements}]{dbwarning}{Avertissement}{%
+\IfLanguageName{french}{\tl_const:Nn \c__denisbdoc_warning_title_tl {avertissement}}{
+ \IfLanguageName{english}{\tl_const:Nn \c__denisbdoc_warning_title_tl {warning}}{}%
+}%
+\newtcbtheorem[list~inside=dbwarninglist,number~within=\g__denisbdoc_number_within_tl,crefname={\c__denisbdoc_warning_title_tl}{\c__denisbdoc_warning_title_tl s}]{dbwarning}{\text_titlecase:n\c__denisbdoc_warning_title_tl}{%
colback=red!5!white,
colframe=red!75!black,
dbtcb
}{wa}
-\newtcbtheorem[list~inside=dbexamplelist,number~within=\g__denisbdoc_number_within_tl,crefname={exemple}{exemples}]{dbexample}{Exemple}{%
+\IfLanguageName{french}{\tl_const:Nn \c__denisbdoc_example_title_tl {exemple}}{
+ \IfLanguageName{english}{\tl_const:Nn \c__denisbdoc_example_title_tl {example}}{}%
+}%
+\newtcbtheorem[list~inside=dbexamplelist,number~within=\g__denisbdoc_number_within_tl,crefname={\c__denisbdoc_example_title_tl}{\c__denisbdoc_example_title_tl s}]{dbexample}{\text_titlecase:n\c__denisbdoc_example_title_tl}{%
colback=lime!5!white,
colframe=lime!75!black,
dbtcb,
}{ex}
-\newtcbtheorem[list~inside=dbremarklist,number~within=\g__denisbdoc_number_within_tl,crefname={remarque}{remarques}]{dbremark}{Remarque}{%
+\IfLanguageName{french}{\tl_const:Nn \c__denisbdoc_remark_title_tl {remarque}}{
+ \IfLanguageName{english}{\tl_const:Nn \c__denisbdoc_remark_title_tl {remark}}{}%
+}%
+\newtcbtheorem[list~inside=dbremarklist,number~within=\g__denisbdoc_number_within_tl,crefname={\c__denisbdoc_remark_title_tl}{\c__denisbdoc_remark_title_tl s}]{dbremark}{\text_titlecase:n\c__denisbdoc_remark_title_tl}{%
colback=cyan!5!white,
colframe=cyan!75!black,
dbtcb
@@ -1417,7 +1450,13 @@
% fontupper=\itshape,
dbtcb
}{faq}
-\newtcbtheorem[list~inside=dbtabularlist,number~within=\g__denisbdoc_number_within_tl,crefname={tableau}{tableaux}]{dbtab}{Tableau}{%
+\IfLanguageName{french}{\tl_const:Nn \c__denisbdoc_table_title_tl {tableau}}{
+ \IfLanguageName{english}{\tl_const:Nn \c__denisbdoc_table_title_tl {table}}{}%
+}%
+\IfLanguageName{french}{\tl_const:Nn \c__denisbdoc_tables_title_tl {tableaux}}{
+ \IfLanguageName{english}{\tl_const:Nn \c__denisbdoc_tables_title_tl {tables}}{}%
+}%
+\newtcbtheorem[list~inside=dbtabularlist,number~within=\g__denisbdoc_number_within_tl,crefname={\c__denisbdoc_table_title_tl}{\c__denisbdoc_tables_title_tl}]{dbtab}{\text_titlecase:n\c__denisbdoc_table_title_tl}{%
colback=purple!5!white,
colframe=purple!75!black,
fontupper=\itshape,
@@ -1727,10 +1766,18 @@
% listing~options={rangebeginprefix=\\,rangeendsuffix=\}}
}%
}%
-\renewcommand*{\tcbdocnew}[1]{\scriptsize\sffamily\textcolor{green!50!black}{\bfseries
-Nouv.~:}~#1}
-\renewcommand*{\tcbdocupdated}[1]{\scriptsize\sffamily\textcolor{blue!75!black}{\bfseries
-\textsc{m.-à-j.}~:}~#1}
+\tl_const:Nn \c__denisbdoc_updated_style_tl {\scriptsize\sffamily\color{green!50!black}\bfseries}
+\tl_const:Nn \c__denisbdoc_new_style_tl {\scriptsize\sffamily\color{blue!75!black}\bfseries}
+\IfLanguageName{french}{
+ \tcbset{doclang/updated={\c__denisbdoc_updated_style_tl M.~ à~ j.}\normalcolor\normalfont}
+}{
+ \tcbset{doclang/updated=\c__denisbdoc_updated_style_tl Updated\normalcolor\normalfont}
+}%
+\IfLanguageName{french}{
+ \tcbset{doclang/new=\c__denisbdoc_new_style_tl Nouv.\normalcolor\normalfont}
+}{
+ \tcbset{doclang/new=\c__denisbdoc_new_style_tl New\normalcolor\normalfont}
+}%
\lstset{style=dbtex}
\sys_if_engine_pdftex:TF
{