summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty19
1 files changed, 10 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty b/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty
index bf32793b4b4..b1c0971024f 100644
--- a/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty
+++ b/Master/texmf-dist/tex/latex/tuda-ci/tudarules.sty
@@ -1,4 +1,4 @@
-%% This is file `tudarules.sty' version 1.01 (2019/08/05),
+%% This is file `tudarules.sty' version 1.10 (2019/09/09),
%% it is part of
%% TUDa-CI -- Corporate Design for TU Darmstadt
%% ----------------------------------------------------------------------------
@@ -26,8 +26,8 @@
%%
%% ============================================================================
%%
-\def\fileversion{1.01}
-\def\filedate{2019/08/05}
+\def\fileversion{1.10}
+\def\filedate{2019/09/09}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplPackage{tudarules}{\filedate}{\fileversion}{Creation of colored bars for tuda-ci bundle}
@@ -87,7 +87,7 @@
mode / TikZ .code:n = \bool_gset_true:N \g_TUDa_rule_TikZmode_bool,
}
-\NewDocumentCommand{\TUDa@makeheadrule}{om}{
+\NewDocumentCommand{\TUDa@makeheadrule}{som}{
\keys_set:nn {TUDa/rules} {
%TODO maybe package options for default
width=\textwidth,
@@ -96,17 +96,17 @@
mode= \g_TUDarules_default_mode_tl,
color= \g_TUDarules_default_color_tl
}
- \IfNoValueF {#1} {\keys_set:nn {TUDa/rules}{#1}}
- \box_new:c {#2_box}
+ \IfNoValueF {#2} {\keys_set:nn {TUDa/rules}{#2}}
+ \box_if_exist:cF {#3_box} {\box_new:c {#3_box}}
\bool_if:NTF \g_TUDa_rule_TikZmode_bool {
- \hbox_gset:cn {#2_box} {
+ \hbox_gset:cn {#3_box} {
\begin{tikzpicture}
\fill[\l_TUDa_headrule_color_tl](0,\c_TUDa_rulesep_dim)rectangle++(\l_TUDa_headrule_width_dim,\c_TUDa_largerule_dim);
\fill(0,0)rectangle(\l_TUDa_headrule_width_dim,-\c_TUDa_smallrule_dim);
\end{tikzpicture}
}
}{
- \hbox_gset:cn {#2_box} {
+ \hbox_gset:cn {#3_box} {
\parbox[t]{\l_TUDa_headrule_width_dim}{
\setlength{\baselineskip}{\z@}
\null\par\nointerlineskip
@@ -116,7 +116,8 @@
}
}
}
- \cs_new:cpn {#2} {\box_use:c {#2_box}}
+ \IfBooleanTF {#1}
+ \cs_set:cpn \cs_new:cpn {#3} {\box_use:c {#3_box}}
}
\NewDocumentCommand{\TUDa@makefootrule}{om}{