summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls128
1 files changed, 49 insertions, 79 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls
index e7d385dfb3a..f70a6c71073 100644
--- a/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls
+++ b/Master/texmf-dist/tex/latex/tuda-ci/tudapub.cls
@@ -1,37 +1,7 @@
-%% This is file `tudapub.cls' version 2.02 (2019/11/16),
-%% it is part of
-%% TUDa-CI -- Corporate Design for TU Darmstadt
-%% ----------------------------------------------------------------------------
-%%
-%% Copyright (C) 2018--2019 by Marei Peischl <marei@peitex.de>
-%%
-%% ============================================================================
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3c
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3c or later is part of all distributions of LaTeX
-%% version 2008/05/04 or later.
-%%
-%% This work has the LPPL maintenance status `maintained'.
-%%
-%% The Current Maintainers of this work are
-%% Marei Peischl <tuda-ci@peitex.de>
-%% Markus Lazanowski <latex@ce.tu-darmstadt.de>
-%%
-%% The development respository can be found at
-%% https://github.com/tudace/tuda_latex_templates
-%% Please use the issue tracker for feedback!
-%%
-%% ============================================================================
-%%
-\def\fileversion{2.02}
-\def\filedate{2019/11/16}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplClass{tudapub}
- {\filedate}{\fileversion}{Publications using TU Darmstadt's Coporate Desing (TUDa-CI)}
+ {\filedate}{\fileversion}{Publications using TU Darmstadt's Coporate Design (TUDa-CI)}
\RequirePackage{l3keys2e}
\RequirePackage{URspecialopts}
@@ -44,7 +14,7 @@
\tl_new:N \g_TUDa_thesis_options_tl
\prop_new:N \g_TUDa_clsopts_prop
-\prop_new:N \g_TUDa_unknown_clsopts_prop
+\prop_new:N \g_TUDa_unknown_clsopts_prop
\prop_gput:Nnn \g_TUDa_clsopts_prop {titlepage} {firstiscover}
\prop_gput:Nnn \g_TUDa_clsopts_prop {captions} {nooneline}
@@ -103,8 +73,8 @@
type .initial:n = publication,
unknown .code:n = {\prop_gput:NVn \g_TUDa_unknown_clsopts_prop \l_keys_key_tl {#1}},
headline .choice:,
- headline / true .code:n = \bool_gset_true:N \g_TUDa_headline_bool,
- headline / false .code:n = \bool_gset_false:N \g_TUDa_headline_bool,
+ headline / true .code:n = \bool_gset_true:N \g_TUDa_headline_bool,
+ headline / false .code:n = \bool_gset_false:N \g_TUDa_headline_bool,
headline / automark .code:n = {\bool_gset_true:N \g_TUDa_headline_bool \PassOptionsToPackage{automark}{scrlayer-scrpage}},
automark .meta:n = {headline=automark},
headline .initial:n =false,
@@ -118,7 +88,7 @@
twocolumn .initial:n = false,
BCOR .code:n = \PassOptionsToPackage{bindingoffset=#1}{geometry},
bindingoffset .meta:n = {BCOR=#1},
- captions .code:n = {\prop_gput:Nnx \g_TUDa_clsopts_prop {captions} {
+ captions .code:n = {\prop_gput:Nnx \g_TUDa_clsopts_prop {captions} {
\use:n {\prop_item:Nn \g_TUDa_clsopts_prop {captions}}, #1}
},
abstract .code:n = \prop_gput:Nnn \g_TUDa_unknown_clsopts_prop {abstract} {#1},
@@ -170,7 +140,7 @@
\prop_gput:Nnx \g_TUDa_clsopts_prop {twocolumn} {\bool_if:NTF \g_TUDa_twocolumn_bool {true} {false}}
\prop_map_inline:Nn \g_TUDa_clsopts_prop {
- \tl_if_empty:nTF {#2}
+ \tl_if_empty:nTF {#2}
{\PassOptionsToClass {#1} {\g_TUDa_pub_class_tl}}
{
\clist_map_inline:nn {#2} {\PassOptionsToClass {#1=##1} {\g_TUDa_pub_class_tl}}
@@ -188,7 +158,7 @@
\prop_map_inline:Nn \g_TUDa_unknown_clsopts_prop {
\cs_if_exist:cT {KV@KOMA.\g_TUDa_pub_class_tl.cls@#1} {
- \tl_if_empty:nTF {#2}
+ \tl_if_empty:nTF {#2}
{\KOMAoptions{#1} }
{\clist_map_inline:nn {#2} {\KOMAoptions{#1=##1}}}
}
@@ -205,12 +175,12 @@
}
\int_compare:nT {\g_TUDa_ruledheaders_int =4 }{
\renewcommand*\sectionlinesformat[4]{%
- \tl_if_eq:nnTF {#1} {section}
+ \tl_if_eq:nnTF {#1} {section}
{
\parbox{\linewidth}{
\rule[5\g_TUDa_titlerule_dim]{\linewidth}{\g_TUDa_titlerule_dim}\par\nointerlineskip
\@hangfrom{%
- \hskip #2#3}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
+ \hskip #2#3\strut}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
\skip_vertical:n {\TUDa_titlerule_sep: -\dp\strutbox}
\smash{\rule{\linewidth}{\g_TUDa_titlerule_dim}}}
}{
@@ -223,17 +193,17 @@
\parbox{\linewidth}{
\rule[5\g_TUDa_titlerule_dim]{\linewidth}{\g_TUDa_titlerule_dim}\par\nointerlineskip
\@hangfrom{%
- \hskip #2#3}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
+ \hskip #2#3\strut}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
\skip_vertical:n {\TUDa_titlerule_sep: -\dp\strutbox}
\smash{\rule{\linewidth}{\g_TUDa_titlerule_dim}}
}}
}
-
+
\usepackage{tudarules}
-%,~ subsection,~
+%,~ subsection,~
%\newcommand{\chapterlineswithprefixformat}[3]{%
@@ -321,7 +291,7 @@
\msg_info:nnx {TUDa} {marginpar-no-key} {\g_TUDa_marginpar_tl}
\bool_gset_true:N \g_TUDa_marginpar_bool
\dim_gset:Nn \g_TUDa_marginpar_dim {\g_TUDa_marginpar_tl}
-}
+}
\dim_new:N \g_TUDa_headheight_dim
@@ -368,7 +338,7 @@
}
\dim_gset:Nn \g_TUDa_headwidth_dim {\paperwidth-\g_TUDa_innerMargin_dim-\g_TUDa_outerMargin_dim-\Gm@bindingoffset}
-
+
\cs_set:Nn \TUDa_disable_marginpar: {\loadgeometry{TUDa@nomarginpar}}
\cs_set:Nn \TUDa_restore_typearea: {\loadgeometry{\c_TUDa_default_geometry_tl}}
@@ -376,8 +346,8 @@
\bool_if:NTF \g_TUDa_geometry_bool {
\RequirePackage[top=\g_TUDa_topMargin_dim, inner=\g_TUDa_innerMargin_dim, outer=\dim_eval:n {\g_TUDa_outerMargin_dim}, bottom=\g_TUDa_bottomMargin_dim, columnsep= \g_TUDa_columnSep_dim, includehead, includefoot,includemp, nomarginpar, headheight=\g_TUDa_headheight_dim
]{geometry}
-
-
+
+
\savegeometry{TUDa@nomarginpar}
\cs_set:Nn \TUDa_disable_marginpar: {\loadgeometry{TUDa@nomarginpar}}
}{
@@ -387,7 +357,7 @@
\KOMAoptions{headinclude, footinclude, headwidth=text,footwidth=text}\recalctypearea
}
}
-%maybe enforce marginar?=false in that case
+%maybe enforce marginar?=false in that case
}
@@ -460,8 +430,8 @@
\newpairofpagestyles{TUDa}{
\KOMAoptions{plainfootsepline}
-
- \bool_if:NTF \g_TUDa_marginpar_bool
+
+ \bool_if:NTF \g_TUDa_marginpar_bool
{
\KOMAoptions {
headwidth=textwithmarginpar,
@@ -536,7 +506,7 @@
\tl_gset_eq:NN \g_TUDa_titleimage_code_tl \c_empty_tl
\newcommand{\titleimage}[1]{\tl_gset:Nn \g_TUDa_titleimage_code_tl {#1}}
-\box_new:N \g_TUDa_title_box
+\box_new:N \g_TUDa_title_box
\skip_new:N \g_TUDa_title_fill_skip
\renewcommand{\titlepagestyle}{TUDa}
@@ -595,7 +565,7 @@
addvoffset=\dim_eval:n {\box_ht:N \TUDa@headline_box+\box_dp:N \TUDa@headline_box-\g_TUDa_titlerule_dim},
height={\box_ht:N \g_TUDa_title_box+ \g_TUDa_title_fill_skip+.5\c_TUDa_logoheight_dim}
]{title.TUDa.background}
-
+
\AddLayersToPageStyle{title.TUDa}{title.TUDa.background}
}
@@ -612,9 +582,9 @@
}}
\nointerlineskip
\TUDa_Setup_Title_box:
-
+
\bool_if:NT \g_TUDa_logo@inhead_bool {
- \dim_compare:nT {\box_ht:N \g_TUDa_title_info_box+ \box_dp:N \g_TUDa_title_info_box > \box_ht:N \g_TUDa_title_box}
+ \dim_compare:nT {\box_ht:N \g_TUDa_title_info_box+ \box_dp:N \g_TUDa_title_info_box > \box_ht:N \g_TUDa_title_box}
{\msg_warning:nn {TUDaPub} {infobox-too-high}}
\makebox[\linewidth][r]{\smash{
\raisebox{-\height}{
@@ -643,7 +613,7 @@
\file_input:n {tuda-a\int_use:N \g_TUDa_paper_int paper.clo}
\TUDa_setup_title_sizes:
-\seq_new:N \g_TUDa_title_info_seq
+\seq_new:N \g_TUDa_title_info_seq
\box_new:N \g_TUDa_title_info_box
\colorlet{TUDa@InfoBoxColor}{white}
@@ -688,7 +658,7 @@
\dim_set:Nn \l_tmpa_dim {2\c_TUDa_logoheight_dim/3}
\dim_compare:nTF {\box_ht:N \l_tmpa_box > \l_tmpa_dim}
{\includegraphics[width=\l_tmpa_dim]{#2}}
- {\box_use:N \l_tmpa_box}
+ {\box_use:N \l_tmpa_box}
}
}
}
@@ -698,7 +668,7 @@
\DeclareNewLayer[textarea,background,mode=picture,
contents={
- \tl_if_empty:NTF \g_TUDa_titleimage_code_tl
+ \tl_if_empty:NTF \g_TUDa_titleimage_code_tl
{\bool_if:NT \g_TUDa_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}}
{\putUL{\color{identbarcolor}\raisebox{-\height}{\parbox[t]{\textwidth}{
\let\width\layerwidth
@@ -708,12 +678,12 @@
\bool_if:NF \g_TUDa_logo@inhead_bool {
\put(\dim_to_decimal_in_unit:nn {\layerwidth-2.2\c_TUDa_logoheight_dim
} {\unitlength},
- \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_TUDa_title_info_box - .5\c_TUDa_logoheight_dim} {\unitlength}){
+ \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_TUDa_title_info_box - .5\c_TUDa_logoheight_dim} {\unitlength}){
\rlap{\box_use:N \g_TUDa_title_info_box}
}
}
\put(0,0){\rule{\linewidth}{\g_TUDa_titlerule_dim}}
- }
+ }
]{title.TUDa.image}
\DeclareNewLayer[textarea,background,mode=picture,
@@ -763,15 +733,15 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\PassOptionsToPackage{a-2b}{pdfx}
\RequirePackage{pdfx}
-
+
\sys_if_engine_pdftex:T {
\msg_warning:nnn {TUDaPub} {prefer-lualatex} {PDFTeX}
}
-
+
\sys_if_engine_pdftex:T {
\msg_warning:nnn {TUDaPub} {prefer-lualatex} {XeTeX}
}
-
+
\@ifpackagelater{pdfx}{2018/12/01}{
@@ -782,20 +752,20 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
}{See~DEMO-TUDaPub~for~further~information.}
\msg_error:nn {TUDaPub} {outdated-pdfx}
}
-
-
+
+
%%hyperref
\hypersetup{hidelinks, unicode}
\iow_new:N \TUDa@xmpdata_stream
\tl_new:N \g_TUDa@xmp_title_tl
\tl_new:N \g_TUDa@xmp_author_tl
-
+
\cs_if_exist:NF \prop_gput_if_new:Nnx {
\cs_generate_variant:Nn \prop_gput_if_new:Nnn {Nnx}
}
\cs_if_exist:NF \tl_to_str:V {\cs_generate_variant:Nn \tl_to_str:N {V}}
-
+
\cs_new:Nn \TUDa_pass_TitleData: {
\iow_open:Nn \TUDa@xmpdata_stream {\jobname.xmpdata}
\begingroup
@@ -815,7 +785,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\endgroup
\iow_close:N \TUDa@xmpdata_stream
}
- \cs_new:Nn \TUDa_write_xmp_line:nn {
+ \cs_new:Nn \TUDa_write_xmp_line:nn {
\begingroup
\cs_set:Npn \sep {\exp_not:N \sep}
\cs_if_exist:cTF {\tl_mixed_case:n {#1}} {
@@ -829,16 +799,16 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
}
\prop_new:N \g_TUDa_MetaData_prop
-
+
\newcommand*{\Metadata}[1]{
- \keyval_parse:NNn \use_none:n \TUDa_set_metadata_prop:nn
+ \keyval_parse:NNn \use_none:n \TUDa_set_metadata_prop:nn
{#1}
}
-
+
\cs_set:Nn \TUDa_set_metadata_prop:nn {
\exp_args:NNf \prop_gput:Nnn \g_TUDa_MetaData_prop {\tl_lower_case:n{#1}} {#2}
}
-
+
\msg_new:nnnn {TUDaPub} {unknown-metadata} {
You~ used~ the~ #1~ metadata~ entry.\\
I~ don't~ know~ how~ to~ handle~ that.\\
@@ -849,7 +819,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\msg_info:nn {tudaPub} {no-pdfa}
%%hyperref
\RequirePackage[hidelinks, unicode]{hyperref}
-
+
\newcommand{\Metadata}[1]{\ClassError{tudapub}{You~cannot~use~\string\Metadata\ ~with~pdfa=false.}{}}
\fi:
@@ -957,11 +927,11 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\let\@thanks\@empty
}
\rule{\linewidth}{\g_TUDa_titlerule_dim}\par}
-
+
}
-
+
\TUDa_adjust_titlepage_style:
-
+
\nointerlineskip\box_use:N \g_TUDa_title_box
\par
@@ -1154,7 +1124,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
{\section*}
{\chapter*}
} {\abstractname}
-
+
}}{
\endgroup
}
@@ -1177,12 +1147,12 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\providecommand*{\frontmatter}{
- \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
+ \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
\pagenumbering {roman}
}
\providecommand*{\mainmatter}{
- \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
+ \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
\pagenumbering {arabic}
}
@@ -1191,7 +1161,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
}
-%IMRAD:Introduction
+%IMRAD:Introduction
\seq_if_exist:NTF \seq_const_from_clist:Nn {
\seq_const_from_clist:Nn \c_TUDa_IMRAD_seq {introduction, methods, results, discussion}
} {
@@ -1211,7 +1181,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
\seq_map_inline:Nn \c_TUDa_IMRAD_seq {
\cs_if_exist:cF {r@IMRAD:#1} {
\msg_warning:nnn {TUDaPub}{missing-IMRADlabel} {#1}
- }
+ }
}
}
}