diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/denisbdoc')
-rw-r--r-- | Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty | 180 |
1 files changed, 105 insertions, 75 deletions
diff --git a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty index 98f112c427b..a5da421a734 100644 --- a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty +++ b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty @@ -5,9 +5,8 @@ %% The original source files were: %% %% denisbdoc.dtx (with options: `package') -%% ----------------------------------------------------------------------- %% ----------------------------------------------------------------------------- -%% denisbdoc --- A personal dirty package for documenting packages, version 0.2 +%% denisbdoc --- A personal dirty package for documenting packages, version 0.3 %% %% Maintained by Denis Bitouz'e %% E-mail: denis.bitouze@lmpa.univ-littoral.fr @@ -16,7 +15,7 @@ %% ----------------------------------------------------------------------------- %% \RequirePackage{expl3,l3keys2e,xparse} -\ProvidesExplPackage {denisbdoc} {2016/04/04} {0.2} +\ProvidesExplPackage {denisbdoc} {2016/06/10} {0.3} {A personal package for documenting packages} \@ifpackagelater { expl3 } { 2012/11/21 } { } @@ -43,9 +42,7 @@ \RequirePackage{fixfoot}% \RequirePackage[inline]{enumitem}% \RequirePackage{afterpage}% -\RequirePackage{tabulary}% \RequirePackage{calc}% -\RequirePackage{subcaption}% \RequirePackage{siunitx}% \RequirePackage[nottoc,notindex]{tocbibind}% \RequirePackage{varioref}% @@ -63,44 +60,33 @@ \RequirePackage{ifpdf}% \RequirePackage{amssymb}% \RequirePackage{tocvsec2}% +\RequirePackage{ltxcmds}% \RequirePackage{csquotes}% \RequirePackage{tikz}% \RequirePackage[xindy]{imakeidx} -\RequirePackage{scrlfile} -\BeforePackage{doc}{\let\oldmaketitle\maketitle} -\AfterPackage{doc}{\let\maketitle\oldmaketitle} \let\EUR\relax \@ifpackageloaded{tcolorbox}{% }{% \RequirePackage{tcolorbox}% }% -\ExplSyntaxOff -\ifpdf -\tcbuselibrary{listingsutf8} -\else -\tcbuselibrary{listings} -\RequirePackage{fontawesome}% -\lstMakeShortInline[style=dbtex]^^c3^^97 -\fi -\tcbuselibrary{% - documentation,theorems,breakable,skins% -} -\usetikzlibrary{trees,backgrounds,fit,calc,positioning} -\RequirePackage{attachfile2} -\ExplSyntaxOn \RequirePackage{comment}% \RequirePackage{path}% \RequirePackage{textcase}% +\RequirePackage{fontawesome}% \@ifpackageloaded{biblatex}{% }{% \RequirePackage[backend=biber,style=authortitle,autopunct=false,useprefix=true,backref,dashed=false]{biblatex}% }% \RequirePackage{babel}% \RequirePackage[nodayofweek]{datetime}% +\RequirePackage{subcaption}% \@ifpackageloaded{hyperref}{% + % \message{^^J^^JDeja~charge~!^^J^^J}} }{% - \RequirePackage{hyperref}% + \RequirePackage[hyperfootnotes=false]{hyperref}% + % \message{^^J^^JPas~deja~charge~!^^J^^J}} }% +\RequirePackage{attachfile2} \@ifpackageloaded{nameref}{% }{% \RequirePackage{nameref}% @@ -115,7 +101,7 @@ }% \@ifpackageloaded{glossaries}{% }{% - \RequirePackage[nowarn]{glossaries}% + \RequirePackage[nowarn,toc,hyperfirst=false]{glossaries}% \makeglossaries \setglossarystyle{indexhypergroup} \setacronymstyle{long-sc-short} @@ -124,6 +110,32 @@ }{% \RequirePackage{cleveref}% }% +\ltx@iffilelater{frenchb.ldf}{2016/03/20}{% +}{% + \DeclareRobustCommand*{\NoAutoSpacing}{\FBAutoSpaceGuillfalse% + \ifFB@active@punct\noautospace@beforeFDP\shorthandoff{;:!?}\fi% + \ifFB@xetex@punct\XeTeXinterchartokenstate=0 \fi% + \ifFB@luatex@punct\FB@addDPspace=0 \FB@addGUILspace=0 \fi% + }% +} +\ExplSyntaxOff +\ifpdf +\tcbuselibrary{listingsutf8} +\else +\tcbuselibrary{listings} +\pdftex_if_engine:TF + { + \lstMakeShortInline[style=dbtex]| + }{ + \lstMakeShortInline[style=dbtex]^^c3^^97 + } +\fi +\tcbuselibrary{% + documentation,theorems,breakable,skins% +} +\usetikzlibrary{trees,backgrounds,fit,calc,positioning} +\attachfilesetup{color=Hyperlink} +\ExplSyntaxOn \ifundef{\inpenc@prehook}{% }{% \inpenc@prehook=\expandafter{\the\inpenc@prehook @@ -136,8 +148,8 @@ }% \DeclareUrlCommand\urldirectory{\urlstyle{tt}} \ExplSyntaxOn -\tl_const:Nn \c__denisbdoc_template_string_tl {canevas} -\tl_const:Nn \c__denisbdoc_sample_string_tl {specimens} +\tl_const:Nn \c__denisbdoc_template_string_tl {../exemples/canevas} +\tl_const:Nn \c__denisbdoc_sample_string_tl {../exemples/specimen} \tl_const:Nn \c__denisbdoc_flattemplate_string_tl {\c__denisbdoc_template_string_tl/a-plat} \tl_const:Nn \c__denisbdoc_flatsample_string_tl {\c__denisbdoc_sample_string_tl/a-plat} \tl_const:Nn \c__denisbdoc_treetemplate_string_tl {\c__denisbdoc_template_string_tl/en-arborescence} @@ -414,7 +426,10 @@ committeemembers,estimateddefensedate,seniorresearcher,supervisors-in-committee,% supervisors-in-committee-pl,aim,aimand,examiners,examiners-pl,guests,guests-pl,mcf,mcf*,% professor,referees,referees-pl,website,defendedon,supervisedby,thesisdefendedby,thesistitle,% - inprogress,universitydepartment,inprogressfoottext,submittedfoottext + inprogress,universitydepartment,inprogressfoottext,submittedfoottext,% + coinstitute,company,institute,cosupervisor,cosupervisor*,comonitor,% + comonitor*,supervisor,supervisor*,academicfield,doctoralschool,keywords,% + ordernumber,committeepresident,committeepresident*,speciality% },% alsoletter={!-*1234560}% }% @@ -469,7 +484,7 @@ printauthorsdetails,date,title,author,maketitle,item,printbibliography,% vec,surname,usetikzlibrary,arccos,arcsin,arctan,log,lg,le,leq,ge,geq,set,% nwejmverb,th,epigraph,keywords,msc,acknowledgments,E,I,grad,Div,curl,rot,supp,% - DeclareMathOperator,BinaryOperators,dif% + DeclareMathOperator,BinaryOperators,dif,articlesetup% },% % Environments' names morekeywords={% @@ -487,7 +502,8 @@ number,month,year,publisher,address,phone,fax,email,url,issn,isbn,short,minishort,notintoc,% abstract,frenchtitle,englishtitle,% title,label,% pictogram,list,help,diameter,textwidth,xshift,yshift,% - affiliation,affiliationtagged,email,minibio,photo,webpage,frontcover,bibkey,copyright% + affiliation,affiliationtagged,email,minibio,photo,webpage,frontcover,bibkey,copyright,% + gradient% },% morekeywords=[3]{% Values of key-value lists true,false,theorem,definition,proof% @@ -515,6 +531,7 @@ \addtocontents{dbremarklist}{\protect\addvspace{10\p@}}% \addtocontents{dbexamplelist}{\protect\addvspace{10\p@}}% \addtocontents{dbfaqlist}{\protect\addvspace{10\p@}}% + \addtocontents{dbtablist}{\protect\addvspace{10\p@}}% }{}{} \sisetup{locale=FR,detect-all} \lstdefinestyle{dbtex}{% @@ -556,7 +573,8 @@ breakable, fonttitle=\bfseries, enlarge~top~by=1mm, - separator~sign~dash + separator~sign~dash, + label~separator=- }% }% \tcbset{% @@ -624,25 +642,31 @@ } } } -\cs_new_protected:Nn \__denisbdoc_package:nnn -{ - \texorpdfstring{% - \IfBooleanTF {#1} - { - \tl_if_empty:nTF {#2} - {% - \href{http://www.ctan.org/pkg/#3}{\textsf{#3}}% - }{% - \href{#2}{\textsf{#3}}% - }% - } - { - \textsf{#3}% - } - }{% - \textsf{#3} - }% -}% +\IfLanguageName{french}{% + \DeclarePlainStyle{^^c2^^ab~}{~^^c2^^bb}% + {^^e2^^80^^9c}{^^e2^^80^^9d} +}{}% +\tl_const:Nx \c__denisbdoc_standard_url_tl { \tl_to_str:n { http://www.ctan.org/pkg/ } } +\cs_new_protected:Npn \__denisbdoc_package_format:n #1 + { \textsf {#1} } +\cs_new_protected:Npn \__denisbdoc_package:nnn #1#2#3 + { + \texorpdfstring + { + \bool_if:nTF {#1} + { \__denisbdoc_package_format:n {#3} } + { + \tl_if_blank:nTF {#2} + { + \href + { \c__denisbdoc_standard_url_tl #3} + { \__denisbdoc_package_format:n {#3} } + } + { \href {#2} { \__denisbdoc_package_format:n {#3} } } + } + } + {#3} + } \NewDocumentCommand{\package}{ s O{} m } { \__denisbdoc_package:nnn {#1}{#2}{#3} } @@ -707,10 +731,10 @@ { \cs_if_exist:NTF \faExternalLink {% % \href{#2#3#1}{\texttt{#3}}~\href{http://mirror.ctan.org/macros/latex/contrib/yathesis/#2#3#1}{\faExternalLink} - \texttt{#3}~\textnormal{(\attachfile{#2#3#1})} + \texttt{#3}~% \textnormal{(\attachfile{#2#3#1})} }{ % \href{#2#3#1}{\texttt{#3}}~\href{http://mirror.ctan.org/macros/latex/contrib/yathesis/#2#3#1}{} - \texttt{#3}~\textnormal{(\attachfile{#2#3#1})} + \texttt{#3}~% \textnormal{(\attachfile{#2#3#1})} } } \cs_new_protected:Nn \__denisbdoc_etctree: @@ -754,7 +778,7 @@ \bgroup% \color{magenta} \bfseries \color{blue} - \__denisbdoc_links:nnn {.}{}{\folder/} + \__denisbdoc_links:nnn {../exemples}{}{\folder/} \egroup } \NewDocumentCommand{\directorytree}{ } @@ -777,14 +801,14 @@ { \hyperref[sec-comm-oblig]{% \textcolor{red!75!black}{ - \pdftex_if_engine:TF - { - % \string! - \ding{52} - }{ + % \pdftex_if_engine:TF + % { + % % \string! + % \ding{52} + % }{ \faLock % \ding{52} - }% + % }% } \ifnum\getpagerefnumber{sec-comm-oblig}=\thepage% \else% @@ -798,43 +822,43 @@ }% \NewDocumentCommand{\unixtldirectory}{} { - \directory{\c__denisbdoc_unixtldirectory_string_tl} + \directorytree{\c__denisbdoc_unixtldirectory_string_tl} }% \NewDocumentCommand{\tlversion}{} { - \directory{\c__denisbdoc_tlversion_string_tl} + \directorytree{\c__denisbdoc_tlversion_string_tl} }% \NewDocumentCommand{\wintldirectory}{} { - \directory{\c__denisbdoc_wintldirectory_string_tl} + \directorytree{\c__denisbdoc_wintldirectory_string_tl} }% \NewDocumentCommand{\tldistdirectory}{} { - \directory{\c__denisbdoc_tldistdirectory_string_tl} + \directorytree{\c__denisbdoc_tldistdirectory_string_tl} }% \NewDocumentCommand{\miktexdistdirectory}{} { - \directory{\c__denisbdoc_miktexdistdirectory_string_tl} + \directorytree{\c__denisbdoc_miktexdistdirectory_string_tl} }% \NewDocumentCommand{\docdirectory}{} { - \directory{\c__denisbdoc_docdirectory_string_tl} + \directorytree{\c__denisbdoc_docdirectory_string_tl} }% \NewDocumentCommand{\texdirectory}{} { - \directory{\c__denisbdoc_texdirectory_string_tl} + \directorytree{\c__denisbdoc_texdirectory_string_tl} }% \NewDocumentCommand{\sourcedirectory}{} { - \directory{\c__denisbdoc_sourcedirectory_string_tl} + \directorytree{\c__denisbdoc_sourcedirectory_string_tl} }% \NewDocumentCommand{\jobdirectory}{} { - \directory{\c__denisbdoc_jobdirectory_string_tl} + \directorytree{\c__denisbdoc_jobdirectory_string_tl} }% \NewDocumentCommand{\jobdocdirectory}{} { - \directory{\c__denisbdoc_jobdocdirectory_string_tl} + \directorytree{\c__denisbdoc_jobdocdirectory_string_tl} }% \NewDocumentCommand{\pdf}{} { @@ -849,10 +873,10 @@ \c__denisbdoc_aside_string_tl{}~#2~\c__denisbdoc_aside_string_tl } } -\zexternaldocument{\c__denisbdoc_treesample_string_tl/these}% +\zexternaldocument{\c__denisbdoc_flatsample_string_tl/these}% \cs_new_protected:Nn \__denisbdoc_screenshot:nn { - \fbox{\includegraphics[bylabel=#2,width=#1\linewidth-2\fboxsep-2\fboxrule]{\c__denisbdoc_treesample_string_tl/these}}% + \fbox{\includegraphics[bylabel=#2,width=#1\linewidth-2\fboxsep-2\fboxrule]{\c__denisbdoc_flatsample_string_tl/these}}% } \NewDocumentCommand \screenshot { O{.45} m } {% \__denisbdoc_screenshot:nn {#1}{#2} @@ -917,6 +941,12 @@ fontupper=\slshape, dbtcb }{faq} +\newtcbtheorem[list~inside=dbtabularlist,number~within=\g__denisbdoc_number_within_tl,crefname={tableau}{tableaux}]{dbtab}{Tableau}{% + colback=purple!5!white, + colframe=purple!75!black, + fontupper=\slshape, + dbtcb +}{tab} \NewDocumentCommand{\menuentry}{ O{} m } { \group_begin: % to segregate local changes to keys and font @@ -975,7 +1005,7 @@ } \NewDocumentCommand \yatcl { } {% - \Class{\yat}\xspace + \texorpdfstring{\Class{\yat}\xspace}{classe yathesis} } \NewDocumentCommand \configurationdirectory { } {% @@ -1029,7 +1059,7 @@ } \NewDocumentCommand \gztauthorcl { } {% - \Class{\textsl{\texttt{\c__denisbdoc_gztauthor_class_name_tl}}} + \Class{\gztauthor} } \tl_const:Nn \c__denisbdoc_nwejm_class_name_tl {nwejm} \tl_const:Nn \c__denisbdoc_nwejmauthor_class_name_tl {nwejmart} @@ -1044,15 +1074,15 @@ } \ProvideDocumentCommand \nwejmcl { } {% - \Class{\textsl{\texttt{\c__denisbdoc_nwejm_class_name_tl}}} + \Class{\c__denisbdoc_nwejm_class_name_tl} } \NewDocumentCommand \nwejmauthor { } {% - \textsl{\texttt{\c__denisbdoc_nwejmauthor_class_name_tl}} + \class[\c__denisbdoc_standard_url_tl\c__denisbdoc_nwejm_class_name_tl]{\c__denisbdoc_nwejmauthor_class_name_tl} } \NewDocumentCommand \nwejmauthorcl { } {% - \Class{\textsl{\texttt{\c__denisbdoc_nwejmauthor_class_name_tl}}} + \Class[\c__denisbdoc_standard_url_tl\c__denisbdoc_nwejm_class_name_tl]{\c__denisbdoc_nwejmauthor_class_name_tl} } \ExplSyntaxOff %% Copyright (C) 2015, 2016 by |