diff options
author | Karl Berry <karl@freefriends.org> | 2015-08-27 22:01:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-08-27 22:01:18 +0000 |
commit | ed0cc62be17e1bf2b0a072cf59cc8d49e9c02e4a (patch) | |
tree | 671dae83494385edff1a356d5480dd284b52d0bc /Master/texmf-dist/tex/latex | |
parent | 1ca9cdc1c2ff5779e68ab7a3d5506856046d35f5 (diff) |
udesoftec (27aug15)
git-svn-id: svn://tug.org/texlive/trunk@38219 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
5 files changed, 1218 insertions, 488 deletions
diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bibcommon.sty b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bibcommon.sty new file mode 100644 index 00000000000..5ac62b38c57 --- /dev/null +++ b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bibcommon.sty @@ -0,0 +1,255 @@ +% !Mode:: "TeX:UTF-8" +%% udesoftec-biblatex.sty +%% Copyright 2015 J. Peter M. Schuler +%% 2015/08/27 v1.5.1 udesoftec +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `author-maintained'. +% +% The current maintainer of this work is J. Peter M. Schuler +% j.peter.m.schuler@uni-due.de +% +% This work consists of the files +% * udesoftec.cls +% * udesoftec.bst +% * udesoftec-bibcommon.sty +% * udesoftec-biblatex.sty +% * udesoftec-bst.sty +% * udesoftec-extra.sty +% +% As this work is based on years of mostly undocumented improvement, +% it includes parts, for which sources can't be identified anymore. Public postings +% in the LaTeX community were used as an input and if source is known, it is +% mentioned below. If anybody identifies parts of his/her own code, +% feel free to contact the maintainer in order to get listed. +% +% Special thanks to all contributors and for the help of the tex-live team, +% e.g. Axel K.; Norbert P.; Petra R.; Rainer S.; Reinhard K.; Robin F. +% +% For further information refer to: +% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README +% and +% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf + +\NeedsTeXFormat{LaTeX2e}% +\ProvidesPackage{udesoftec-bibcommon}[2015/08/27 v1.5.1 udesoftec-bibcommon.sty udesoftec bibstyle configuration commons]% + + +\newif\ifprimaryDocumentLanguageGerman +\DeclareOption{de} {\primaryDocumentLanguageGermantrue} +\DeclareOption{en} {\primaryDocumentLanguageGermanfalse} + +\newif\ifdocumentIsFinal +\documentIsFinalfalse +\DeclareOption{final} {\documentIsFinaltrue} + +\DeclareOption*{\PackageWarning{udesoftec-bibcommon}{Unknown option \CurrentOption}} + +\ProcessOptions\relax +%%%%%%%%%%%%%%%%%%%%%%%% +\providecaptionname{ngerman}{\bbland}{und }% +\providecaptionname{english}{\bbland}{and }% +\providecaptionname{british}{\bbland}{and }% +\providecaptionname{ngerman}{\bblheading}{Bibliografie}% +\providecaptionname{english}{\bblheading}{Bibliography}% +\providecaptionname{british}{\bblheading}{Bibliography}% +\providecaptionname{ngerman}{\bblin}{In: }% +\providecaptionname{english}{\bblin}{In: }% +\providecaptionname{british}{\bblin}{In: }% +\providecaptionname{ngerman}{\bbled}{~(Hrsg.)}% +\providecaptionname{english}{\bbled}{~(Ed.)}% +\providecaptionname{british}{\bbled}{~(Ed.)}% +\providecaptionname{ngerman}{\bblEdPrefix}{}% +\providecaptionname{english}{\bblEdPrefix}{}% +\providecaptionname{british}{\bblEdPrefix}{}% +\providecaptionname{ngerman}{\bbleds}{~(Hrsg.)}% +\providecaptionname{english}{\bbleds}{~(Eds.)}% +\providecaptionname{british}{\bbleds}{~(Eds.)}% +\providecaptionname{ngerman}{\bbledn}{Aufl.}% +\providecaptionname{english}{\bbledn}{edn}% +\providecaptionname{british}{\bbledn}{edn}% +\providecaptionname{ngerman}{\bbletal}{et~al.}% +\providecaptionname{english}{\bbletal}{et~al.}% +\providecaptionname{british}{\bbletal}{et~al.}% +\providecaptionname{ngerman}{\bblpp}{S.~}% +\providecaptionname{english}{\bblpp}{pp.}% +\providecaptionname{british}{\bblpp}{pp.}% +\providecaptionname{ngerman}{\bblp}{S.~}% +\providecaptionname{english}{\bblp}{p.~}% +\providecaptionname{british}{\bblp}{p.~}% +\providecaptionname{ngerman}{\bblvol}{Nr.}% +\providecaptionname{english}{\bblvol}{No}% +\providecaptionname{british}{\bblvol}{No}% +\providecaptionname{ngerman}{\bblof}{von}% +\providecaptionname{english}{\bblof}{of}% +\providecaptionname{british}{\bblof}{of}% +\providecaptionname{ngerman}{\bblnoyear}{oJ}% +\providecaptionname{english}{\bblnoyear}{n.d.}% +\providecaptionname{british}{\bblnoyear}{n.d.}% +\providecaptionname{ngerman}{\bblnoyearlong}{ohne Jahresangabe}% +\providecaptionname{english}{\bblnoyearlong}{no date}% +\providecaptionname{british}{\bblnoyearlong}{no date}% +\providecaptionname{ngerman}{\bbllastaccesswas}{Abruf am}% +\providecaptionname{english}{\bbllastaccesswas}{Accessed}% +\providecaptionname{british}{\bbllastaccesswas}{Accessed}% +\providecaptionname{ngerman}{\bblpublishedon}{Veröffentlicht am}% +\providecaptionname{english}{\bblpublishedon}{Published on}% +\providecaptionname{british}{\bblpublishedon}{Published on}% +\providecaptionname{ngerman}{\bblstandardpublishedon}{Version vom}% +\providecaptionname{english}{\bblstandardpublishedon}{Version dated}% +\providecaptionname{british}{\bblstandardpublishedon}{Version dated}% + + + + +% normal space stretches in order to cope with align justify +% in case of initials we don't want this to allow the eyes to assign the initial +% to the surname. Else one is always irritated. +\providecommand{\bblSmallSpace}{\nobreak\hspace{.25em}} +\providecommand{\bblisbn}[1]{ISBN:\mbox{#1}} +\providecommand{\bblissn}[1]{ISSN:\mbox{#1}} +\providecommand{\bbland}{\& } +\providecommand{\bblAuthorYearSep}{ } % possible to add \newline +\providecommand{\bblAuthorTitleSep}{ } % possible to add \newline +\providecommand{\bblAuthorTitleSepInEd}{ } +\providecommand{\bblFirstnameSep}{\bblSmallSpace} +\providecommand{\bblNamePrefixSep}{\bblSmallSpace} +\providecommand{\bblAuthorsSepInText}{\bbland} +\providecommand{\bblAuthorsSep}{, } +\providecommand{\bblstdseptypenum}{ } +\providecommand{\bblstdsepnumed}{-} +\providecommand{\bblnostandardrepeat}{} +\providecommand{\bblInTextPagePrefix}[1]{} +\providecommand{\bblstandardpublishdate}[1]{\bblstandardpublishedon\space\bblParseDate{#1}} +\providecommand{\bblpublishdate}[1]{\bblpublishedon\space\bblParseDate{#1}} +\providecommand{\bblurldate}[1]{(\bbllastaccesswas\space\bblParseDate{#1})} +\providecommand{\bblVolumeOfSeries}[2]{ (#2~#1)} +\providecommand{\bblSeries}[1]{ (#1)} +\providecommand{\bblYear}[1]{(#1)} +\providecommand{\bblFontAuthorInText}[1]{\nohyphens{\textsc{#1}}} +\providecommand{\bblFontAuthorInList}[1]{\textbf{#1}} +\providecommand{\bblFontYearInList}[1]{\textbf{#1}} +\providecommand{\bblFontBookTitle}[1]{\emph{#1}} +\providecommand{\bblFontInBookTitle}[1]{#1} +\providecommand{\bblFontJournalTitle}[1]{#1} +\providecommand{\bblFontTitle}[1]{#1} + + +\ifdocumentIsFinal + \providecommand{\bblWarning}[2]{} %for production +\else + \providecommand{\bblWarning}[2]{ + \message{LaTeX Warning: Error with citation of #2 -- #1 }% + \textbf{\emph{BibError: #2 -- #1}}% + } +\fi +\providecommand{\bblyear}[1]{\ifnumber{#1}{#1}{\bblnoyear}} +\providecommand{\bbledGenerateEdition}[1]{\ifnumber{#1}{\bbledOrdinal{#1}\bbledn}{#1}} + +\providecommand{\englishordinal}[1]{\ifcase #1\or 1\textsuperscript{st}\or 2\textsuperscript{nd}\or 3\textsuperscript{rd}\else #1\textsuperscript{th}\fi} +\providecommand{\germanordinal}[1]{#1.} +\providecommand{\bbledOrdinal}[1]{ + \iflanguage{british}{% + \englishordinal{#1} + }{% + \germanordinal{#1} + } +} + + +% http://tex.stackexchange.com/questions/262103/interpret-tex-commands-and-remove-curly-braces-from-href-content/262133#262133 +\providecommand{\bbldoi}[1]{% + \def\tmpdoi{#1}% + \xpatchcmd*\tmpdoi{\textunderscore }{X}{}{}% + \xpatchcmd*\tmpdoi{\_ }{Y}{}{}% + \xpatchcmd*\tmpdoi{\textunderscore}{Z}{}{}% + \xpatchcmd*\tmpdoi{\_}{A}{}{}% + \xpatchcmd*\tmpdoi{{_}}{B}{}{}% + \xpatchcmd*\tmpdoi{{}}{}{}{}% + \xpatchcmd*\tmpdoi{\}}{}{}{}% + \xpatchcmd*\tmpdoi{\{}{}{}{}% + \def\tmpdoitext{\detokenize\expandafter{\tmpdoi}}% + \href{http://dx.doi.org/\tmpdoi}{doi:\tmpdoitext}% +}% + +\RequirePackage{xstring} +\RequirePackage{babel} +\usepackage[useregional=text]{datetime2} +\DTMsetstyle{ddmmyyyy} +% http://tex.stackexchange.com/questions/225919/how-to-split-input-string-in-a-latex-command +% \def\bblParseDate #1-#2-#3\endparse{% +% \DTMDisplaydate{#1}{#2}{#3}{-1}% +% } +\def\bblParseDateWithDots #1.#2.#3 #4\endBblDateparse{% + \DTMdate{#3-#2-#1}% +} +\providecommand{\bblParseDate}[1]{% +\IfSubStr{#1}{-}{\DTMdate{#1}}{% +\bblParseDateWithDots #1 x\endBblDateparse% +}% +} + +% only show first city +\def\bblParseAddressWithAnd #1 and #2\endBblAddressparse{% + \bblAddress{#1}% +} +\def\bblParseAddressWithComma #1,#2\endBblAddressparse{% + \bblAddress{#1}% +} +\def\bblParseAddressWithSemiColon #1;#2\endBblAddressparse{% + \bblAddress{#1}% +} +\providecommand{\bblAddress}[1]{% +\IfSubStr{#1}{ and }% + {\bblParseAddressWithAnd #1 and x\endBblAddressparse}% + {\IfSubStr{#1}{,}% + {\bblParseAddressWithComma #1,x\endBblAddressparse}% + {\IfSubStr{#1}{;}% + {\bblParseAddressWithSemiColon #1;x\endBblAddressparse}% + {#1}% + }% + }% +} + + +\providecommand{\citemulti}[1]{% +\citetext{% +\bibstyle@udesoftecmulticite% +#1% +\bibstyle@udesoftec% +}} + + +\providecommand{\inquotequote}[1]{\enquote{#1}} + +\providecommand{\intextquote}[3][]{% + \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }% + \citequote[#1]{#2}{#3}% +} +\providecommand{\inlinequote}[3][]{% + \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }% + \citequote[#1]{#2}{#3}% +} +\providecommand{\citequote}[3][]{\enquote{#3} \cite[#1]{#2}} +\providecommand{\citequotehidden}[3][]{\cite[#1]{#2}} +\providecommand{\citetquotehidden}[3][]{\citet[#1]{#2}} +\providecommand{\citetquotepar}[3][]{ + \begin{quote} + #3\par + \hfill\cite[#1]{#2} + \end{quote} +} + +% from biblatex +\protected\def\bblisdot{% +\ifpunct \ifterm \nopunct \isdot \adddot \addperiod \addcomma +\appto\nocorrlist{\isdot\adddot\addperiod\addcomma}} + +\endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-biblatex.sty b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-biblatex.sty new file mode 100644 index 00000000000..27301a49ce9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-biblatex.sty @@ -0,0 +1,576 @@ +% !Mode:: "TeX:UTF-8" +%% udesoftec-biblatex.sty +%% Copyright 2015 J. Peter M. Schuler +%% 2015/08/27 v1.5.1 udesoftec +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `author-maintained'. +% +% The current maintainer of this work is J. Peter M. Schuler +% j.peter.m.schuler@uni-due.de +% +% This work consists of the files +% * udesoftec.cls +% * udesoftec.bst +% * udesoftec-bibcommon.sty +% * udesoftec-biblatex.sty +% * udesoftec-bst.sty +% * udesoftec-extra.sty +% +% As this work is based on years of mostly undocumented improvement, +% it includes parts, for which sources can't be identified anymore. Public postings +% in the LaTeX community were used as an input and if source is known, it is +% mentioned below. If anybody identifies parts of his/her own code, +% feel free to contact the maintainer in order to get listed. +% +% Special thanks to all contributors and for the help of the tex-live team, +% e.g. Axel K.; Norbert P.; Petra R.; Rainer S.; Reinhard K.; Robin F. +% +% For further information refer to: +% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README +% and +% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf + +\NeedsTeXFormat{LaTeX2e}% +\ProvidesPackage{udesoftec-biblatex}[2015/08/27 v1.5.1 udesoftec-biblatex.sty udesoftec bibstyle configuration for biblatex]% + +% +% \newif\ifprimaryDocumentLanguageGerman +% \DeclareOption{de} {\primaryDocumentLanguageGermantrue} +% \DeclareOption{en} {\primaryDocumentLanguageGermanfalse} + +\newif\ifdocumentIsFinal +\documentIsFinalfalse +\DeclareOption{final} {\documentIsFinaltrue} + +\DeclareOption*{\PackageWarning{udesoftec-biblatex}{Unknown option \CurrentOption}} + +\ProcessOptions\relax +%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{udesoftec-bibcommon} +\RequirePackage{csquotes} +\RequirePackage{regexpatch} + +\usepackage[ + backend=biber, + style=authoryear, + natbib=true, %full cite command fallback + dashed=false, + %sortcites=true, + sorting=nyt, + maxcitenames=2, + maxalphanames=2, + firstinits=true, + terseinits=true, + uniquename=init, + uniquelist=false, + urldate=long, + maxbibnames=99]{biblatex} +\ExecuteBibliographyOptions{labeldate,sorting=nyt,pagetracker} + +\setlength{\bibhang} {2em} %hanging indentation for list of references +\setlength{\bibitemsep} {.25em} +\setlength{\bibnamesep} {.25em} +\setlength{\bibinitsep} {.25em} +% Change order to last name then first name abbreviate without a full stop at the end. This should be at the end! + + +%@Jörg You could use the starred version \DeclareFieldFormat* to clear +% type-specific formats. But IMO it's more consistent to format @incollection titles like @article titles. I've edited my example accordingly. +% +\DeclareFieldFormat*{title}{\bblFontTitle{#1}} +\renewcommand*{\mkbibacro}[1]{#1} +\DeclareFieldFormat{isbn}{\mkbibacro{ISBN}\addcolon{}#1} +\DeclareFieldFormat{isrn}{\mkbibacro{ISRN}\addcolon{}#1} +\DeclareFieldFormat{issn}{\mkbibacro{ISSN}\addcolon{}#1} +\DeclareFieldFormat{doi}{\bbldoi{#1}} + + +\renewcommand*{\mkbibnameprefix}[1]{\bblFontAuthorInText{#1}} +\renewcommand*{\mkbibnamelast}[1]{\bblFontAuthorInText{#1}} + +\renewcommand*{\labelnamepunct}{\bblAuthorTitleSep} +\renewcommand*{\revsdnamedelim}{\bblAuthorsSep} +\renewcommand*{\multinamedelim}{\bblAuthorsSep} +\renewcommand*{\finalnamedelim}{ \bblFontAuthorInText{\bblAuthorsSepInText}} + +\renewcommand*{\multilistdelim}{\bblAuthorsSep} +\renewcommand*{\finallistdelim}{\bblAuthorsSep} + +\renewcommand*{\andothersdelim}{\space} +\renewcommand*{\nameyeardelim}{\space} + + +\renewcommand*{\finentrypunct}{} + + +\DeclareFieldFormat{booktitle}{\bblFontInBookTitle{#1}\isdot} +\DeclareFieldFormat{journaltitle}{\bblFontJournalTitle{#1}\isdot} +\DeclareFieldFormat{issuetitle}{\bblFontInBookTitle{#1}\isdot} +\DeclareFieldFormat{maintitle}{\bblFontInBookTitle{#1}\isdot} + +\AtBeginBibliography{% +% \renewcommand*{\revsdnamedelim}{CCCCCCCCCCCC} + \renewcommand*{\finalnamedelim}{\bblAuthorsSep} + \renewcommand*{\mkbibnameprefix}[1]{#1} + \renewcommand*{\mkbibnamefirst}[1]{#1} + \renewcommand*{\mkbibnamelast}[1]{#1} + \renewcommand*{\mkbibnameaffix}[1]{#1} + \renewcommand*{\multinamedelim}{\bblAuthorsSep} + \renewcommand*{\finalnamedelim}{\bblAuthorsSep}% +} + + +\renewbibmacro*{name:last-first}[5]{% + \usebibmacro{name:delim}{#1}% + \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}% + \mkbibnamelast{#1}\isdot% + \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}% + \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{#2}}% +} +\DeclareNameFormat{last-first}{% + \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% +} + +\DeclareNameFormat{default}{% + \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% +} + +\DeclareNameAlias{sortname}{last-first} %alle Autoren in der Biblografie gleich + + +\DefineBibliographyStrings{ngerman}{% + andothers = {\bblFontAuthorInText{\bbletal}}, % we don't use et al in bbl + editor = {\bbled},% + editors = {\bbleds},% + urlseen = {\bbllastaccesswas}% +} + +\DefineBibliographyStrings{english}{% + andothers = {\bblFontAuthorInText{\bbletal}}, % we don't use et al in bbl + editor = {\bbled},% + editors = {\bbleds},% + urlseen = {\bbllastaccesswas}% +% page = {{Seite}{S\adddot}}, +% pages = {{Seiten}{S\adddot}}, +} + +\DefineBibliographyStrings{british}{% + andothers = {\bblFontAuthorInText{\bbletal}}, % we don't use et al in bbl + editor = {\bbled},% + editors = {\bbleds},% + urlseen = {\bbllastaccesswas}% +% page = {{Seite}{S\adddot}}, +% pages = {{Seiten}{S\adddot}}, +} + + + +\AtEveryBibitem{\clearlist{language}} +\AtEveryBibitem{\clearfield{pagetotal}} + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\newbibmacro*{byeditor+suffix}{% + \ifnameundef{editor} + {} + {%\usebibmacro{byeditor+othersstrg}% + %\setunit{\addspace}% + \printnames[byeditor]{editor}% + \clearname{editor}% + \usebibmacro{editorstrg}% + \newunit}% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}% + } + +% \DeclareSourcemap{ +% \maps[datatype = bibtex]{ +% \map{%% 2. Abbreviate an entry such as Adam J[ohn] Smith to Smith, Adam J. +% \step[fieldsource = doi, +% match = \regexp{\[[\_]]+\]}, +% replace = .] +% } +% } +% } +% + + % suppress URL and ISBN if doi present +\settoggle{bbx:isbn}{false} %deactivate normal isbn output +\renewbibmacro*{doi+eprint+url}{% + \iffieldundef{doi} + { + \printfield{isbn} + \printfield{issn} + \usebibmacro{url+urldate} + } + { + \printfield{doi} + \newunit\newblock + \iftoggle{bbx:eprint} + {\usebibmacro{eprint}} + {}% + } + } + + + + + + + +\providebibmacro*{date+extrayear}{} + +\def\bbx@opt@mergedate@true{\bbx@opt@mergedate@compact} + +% merge date/issue with date label +\def\bbx@opt@mergedate@maximum{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{\thefield{datelabelsource}year} + {} + {\printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \iffieldsequal{year}{\thefield{datelabelsource}year} + {\printdateextralabel}% + {\printfield{labelyear}% + \printfield{extrayear}}}}}% + \renewbibmacro*{date}{}% + \renewbibmacro*{issue+date}{}} + +% merge date with date label +\def\bbx@opt@mergedate@compact{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{\thefield{datelabelsource}year} + {} + {\printtext[parens]{% + \iffieldsequal{year}{\thefield{datelabelsource}year} + {\printdateextralabel}% + {\printfield{labelyear}% + \printfield{extrayear}}}}}% + \renewbibmacro*{date}{}% + \renewbibmacro*{issue+date}{% + \iffieldundef{issue} + {} + {\printtext[parens]{\printfield{issue}}}% + \newunit}} + +% merge year-only date with date label +\def\bbx@opt@mergedate@basic{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{\thefield{datelabelsource}year} + {} + {\printtext[parens]{% + \printfield{\thefield{datelabelsource}year}% + \printfield{extrayear}}}}% + \renewbibmacro*{date}{% + \iffieldundef{month} + {} + {\printdate}}% + \renewbibmacro*{issue+date}{% + \ifboolexpr{ + test {\iffieldundef{issue}} + and + test {\iffieldundef{month}} + } + {} + {\printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \printdate}}% + \newunit}} + +% merge year-only date with year-only date label +\def\bbx@opt@mergedate@minimum{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{\thefield{datelabelsource}year} + {} + {\printtext[parens]{% + \printfield{\thefield{datelabelsource}year}% + \printfield{extrayear}}}}% + \renewbibmacro*{date}{% + \ifboolexpr{ + test {\iffieldundef{month}} + and + test {\iffieldundef{extrayear}} + } + {} + {\printdate}}% + \renewbibmacro*{issue+date}{% + \ifboolexpr{ + test {\iffieldundef{issue}} + and + test {\iffieldundef{month}} + and + test {\iffieldundef{extrayear}} + } + {} + {\printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \printdate}}% + \newunit}} + +% don't merge date/issue with date label +\def\bbx@opt@mergedate@false{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{\thefield{datelabelsource}year} + {} + {\printtext[parens]{% + \printfield{\thefield{datelabelsource}year}% + \printfield{extrayear}}}}% + \renewbibmacro*{date}{\printdate}% + \renewbibmacro*{issue+date}{% + \printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \printdate}% + \newunit}} + +% n.b. the default datelabel=year overrides merging of months and days +\ExecuteBibliographyOptions{labeldate,sorting=nyt,pagetracker} +\renewbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\bblFontAuthorInList{\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \iffieldundef{authortype} + {\setunit{\addspace}} + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% + \setunit{\addspace}}}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}% +\bblFontYearInList{\usebibmacro{date+extrayear}}} + +\renewbibmacro*{editor}{% + \usebibmacro{bbx:editor}{editorstrg}} +\renewbibmacro*{editor+others}{% + \usebibmacro{bbx:editor}{editor+othersstrg}} + + +%remove punctuation before (eds) and make bold +\renewbibmacro*{bbx:editor}[1]{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\bblFontAuthorInList{\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{editor}% + \setunit{\bblEdPrefix}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{#1}% + \clearname{editor}% + \setunit{\addspace}}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}% +\bblFontYearInList{\usebibmacro{date+extrayear}}} + % erst publisher, dann location + \renewbibmacro*{publisher+location+date}{% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \printlist[][1-1]{location}%nur erste Location + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +% location ohne schnickscnack +\DeclareListFormat{location}{#1} +%Todo: Bundesland/Land entfernen + + +\renewbibmacro*{event+venue+date}{% + \printfield{eventtitle}% + \iffieldundef{eventtitleaddon}% + {}% + {% + \newunit% + \printfield{eventtitleaddon}% + } + \ifboolexpr{ + test {\iffieldundef{venue}} + and + test {\iffieldundef{eventyear}} + } + {} + {\setunit*{\addspace}% + \printtext[parens]{% + \printfield{venue}% + \setunit*{\addcomma\space}% + \printeventdate}}% + \newunit} + + + +% remove double editors from proceedings + +\DeclareBibliographyDriver{proceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{maintitle+title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + + + + + + + + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{byeditor+suffix}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock +% \printlist{organization}% +% \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +%%%%%%%%%%%% +% link whole cite including name +% http://tex.stackexchange.com/questions/15951/hyperlink-name-with-biblatex-authoryear-biblatex-1-4b +%%%%%%%%%%%% +\DeclareFieldFormat{citehyperref}{% + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{#1}} + +\DeclareFieldFormat{textcitehyperref}{% + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{% + #1% + \ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}}} + +\savebibmacro{cite} +\savebibmacro{textcite} + +\renewbibmacro*{cite}{% + \printtext[citehyperref]{% + \restorebibmacro{cite}% + \usebibmacro{cite}}} + +\renewbibmacro*{textcite}{% + \ifboolexpr{ + ( not test {\iffieldundef{prenote}} and + test {\ifnumequal{\value{citecount}}{1}} ) + or + ( not test {\iffieldundef{postnote}} and + test {\ifnumequal{\value{citecount}}{\value{citetotal}}} ) + } + {\DeclareFieldAlias{textcitehyperref}{noformat}} + {}% + \printtext[textcitehyperref]{% + \restorebibmacro{textcite}% + \usebibmacro{textcite}}} + +\AtEveryCitekey{% +\clearfield{shorthand}% +} +%%%%%%%%%%%%%%%%%%%%%%%%% +\endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bst.sty b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bst.sty index 2a0a0623434..79dab6aea42 100644 --- a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bst.sty +++ b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bst.sty @@ -1,7 +1,7 @@ % !Mode:: "TeX:UTF-8" %% udesoftec-bst.sty -%% Copyright 2013-2015 J. Peter M. Schuler -%% 2015/08/20 v1.4.8 udesoftec +%% Copyright 2015 J. Peter M. Schuler +%% 2015/08/27 v1.5.1 udesoftec % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -11,12 +11,18 @@ % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % -% This work has the LPPL maintenance status `maintained'. +% This work has the LPPL maintenance status `author-maintained'. % -% The current Maintainer of this work is J. Peter M. Schuler +% The current maintainer of this work is J. Peter M. Schuler % j.peter.m.schuler@uni-due.de % -% This work consists of the files udesoftec.cls and udesoftec.bst. +% This work consists of the files +% * udesoftec.cls +% * udesoftec.bst +% * udesoftec-bibcommon.sty +% * udesoftec-biblatex.sty +% * udesoftec-bst.sty +% * udesoftec-extra.sty % % As this work is based on years of mostly undocumented improvement, % it includes parts, for which sources can't be identified anymore. Public postings @@ -25,21 +31,30 @@ % feel free to contact the maintainer in order to get listed. % % Special thanks to all contributors and for the help of the tex-live team, -% e.g. Axel K.; Norbert P.; Rainer S.; Reinhard K.; Robin F. +% e.g. Axel K.; Norbert P.; Petra R.; Rainer S.; Reinhard K.; Robin F. % % For further information refer to: % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README % and % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf + \NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{udesoftec-bst}[2015/08/20 v1.4.8 udesoftec-bst.sty udesoftec -bibstyle configuration]% -%%%%%%%%%%%%%%%%%%%%%%%%% +\ProvidesPackage{udesoftec-bst}[2015/08/27 v1.5.1 udesoftec-bst.sty udesoftec bibstyle configuration for bibtex]% + + +\newif\ifprimaryDocumentLanguageGerman +\DeclareOption{de} {\primaryDocumentLanguageGermantrue} +\DeclareOption{en} {\primaryDocumentLanguageGermanfalse} + \newif\ifdocumentIsFinal \documentIsFinalfalse -\DeclareOption{final} {\documentIsFinaltrue} +\DeclareOption{final} {\documentIsFinaltrue} + +\DeclareOption*{\PackageWarning{udesoftec-bst}{Unknown option \CurrentOption}} + \ProcessOptions\relax -%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage{udesoftec-bibcommon} \RequirePackage{hyperref} % support doi-links \RequirePackage{hyphenat} % prevent author names and quotations from hyphenating \RequirePackage{scrbase} % support for providecaptionname @@ -53,113 +68,12 @@ bibstyle configuration]% \providecommand{\bibstyle@udesoftec}{\bibpunct[,~\bblInTextPagePrefix{}]{(}{)}{;}{a}{}{}{}} \providecommand{\bibstyle@udesoftecmulticite}{\bibpunct[,~\bblInTextPagePrefix{}]{}{}{;}{a}{}{}{}} -%http://tex.stackexchange.com/questions/262103/interpret-tex-commands-and-remove-curly-braces-from-href-content/262133#262133 -\providecommand{\doi}[1]{% - \def\tmpdoi{#1}% - \xpatchcmd*\tmpdoi{{\textunderscore }}{_}{}{}% - \href{http://dx.doi.org/\tmpdoi}{doi:#1}% -}% -\providecommand{\bblisbn}[1]{\small{ISBN:\mbox{#1}}} -\providecommand{\bblissn}[1]{\small{ISSN:\mbox{#1}}} -\providecommand{\bbland}{\& } -\providecaptionname{ngerman}{\bbland}{und }% -\providecaptionname{english}{\bbland}{and }% -\providecommand{\bblAuthorYearSep}{ } % possible to add \newline -\providecommand{\bblAuthorTitleSep}{: } % possible to add \newline -\providecommand{\bblAuthorTitleSepInEd}{: } -\providecommand{\bblstdseptypenum}{ } -\providecommand{\bblstdsepnumed}{-} -\providecommand{\bblnostandardrepeat}{} -\providecaptionname{ngerman}{\bblin}{In: }% -\providecaptionname{english}{\bblin}{In: }% -\providecaptionname{ngerman}{\bbled}{~(Hrsg.)}% -\providecaptionname{english}{\bbled}{~(Ed.)}% -\providecaptionname{ngerman}{\bbleds}{~(Hrsg.)}% -\providecaptionname{english}{\bbleds}{~(Eds.)}% -\providecaptionname{ngerman}{\bbledn}{Aufl.}% -\providecaptionname{english}{\bbledn}{edn}% -\providecaptionname{ngerman}{\bbletal}{et~al.}% -\providecaptionname{english}{\bbletal}{et~al.}% -\providecaptionname{ngerman}{\bblpp}{S.~}% -\providecaptionname{english}{\bblpp}{pp.}% -\providecaptionname{ngerman}{\bblp}{S.~}% -\providecaptionname{english}{\bblp}{p.~}% -\providecaptionname{ngerman}{\bblvol}{Nr.}% -\providecaptionname{english}{\bblvol}{No}% -\providecaptionname{ngerman}{\bblof}{von}% -\providecaptionname{english}{\bblof}{of}% -\providecaptionname{ngerman}{\bblnoyear}{o.J.}% -\providecaptionname{english}{\bblnoyear}{n.d.}% -\providecaptionname{ngerman}{\bblnoyearlong}{ohne Jahresangabe}% -\providecaptionname{english}{\bblnoyearlong}{no date}% -\providecaptionname{ngerman}{\bbllastaccesswas}{Zuletzt geprüft: }% -\providecaptionname{english}{\bbllastaccesswas}{Last checked: }% - -\renewcommand{\bibfont}{\raggedright} -\providecommand{\bblInTextPagePrefix}[1]{} -\providecommand{\bblurldate}[1]{ (\bbllastaccesswas #1)} -\providecommand{\bblVolumeOfSeries}[2]{ (#2~#1)} -\providecommand{\bblSeries}[1]{ (#1)} -\providecommand{\bblFontAuthorInText}[1]{\nohyphens{\textsc{#1}}} -\providecommand{\bblFontAuthorInList}[1]{\textbf{#1}} -\providecommand{\bblFontYearInList}[1]{\textbf{(#1)}} -\providecommand{\bblFontBookTitle}[1]{\emph{#1}} -\providecommand{\bblFontInBookTitle}[1]{#1} -\providecommand{\bblFontJournalTitle}[1]{#1} +%%%%%%%%%%%%%%%%%%%%%%%%% -\ifdocumentIsFinal - \providecommand{\bblWarning}[2]{} %for production -\else - \providecommand{\bblWarning}[2]{ - \message{LaTeX Warning: Error with citation of #2 -- #1 }% - \textbf{\emph{BibError: #2 -- #1}}% - } -\fi -\providecommand{\bblyear}[1]{\ifnumber{#1}{#1}{\bblnoyear}} -\providecommand{\bbledGenerateEdition}[1]{\ifnumber{#1}{\bbledOrdinal{#1}\bbledn}{#1}} -\providecommand{\englishordinal}[1]{\ifcase #1\or 1\textsuperscript{st}\or 2\textsuperscript{nd}\or 3\textsuperscript{rd}\else #1\textsuperscript{th}\fi} -\providecommand{\germanordinal}[1]{#1.} -\providecommand{\bbledOrdinal}[1]{ - \iflanguage{english}{% - \englishordinal{#1} - }{% - \germanordinal{#1} - } -} +\providecommand{\addbibresource}[1]{} \setlength{\bibhang} {2em} %hanging indentation for list of references -\setlength{\bibsep} {.5em} %vertical sep between bibitems in list of references -%\renewcommand{\bibfont}{\small} -%\renewcommand{\bibfont}{\sc} - - -\providecommand{\citemulti}[1]{% -\citetext{% -\bibstyle@udesoftecmulticite% -#1% -\bibstyle@udesoftec% -}} +\setlength{\itemsep} {.25em} - -\providecommand{\inquotequote}[1]{\enquote{#1}} - -\providecommand{\intextquote}[3][]{% - \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }% - \citequote[#1]{#2}{#3}% -} -\providecommand{\inlinequote}[3][]{% - \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }% - \citequote[#1]{#2}{#3}% -} -\providecommand{\citequote}[3][]{\enquote{#3} \cite[#1]{#2}} -\providecommand{\citequotehidden}[3][]{\cite[#1]{#2}} -\providecommand{\citetquotehidden}[3][]{\citet[#1]{#2}} -\providecommand{\citetquotepar}[3][]{ - \begin{quote} - #3\par - \hfill\cite[#1]{#2} - \end{quote} -} -%%%%%%%%%%%%%%%%%%%%%%%%% -\endinput% +\endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-extra.sty b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-extra.sty index 74f28263ffb..4fd49b05262 100644 --- a/Master/texmf-dist/tex/latex/udesoftec/udesoftec-extra.sty +++ b/Master/texmf-dist/tex/latex/udesoftec/udesoftec-extra.sty @@ -1,7 +1,7 @@ % !Mode:: "TeX:UTF-8" %% udesoftec-extra.sty %% Copyright 2013-2015 J. Peter M. Schuler -%% 2015/08/20 v1.4.8 udesoftec +%% 2015/08/27 v1.5.1 udesoftec % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -11,12 +11,18 @@ % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % -% This work has the LPPL maintenance status `maintained'. +% This work has the LPPL maintenance status `author-maintained'. % -% The current Maintainer of this work is J. Peter M. Schuler +% The current maintainer of this work is J. Peter M. Schuler % j.peter.m.schuler@uni-due.de % -% This work consists of the files udesoftec.cls and udesoftec.bst. +% This work consists of the files +% * udesoftec.cls +% * udesoftec.bst +% * udesoftec-bibcommon.sty +% * udesoftec-biblatex.sty +% * udesoftec-bst.sty +% * udesoftec-extra.sty % % As this work is based on years of mostly undocumented improvement, % it includes parts, for which sources can't be identified anymore. Public postings @@ -25,15 +31,15 @@ % feel free to contact the maintainer in order to get listed. % % Special thanks to all contributors and for the help of the tex-live team, -% e.g. Axel K.; Norbert P.; Rainer S.; Reinhard K.; Robin F. +% e.g. Axel K.; Norbert P.; Petra R.; Rainer S.; Reinhard K.; Robin F. % % For further information refer to: % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README % and % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf + \NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{udesoftec-extra}[2015/08/20 v1.4.8 udesoftec-extra.sty -additions which are currently optional and may break former behaviour]% +\ProvidesPackage{udesoftec-extra}[2015/08/27 v1.5.1 udesoftec-extra.sty additions which are currently optional and may break former behaviour]% %%%%%%%%%%%%%%%%%%%%%%%%% \makeatletter diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls b/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls index 49b7e7f5ec8..9c1c64c0afa 100644 --- a/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls +++ b/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls @@ -1,7 +1,7 @@ % !Mode:: "TeX:UTF-8" %% udesoftec.cls %% Copyright 2013-2015 J. Peter M. Schuler -%% 2015/08/20 v1.4.8 udesoftec +%% 2015/08/27 v1.5.1 udesoftec % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -19,6 +19,8 @@ % This work consists of the files % * udesoftec.cls % * udesoftec.bst +% * udesoftec-bibcommon.sty +% * udesoftec-biblatex.sty % * udesoftec-bst.sty % * udesoftec-extra.sty % @@ -35,13 +37,9 @@ % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README % and % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf + \NeedsTeXFormat{LaTeX2e}% -\ProvidesClass{udesoftec}[2015/08/20 v1.4.8 udesoftec.cls Thesis class and -bibstyle for UDE SOFTEC]% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% +\ProvidesClass{udesoftec}[2015/08/27 v1.5.1 udesoftec.cls Thesis class and bibstyle for UDE SOFTEC]% % class is based on KOMA-script http://www.ctan.org/pkg/koma-script \LoadClass{scrbook} \KOMAoptions{ @@ -53,30 +51,45 @@ bibstyle for UDE SOFTEC]% listof=totoc, headlines=1.5 % the size of the header in lines (1.5 because of pagemark and sepline); 1.25 is default; 1 would be appropriate if only text and no sepline) } -%\usepackage{udesoftec-cmd} %%%% nag %%%%%%%%%%%%% % purpose: identifies deprecated code and suggests better pckgs % source: http://www.ctan.org/pkg/nag \RequirePackage[l2tabu, orthodox]{nag} %%%%%%%%%%%%%%%%%%%%%% - + + + %%%%%%%%%%%%%%%%%%%%%% \usepackage{xstring} \edef\udesoftecversionstring{\csname ver@udesoftec.cls\endcsname} \StrLeft{\udesoftecversionstring}{27}[\udesoftecversion] - -\usepackage{libertine} - \pdfminorversion=6 \newif\ifdebugThisClass \debugThisClassfalse \newcommand{\classdebug}[1]{\ifdebugThisClass\ClassWarning{udesoftec}{#1}\fi} -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\ignoreHbadness}[1]{% + \let\originalHbadness\hbadness% + \hbadness 100000% + #1 + \hbadness \originalHbadness% +} + +\newcommand{\chapterWithoutPageBreak}[1]{% + \let\oldcleardoublepage\cleardoublepage% + \let\oldclearpage\clearpage% + \let\clearpage\relax% + \let\cleardoublepage\relax% + \let\backupskip\chapterheadstartvskip% + \renewcommand\chapterheadstartvskip{\vspace*{-\topskip}\vspace*{30pt}}% + \par\chapter*{#1}% + \let\cleardoublepage\oldcleardoublepage% + \let\clearpage\oldclearpage% + \let\chapterheadstartvskip\backupskip% +} +\newcommand{\udesoftecoverride}{} + %%% all template conditions \newif\ifdocumentIsFinal \newif\ifdocumentIsProposal @@ -97,21 +110,29 @@ bibstyle for UDE SOFTEC]% \newif\ifdocumentOmitLOL \newif\ifdocumentOmitLOF \newif\ifdocumentOmitLOA +\newif\ifdocumentOmitPageBreaks +\newif\ifdocumentOmitTitle \newif\ifdocumentOmitTOC \newif\ifdocumentOmitTodos \newif\ifdocumentOmitA \newif\ifdocumentOmitAen \newif\ifdocumentHasShortA \newif\ifdocumentUsedTodos +\newif\ifdocumentUsedTodos + +\newif\iffallBackToBibtex %%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% -%%% all default values and the options +%%% all default values and the options +\fallBackToBibtextrue \documentIsFinalfalse \documentIsProposalfalse \documentOmitLOTfalse +\documentOmitTitlefalse +\documentOmitPageBreaksfalse \documentOmitSDfalse \documentOmitLOFfalse \documentOmitLOAfalse @@ -138,6 +159,17 @@ bibstyle for UDE SOFTEC]% %%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% % Document options +\DeclareOption{mwe}{ + \documentOmitLOTtrue + \documentOmitSDtrue + \documentOmitLOFtrue + \documentOmitLOAtrue + \documentOmitTOCtrue + \documentOmitAtrue + \documentOmitTodostrue + \documentOmitTitletrue + \documentOmitPageBreakstrue +} \DeclareOption{draft} {\documentIsFinalfalse} \DeclareOption{final} {\documentIsFinaltrue} \DeclareOption{proposal}{ @@ -150,6 +182,7 @@ bibstyle for UDE SOFTEC]% \documentOmitAtrue \documentOmitTodosfalse } + \ifdocumentIsFinal \ifdocumentIsProposal \documentOmitTodostrue @@ -162,6 +195,8 @@ bibstyle for UDE SOFTEC]% \fi \else% \fi% +\DeclareOption{bibtex} {\fallBackToBibtextrue} +\DeclareOption{biber} {\fallBackToBibtexfalse} \DeclareOption{de} {\primaryDocumentLanguageGermantrue} \DeclareOption{en} {\primaryDocumentLanguageGermanfalse} \DeclareOption{omit-lot} {\documentOmitLOTtrue} @@ -201,16 +236,6 @@ bibstyle for UDE SOFTEC]% %%%%%%%%%%%%%%%%%%%%%% %Process all document options \ProcessOptions\relax - -\ifprimaryDocumentLanguageGerman - \def\udesoftec@documentLanguage{english,ngerman} % all used languages, primary LAST -\else - \def\udesoftec@documentLanguage{ngerman,english} -\fi -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% % document title page and configuration commands \newcommand{\city}[1]{\def\udesoftec@city{#1}} \newcommand{\typeofdoc}[1]{\def\udesoftec@typeofdoc{#1}} @@ -220,18 +245,13 @@ bibstyle for UDE SOFTEC]% \newcommand{\institution}[1]{\def\udesoftec@institution{#1}} \newcommand{\semester}[1]{\def\udesoftec@semester{#1}} \newcommand{\entitle}[1]{\def\udesoftec@entitle{#1}} -\newcommand{\confidentialitySource}[1]{\def\udesoftec@confidentialitySource{#1}} +\newcommand{\confidentialitySource}[1]{\def\udesoftec@confidentialitySource{#1}} +\newcommand{\confidSource}[1]{\def\udesoftec@confidentialitySource{#1}} \newcommand{\authorbox}[1]{\def\udesoftec@authorbox{#1}} \newcommand{\abstract}[1]{\def\udesoftec@abstract{#1}} -\newcommand{\abstractEn}[1]{\def\udesoftec@abstracten{#1}} +\newcommand{\abstractEn}[1]{\def\udesoftec@abstracten{#1}} -\def \udesoftec@templatePageMarkPrefix {} % might be something like "S. " -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% default configuration for title page and configuration \title{Komplexer Titel einer Abschlussarbeit f\"ur ein Dokument} \author{Max Mustermann} @@ -241,7 +261,7 @@ bibstyle for UDE SOFTEC]% \labelRespectConfidentiality{(Sperrvermerk beachten)} \academicfield{Wirtschaftsinformatik} \institution{Vorgelegt der Fakult\"at f\"ur Wirtschaftswissenschaften\par der Universit\"at Duisburg-Essen} -\semester{Wintersemester 2011/2012, 8. Fachsemester \academicfield} +\semester{Wintersemester 2015/2016, 8. Fachsemester \academicfield} \entitle{Englischer Titel der Arbeit} \confidentialitySource{Name der Firma, die auf die Vertraulichkeitserkl\"arung besteht} \date{Dokumentversion: \today \linebreak Templateversion: @@ -260,100 +280,6 @@ bibstyle for UDE SOFTEC]% \\ \end{tabularx} } -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% Abstract -\newcaptionname{ngerman}{\labelabstracttitle}{Kurzfassung} -\newcaptionname{english}{\labelabstracttitle}{Abstract} -\def\udesoftec@defaultabstractde{Jede wissenschaftliche Arbeit sollte eine Kurzfassung am Anfang aufweisen. Diese Kurzfassung sollte etwa eine halbe Seite lang sein.} -\def\udesoftec@defaultabstractdeen{As all theses have an English title, there should be an English abstract as well.\par Folglich sollten auch deutsche Arbeiten einen englischen Abstract haben. Falls die Abstracts zu lang werden, gibt es im Handbuch eine Hilfestellung.} -\def\udesoftec@defaultabstracten{Every thesis should have an abstract at the beginning. This abstract should be about have an page long. Of course an English thesis doesn't need an German abstract, as it doesn't even have a German title.} -\abstract{\udesoftec@defaultabstractde} -\abstractEn{\udesoftec@defaultabstractdeen} - - -\newcommand{\printabstract}{% - \chapter*{\labelabstracttitle}% - \label{sec:abstract} - \pdfbookmark[0]{\labelabstracttitle}{sec:abstract}% - \udesoftec@abstract - - \iflanguage{ngerman}{% - % German theses should have German and English abstract - \ifdocumentOmitAen - % no second abstract here - \else - \selectlanguage{english} - \ifdocumentHasShortA% - \chapterWithoutPageBreak{\labelabstracttitle} - \label{sec:abstracten} - \else - \chapter*{\labelabstracttitle} - \label{sec:abstracten} - \fi - \udesoftec@abstracten - \selectlanguage{ngerman} - \fi - }{} -} - - - -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% confidentiality clause -\newcaptionname{ngerman}{\labelconfidentialityclausetitle}{Sperrvermerk} -\newcaptionname{english}{\labelconfidentialityclausetitle}{Confidentially Clause} -\def\udesoftec@defaultconfidentialityclause{Die vorliegende \udesoftec@typeofdoc ~enth\"alt vertrauliche Informationen der \emph{\udesoftec@confidentialitySource}, die der Geheimhaltung unterliegen. Ver\"offentlichungen oder Vervielf\"altigungen der \udesoftec@typeofdoc ~-- auch nur auszugsweise -- sind ohne ausdr\"uckliche Genehmigung der \emph{\udesoftec@confidentialitySource} nicht gestattet. Die \udesoftec@typeofdoc ~ist nur den Mitarbeitern des betreuenden Lehrstuhls sowie den Mitgliedern des Pr\"ufungsausschusses zug\"anglich zu machen.\par{} Dieser Sperrvermerk gilt f\"ur die n\"achsten 2 Jahre. Die sich aus diesem Sperrvermerk ergebenden Einschr\"ankungen entfallen nach Ablauf dieses Zeitraums.\par{}} -\def\udesoftec@defaultconfidentialityclauseen{This \udesoftec@typeofdoc ~contains confidential data of \emph{\udesoftec@confidentialitySource}. Any publication or duplication of this \udesoftec@typeofdoc ~-- even in part -- is prohibited, excluding cases with explicit permission by \emph{\udesoftec@confidentialitySource}. The \udesoftec@typeofdoc ~is to be made accessible only to the staff of the research group supervising it and the board of examiners.\par{} This confidentially clause is valid for the next 2 years. Any limitations resulting from this confidentially clause do not apply after this period.\par{}} - -% there should always be an additional German cc in English theses -\newcommand{\confidentialityclause}{% - \iflanguage{english}{% - \cleardoublepage - \chapter*{\labelconfidentialityclausetitle} % English heading - \udesoftec@defaultconfidentialityclauseen % English text - \selectlanguage{ngerman} % prepare German - \chapterWithoutPageBreak{\labelconfidentialityclausetitle} % German heading - \udesoftec@defaultconfidentialityclause % German text - \selectlanguage{english} % switching back to English - }{ - \cleardoublepage - \chapter*{\labelconfidentialityclausetitle} - \udesoftec@defaultconfidentialityclause - } -} - -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% Statutory declaration -\newcaptionname{ngerman}{\labelstatutorydeclarationheading}{Eidesstattliche Versicherung} -\newcaptionname{english}{\labelstatutorydeclarationheading}{Statutory Declaration} -\def\udesoftec@defaultstatutorydeclaration{Ich versichere an Eides statt durch meine Unterschrift, dass ich die vorstehende Arbeit selbst\"andig und ohne fremde Hilfe angefertigt und alle Stellen, die ich w\"ortlich oder ann\"ahrend w\"ortlich aus Ver\"offentlichungen entnommen habe, als solche kenntlich gemacht habe, mich auch keiner anderen als der angegebenen Literatur oder sonstiger Hilfsmittel bedient habe. Die Arbeit hat in dieser oder \"ahnlicher Form noch keiner anderen Pr\"ufungsbeh\"orde vorgelegen.\par{} \vspace*{40pt}\parbox{4cm}{\udesoftec@city, \today\hrule\strut \footnotesize Ort, Datum} \hfill\parbox{7cm}{\textcolor{white}{Hier wurde im Original unterschrieben}\hrule\strut \footnotesize Unterschrift} \hfill} -\def\udesoftec@defaultstatutorydeclarationenprefix{The statutory declaration needs to be in German, so the following excerpt is in German:} - -\newcommand{\statutorydeclaration}{ - \iflanguage{english}{ - \cleardoublepage - \chapter*{\labelstatutorydeclarationheading} - \udesoftec@defaultstatutorydeclarationenprefix - \selectlanguage{ngerman} - \chapterWithoutPageBreak{\labelstatutorydeclarationheading} - \udesoftec@defaultstatutorydeclaration - \selectlanguage{english} - }{ - \cleardoublepage - \chapter*{\labelstatutorydeclarationheading} - \udesoftec@defaultstatutorydeclaration - - } -} \ifprimaryDocumentLanguageGerman \else @@ -382,39 +308,47 @@ bibstyle for UDE SOFTEC]% \end{tabularx} } \fi +\usepackage{libertine} +%% special set font before fontenc! +\fontfamily{LinuxLibertineT-TLF} +\usepackage[T1]{fontenc} +\iftemplateUseSansSerifFont + \renewcommand*{\familydefault}{\sfdefault} +\else + \renewcommand*\familydefault{\rmdefault} +\fi +\setkomafont{descriptionlabel}{\normalfont\bfseries} +\setkomafont{dictumtext}{\normalfont\normalcolor\small} +\setkomafont{disposition}{\normalfont\normalcolor\bfseries} +\setkomafont{caption}{\normalfont\normalcolor\scriptsize} +%%%% microtype %%%%%% +% purpose: character protrusion (also known as margin kerning) and font expansion +% purpose-de: optischen Randausgleich verwenden. Beispiele siehe Paket-Doku% source: http://www.ctan.org/pkg/microtype +\usepackage{microtype} %%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% title page background -% default + \ifprimaryDocumentLanguageGerman - \def\udesoftec@templateTitlePageBackground{udesoftec-cover-ude-de} + \def\udesoftec@documentLanguage{british,ngerman} % + % all used languages, primary LAST \else - \def\udesoftec@templateTitlePageBackground{udesoftec-cover-ude-en} -\fi -% VAWi-Bamberg special (no matter what language) -\iftemplateVawiBamberg - \def\udesoftec@templateTitlePageBackground{udesoftec-cover-uba} + \def\udesoftec@documentLanguage{ngerman,british} \fi -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%% -% VAWi special -\iftemplateVawiEssen - \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik\par der Universit\"at Duisburg-Essen} - \labelPreTopic{} -\fi -\iftemplateVawiBamberg - \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik} - \labelPreTopic{} -\fi +\def \udesoftec@templatePageMarkPrefix {} % might be something like "S. " + + +%%%% l18n %%%%%%%%%%%%% +% purpose: localization and utf-8 config +% babel has primary language last +\usepackage[\udesoftec@documentLanguage]{babel} +\usepackage[utf8]{inputenc} +\usepackage{hyphenat} % helps with \nohyphens command, which allows to remove hypens from quotes. +%%%%%%%%%%%%%%%%%%%%%% + %%%% xcolor %%%%%%%%%% % purpose: define some color names \usepackage[svgnames]{xcolor} @@ -509,52 +443,95 @@ bibstyle for UDE SOFTEC]% \colorlet{LinkAnchor}{black} % not used \fi +\providecaptionname{ngerman}{\labelabstracttitle}{Kurzfassung} +\providecaptionname{british}{\labelabstracttitle}{Abstract} +\def\udesoftec@defaultabstractde{Jede wissenschaftliche Arbeit sollte eine Kurzfassung am Anfang aufweisen. Diese Kurzfassung sollte etwa eine halbe Seite lang sein.} +\def\udesoftec@defaultabstractdeen{As all theses have an English title, there should be an English abstract as well.\par Folglich sollten auch deutsche Arbeiten einen englischen Abstract haben. Falls die Abstracts zu lang werden, gibt es im Handbuch eine Hilfestellung.} +\def\udesoftec@defaultabstracten{Every thesis should have an abstract at the beginning. This abstract should be about have an page long. Of course an English thesis doesn't need an German abstract, as it doesn't even have a German title.} +\ifprimaryDocumentLanguageGerman + \abstract{\udesoftec@defaultabstractde} + \abstractEn{\udesoftec@defaultabstractdeen} +\else + \abstract{\udesoftec@defaultabstracten} + \abstractEn{} +\fi +\newcommand{\printabstract}{% + \chapter*{\labelabstracttitle}% + \label{sec:abstract} + \pdfbookmark[0]{\labelabstracttitle}{sec:abstract}% + \udesoftec@abstract + + \iflanguage{ngerman}{% + % German theses should have German and English abstract + \ifdocumentOmitAen + % no second abstract here + \else + \selectlanguage{british} + \ifdocumentHasShortA% + \chapterWithoutPageBreak{\labelabstracttitle} + \label{sec:abstracten} + \else + \chapter*{\labelabstracttitle} + \label{sec:abstracten} + \fi + \udesoftec@abstracten + \selectlanguage{ngerman} + \fi + }{} +} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcaptionname{ngerman}{\labelconfidentialityclausetitle}{Sperrvermerk} +\newcaptionname{british}{\labelconfidentialityclausetitle}{Confidentially Clause} +\def\udesoftec@defaultconfidentialityclause{Die vorliegende \udesoftec@typeofdoc ~enth\"alt vertrauliche Informationen der \emph{\udesoftec@confidentialitySource}, die der Geheimhaltung unterliegen. Ver\"offentlichungen oder Vervielf\"altigungen der \udesoftec@typeofdoc ~-- auch nur auszugsweise -- sind ohne ausdr\"uckliche Genehmigung der \emph{\udesoftec@confidentialitySource} nicht gestattet. Die \udesoftec@typeofdoc ~ist nur den Mitarbeitern des betreuenden Lehrstuhls sowie den Mitgliedern des Pr\"ufungsausschusses zug\"anglich zu machen.\par{} Dieser Sperrvermerk gilt f\"ur die n\"achsten 2 Jahre. Die sich aus diesem Sperrvermerk ergebenden Einschr\"ankungen entfallen nach Ablauf dieses Zeitraums.\par{}} +\def\udesoftec@defaultconfidentialityclauseen{This \udesoftec@typeofdoc ~contains confidential data of \emph{\udesoftec@confidentialitySource}. Any publication or duplication of this \udesoftec@typeofdoc ~-- even in part -- is prohibited, excluding cases with explicit permission by \emph{\udesoftec@confidentialitySource}. The \udesoftec@typeofdoc ~is to be made accessible only to the staff of the research group supervising it and the board of examiners.\par{} This confidentially clause is valid for the next 2 years. Any limitations resulting from this confidentially clause do not apply after this period.\par{}} + +% there should always be an additional German cc in English theses +\newcommand{\confidentialityclause}{% + \iflanguage{british}{% + \cleardoublepage + \chapter*{\labelconfidentialityclausetitle} % English heading + \udesoftec@defaultconfidentialityclauseen % English text + \selectlanguage{ngerman} % prepare German + \chapterWithoutPageBreak{\labelconfidentialityclausetitle} % German heading + \udesoftec@defaultconfidentialityclause % German text + \selectlanguage{british} % switching back to English + }{ + \cleardoublepage + \chapter*{\labelconfidentialityclausetitle} + \udesoftec@defaultconfidentialityclause + } +} + +\newcaptionname{ngerman}{\labelstatutorydeclarationheading}{Eidesstattliche Versicherung} +\newcaptionname{british}{\labelstatutorydeclarationheading}{Statutory Declaration} +\def\udesoftec@defaultstatutorydeclaration{Ich versichere an Eides statt durch meine Unterschrift, dass ich die vorstehende Arbeit selbst\"andig und ohne fremde Hilfe angefertigt und alle Stellen, die ich w\"ortlich oder ann\"ahrend w\"ortlich aus Ver\"offentlichungen entnommen habe, als solche kenntlich gemacht habe, mich auch keiner anderen als der angegebenen Literatur oder sonstiger Hilfsmittel bedient habe. Die Arbeit hat in dieser oder \"ahnlicher Form noch keiner anderen Pr\"ufungsbeh\"orde vorgelegen.\par{} \vspace*{40pt}\parbox{4cm}{\udesoftec@city, \today\hrule\strut \footnotesize Ort, Datum} \hfill\parbox{7cm}{\textcolor{white}{Hier wurde im Original unterschrieben}\hrule\strut \footnotesize Unterschrift} \hfill} +\def\udesoftec@defaultstatutorydeclarationenprefix{The statutory declaration needs to be in German, so the following excerpt is in German:} +\newcommand{\statutorydeclaration}{ + \iflanguage{british}{ + \cleardoublepage + \chapter*{\labelstatutorydeclarationheading} + \udesoftec@defaultstatutorydeclarationenprefix + \selectlanguage{ngerman} + \chapterWithoutPageBreak{\labelstatutorydeclarationheading} + \udesoftec@defaultstatutorydeclaration + \selectlanguage{british} + }{ + \cleardoublepage + \chapter*{\labelstatutorydeclarationheading} + \udesoftec@defaultstatutorydeclaration + + } +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % http://www.golatex.de/nummerierung-der-fussnoten-durchgehend-im-gesamten-dokument-t2042.html % change counters for figures, footnotes, etc \usepackage{chngcntr} \counterwithout{footnote}{chapter} % count footnotes for whole document, not per chapter -%%%% l18n %%%%%%%%%%%%% -% purpose: localization and utf-8 config -% babel has primary language last -\usepackage[\udesoftec@documentLanguage]{babel} -\usepackage[utf8]{inputenc} -\usepackage{hyphenat} % helps with \nohyphens command, which allows to remove hypens from quotes. -%%%%%%%%%%%%%%%%%%%%%% - -%%%% helvet %%%%%%%%%% -% purpose: use helvetica -%% special set font before fontenc! -\fontfamily{LinuxLibertineT-TLF} -\usepackage[T1]{fontenc} - -\iftemplateUseSansSerifFont - \renewcommand*{\familydefault}{\sfdefault} -\else - \renewcommand*\familydefault{\rmdefault} -\fi -\setkomafont{descriptionlabel}{\normalfont\bfseries} -\setkomafont{dictumtext}{\normalfont\normalcolor\small} -\setkomafont{disposition}{\normalfont\normalcolor\bfseries} -\setkomafont{caption}{\normalfont\normalcolor\scriptsize} -%%%%%%%%%%%%%%%%%%%%%% - - - -%%%% microtype %%%%%% -% purpose: character protrusion (also known as margin kerning) and font expansion -% purpose-de: optischen Randausgleich verwenden. Beispiele siehe Paket-Doku% source: http://www.ctan.org/pkg/microtype -\usepackage{microtype} -%%%%%%%%%%%%%%%%%%%%%% - %%%% graphicx %%%%%%%% % purpose: allows better graphics import @@ -591,9 +568,142 @@ bibstyle for UDE SOFTEC]% \usepackage{enumitem} -%\def \breaklabel{\ClassWarning{udesoftec}{\\breaklabel deprecated use "style=newline"}} +\usepackage{multicol} +%%%%%%%%%%%%%%%%%%%%%% +% title page background +% default +\ifprimaryDocumentLanguageGerman + \def\udesoftec@templateTitlePageBackground{udesoftec-cover-ude-de} +\else + \def\udesoftec@templateTitlePageBackground{udesoftec-cover-ude-en} +\fi +% VAWi-Bamberg special (no matter what language) +\iftemplateVawiBamberg + \def\udesoftec@templateTitlePageBackground{udesoftec-cover-uba} +\fi +%%%%%%%%%%%%%%%%%%%%%% +% VAWi special +\iftemplateVawiEssen + \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik\par der Universit\"at Duisburg-Essen} + \labelPreTopic{} +\fi +\iftemplateVawiBamberg + \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik} + \labelPreTopic{} +\fi + + +\ifdocumentOmitTitle + \renewcommand{\maketitle}{} +\else + \usepackage{wallpaper} + \newcommand{\udesoftecmaketitle} { + \newgeometry{bottom=1cm, inner=0cm,outer=0cm,top=4cm} + \begin{titlepage} + \begin{center} + \ThisCenterWallPaper{1}{\udesoftec@templateTitlePageBackground} + \vspace*{30pt} + \begin{minipage}[30em]{.7\linewidth} + \begin{center} + \Large\udesoftec@typeofdoc\par + \normalsize\udesoftec@labelPreTopic\par + \vspace*{20pt} + {\color{documentTitle}\Huge\textbf{\@title}\par} + \vspace*{20pt} + {\color{documentTitle}\huge\textbf{\@subtitle}\par} + \vspace*{20pt} + {\color{documentTitle}\large\textbf{\udesoftec@entitle}\par} + \vspace*{50pt} + \large\udesoftec@institution + \end{center} + \end{minipage} + \vfill + \begin{minipage}{.7\linewidth} + \begin{center} + \ifdocumentOmitCC + \else + \udesoftec@labelRespectConfidentiality\par + \fi + \vspace*{20pt}\Large\@date + \end{center} + \vspace*{30pt} + \end{minipage} + \udesoftec@authorbox\par + \begin{minipage}{.7\linewidth} + \begin{center} + \vspace*{40pt} + \large\udesoftec@semester\par + \end{center} + \end{minipage}% + \end{center}% + \end{titlepage}% + \restoregeometry + } + + \newcommand{\udesoftecvawibambergmaketitle}{ + \newgeometry{bottom=1cm, left=2cm,right=1cm,top=4cm} + \begin{titlepage} + \begin{center} + \ThisCenterWallPaper{1}{\udesoftec@templateTitlePageBackground} + \vspace*{0pt} + \begin{minipage}[30em]{.7\linewidth} + \begin{center} + {\color{documentTitle}\Huge\textbf{\@title}\par} + \vspace*{20pt} + {\color{documentTitle}\huge\textbf{\@subtitle}\par} + \vspace*{20pt} + {\color{documentTitle}\large\textbf{\udesoftec@entitle}\par} + \vspace*{50pt} + \hrule + \vspace*{20pt} + \Large\textbf{\udesoftec@typeofdoc}\par + \large\udesoftec@institution\par + \vspace*{20pt} + \hrule + \vspace*{20pt} + \end{center} + \end{minipage} + \vfill + \begin{minipage}{.7\linewidth} + \begin{center} + \ifdocumentOmitCC + \else + \udesoftec@labelRespectConfidentiality\par + \fi + \vspace*{15pt}\Large\@date + \end{center} + \vspace*{20pt} + \end{minipage} + \udesoftec@authorbox\par + \begin{minipage}{.7\linewidth} + \begin{center} + \vspace{20pt} + \large\udesoftec@semester\par + \vspace{20pt} + \end{center}% + \end{minipage}% + \end{center}% + \end{titlepage}% + \restoregeometry + } + + \renewcommand{\maketitle}{\udesoftecmaketitle} + \iftemplateVawiBamberg + \renewcommand{\maketitle}{\udesoftecvawibambergmaketitle} + \fi + \let\oldmaketitle\maketitle + \renewcommand{\maketitle}{ + \let\oldhbadness\hbadness + \let\oldvbadness\vbadness + \hbadness=10000 + \vbadness=10000 + \oldmaketitle + \let\hbadness\oldhbadness + \let\vbadness\oldvbadness + } +\fi %%%% chapterdesign %%% \addtokomafont{chapter}{\color{chapter}} \addtokomafont{sectioning}{\color{section}} @@ -605,6 +715,9 @@ bibstyle for UDE SOFTEC]% % Chapter-Numbering for 4 levels, i.e. PART B Chapter 5.7.3.1; in order to have unnumbered headings use \paragraph{} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % purpose: have some nice chapter headings (big number, lines and so on) % we need type1cm and cm-super for the bigger fonts - else there would be warnings @@ -635,7 +748,12 @@ bibstyle for UDE SOFTEC]% \endgroup } %%%%%%%%%%%%%%%%%%%%%% - +\ifdocumentOmitPageBreaks + \let\chapterformat\defaultchapterformat + \let\cleardoublepage\clearpage% + \let\clearpage\par% + \let\appendix\par% +\fi \renewcommand{\headfont}{\normalfont\small\color{HeadmarkText}} % header text should be small \renewcommand{\pnumfont}{\normalfont\small\color{PagemarkText}} % pagenumber is in header and should be small too @@ -726,115 +844,12 @@ bibstyle for UDE SOFTEC]% \renewcommand*\chapterheadstartvskip{} - -\usepackage{wallpaper} -\newcommand{\udesoftecmaketitle} { - \newgeometry{bottom=1cm, inner=0cm,outer=0cm,top=4cm} - \begin{titlepage} - \begin{center} - \ThisCenterWallPaper{1}{\udesoftec@templateTitlePageBackground} - \vspace*{30pt} - \begin{minipage}[30em]{.7\linewidth} - \begin{center} - \Large\udesoftec@typeofdoc\par - \normalsize\udesoftec@labelPreTopic\par - \vspace*{20pt} - {\color{documentTitle}\Huge\textbf{\@title}\par} - \vspace*{20pt} - {\color{documentTitle}\huge\textbf{\@subtitle}\par} - \vspace*{20pt} - {\color{documentTitle}\large\textbf{\udesoftec@entitle}\par} - \vspace*{50pt} - \large\udesoftec@institution - \end{center} - \end{minipage} - \vfill - \begin{minipage}{.7\linewidth} - \begin{center} - \ifdocumentOmitCC - \else - \udesoftec@labelRespectConfidentiality\par - \fi - \vspace*{20pt}\Large\@date - \end{center} - \vspace*{30pt} - \end{minipage} - \udesoftec@authorbox\par - \begin{minipage}{.7\linewidth} - \begin{center} - \vspace*{40pt} - \large\udesoftec@semester\par - \end{center} - \end{minipage}% - \end{center}% - \end{titlepage}% - \restoregeometry -} - -\newcommand{\udesoftecvawibambergmaketitle}{ - \newgeometry{bottom=1cm, left=2cm,right=1cm,top=4cm} - \begin{titlepage} - \begin{center} - \ThisCenterWallPaper{1}{\udesoftec@templateTitlePageBackground} - \vspace*{0pt} - \begin{minipage}[30em]{.7\linewidth} - \begin{center} - {\color{documentTitle}\Huge\textbf{\@title}\par} - \vspace*{20pt} - {\color{documentTitle}\huge\textbf{\@subtitle}\par} - \vspace*{20pt} - {\color{documentTitle}\large\textbf{\udesoftec@entitle}\par} - \vspace*{50pt} - \hrule - \vspace*{20pt} - \Large\textbf{\udesoftec@typeofdoc}\par - \large\udesoftec@institution\par - \vspace*{20pt} - \hrule - \vspace*{20pt} - \end{center} - \end{minipage} - \vfill - \begin{minipage}{.7\linewidth} - \begin{center} - \ifdocumentOmitCC - \else - \udesoftec@labelRespectConfidentiality\par - \fi - \vspace*{15pt}\Large\@date - \end{center} - \vspace*{20pt} - \end{minipage} - \udesoftec@authorbox\par - \begin{minipage}{.7\linewidth} - \begin{center} - \vspace{20pt} - \large\udesoftec@semester\par - \vspace{20pt} - \end{center}% - \end{minipage}% - \end{center}% - \end{titlepage}% - \restoregeometry +\iffallBackToBibtex +\else +\AtEndDocument{% + \appendix% } - -\renewcommand{\maketitle}{\udesoftecmaketitle} -\iftemplateVawiBamberg - \renewcommand{\maketitle}{\udesoftecvawibambergmaketitle} \fi -\let\oldmaketitle\maketitle -\renewcommand{\maketitle}{ - \let\oldhbadness\hbadness - \let\oldvbadness\vbadness - \hbadness=10000 - \vbadness=10000 - \oldmaketitle - \let\hbadness\oldhbadness - \let\vbadness\oldvbadness -} - - -% !Mode:: "TeX:UTF-8" % special: don't change marginpar, else it will create overfuls with package todonotes \usepackage{marginnote} \ifx\marginfont\undefined @@ -853,38 +868,6 @@ bibstyle for UDE SOFTEC]% \message{LaTeX Warning: \noexpand\marginline is deprecated, use \noexpand\marginnote on input line \the\inputlineno } \marginnote[#1]{#2} } - -\newcommand{\chapterWithoutPageBreak}[1]{% - \let\oldcleardoublepage\cleardoublepage% - \let\oldclearpage\clearpage% - \let\clearpage\relax% - \let\cleardoublepage\relax% - \let\backupskip\chapterheadstartvskip% - \renewcommand\chapterheadstartvskip{\vspace*{-\topskip}\vspace*{10pt}}% - \par\chapter*{#1}% - \let\cleardoublepage\oldcleardoublepage% - \let\clearpage\oldclearpage% - \let\chapterheadstartvskip\backupskip% -} - -\newcommand{\ignoreHbadness}[1]{% - \let\originalHbadness\hbadness% - \hbadness 100000% - #1 - \hbadness \originalHbadness% -} - -\newcommand{\figref}[1]{\autoref{fig:#1}} - - - -\newcommand{\eng}[1]{engl.: \emph{\english{#1}}} -\newcommand{\entode}[1]{engl. für \emph{\english{#1}}} -\newcommand{\english}[1]{\foreignlanguage{english}{#1}} - -\newcommand{\good}[1]{\textcolor{Good}{#1}} -\newcommand{\bad}[1]{\textcolor{Bad}{#1}} - %%%%%%%%%%%%%%%% % allow footnotes in minipage % from http://stackoverflow.com/questions/3126082/store-a-text-string-in-latex-and-then-add-other-text-to-it-concatenate @@ -903,8 +886,6 @@ bibstyle for UDE SOFTEC]% %\footnoteNumberInMinipage %\let\executeThisAfterEndOfMinipage aloa }% - - %%%%%%%%%%%%%%%%%%%%%%%%% % have quote boxes with big quotation marks % big quotation marks based on, reduced code and used mdframed @@ -955,8 +936,6 @@ bibstyle for UDE SOFTEC]% \par\hfill\small\cite[#1]{#2}% \end{citequoteparenv}% } - - \newenvironment{exampleBox}[1][]{% \mdfsetup{% frametitle={% @@ -990,9 +969,6 @@ bibstyle for UDE SOFTEC]% \let\footnote\defaultCmdFootnote% } - -%%%%%%%%%%%%%%%% -\usepackage{multicol} \usepackage{listings} \lstset{% frame=single,% @@ -1034,7 +1010,7 @@ commentstyle=\color{DocumentMedium0}, \lstset{ language={[LaTeX]TeX}, breaklines=true, - moretexcs={\citeauthor,\autoref,\includegraphics,\citet,\citetext,\citealp,\inlinetodo,\todo,\entitle,\authorbox,\city,\typeofdoc,\semester,\confidentialitySource,\academicfield,\institution,\abstract,\abstractEn,\printacronyms}, + moretexcs={\citeauthor,\autoref,\includegraphics,\citet,\citetext,\citealp,\inlinetodo,\todo,\entitle,\authorbox,\city,\typeofdoc,\semester,\confidSource,\confidentialitySource,\academicfield,\institution,\abstract,\abstractEn,\printacronyms}, morekeywords={figure,document,itemize,enumerate,description,final,omit-todos,tabularx}, emph={style,leftmargin}, texcsstyle=*\color{DocumentDark1}, @@ -1074,10 +1050,6 @@ language={[LaTeX]TeX}, texcsstyle=*\color{DocumentDark1}, keywordstyle=\color{DocumentDark3}\textbf, ]} - -\providecommand{\ctanlink}[1]{\href{http://www.ctan.org/pkg/#1}{#1}} - - \usepackage[ ngerman, textsize=tiny, @@ -1125,11 +1097,11 @@ colorinlistoftodos \renewcommand{\listoftodos}{ \defaultListoftodos } + + \ifdocumentUsedTodos + \listoftodos + \fi \fi - - - - %%%% hyperref %%%%%%%% %% special: hyperref needs to be loaded last! (exception hycap) %% purpose: make internal and external links working and colored @@ -1153,14 +1125,12 @@ bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{h %% purpose: links to figures and tables should link to top of figure and not to top of caption %% (which is below figure, so figure wouldn't show but only caption); no other change necessary \usepackage[all]{hypcap} - - %%%% glossary %%%%%%%%% % for glossary and acronyms; instead of package acronym % special: glossary after hyperref % special:\AtEndDocument{\printglossary} before usepackage to suppress warning of missing printglossary %\usepackage[footnote,printonlyused]{acronym} -\usepackage[acronym,nonumberlist,section=chapter,toc]{glossaries} +\usepackage[acronym,nonumberlist,section=chapter,toc,nowarn]{glossaries} \deftranslation[to=ngerman]{Acronyms}{Abkürzungsverzeichnis} \deftranslation[to=ngerman]{Glossary}{Glossar} \makeglossaries @@ -1181,13 +1151,28 @@ bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{h \glossaryentryfield{##2}{##3}{##4}{##5}{##6}}% } -% !Mode:: "TeX:UTF-8" -%%%% todonotes %%%%%%% -% purpose: get (orange) todo comments in text or in margin -% use option "disable" to disable the complete packages (leaving all commands intact, just removing output) -\usepackage{udesoftec-bst} -\usepackage[listings]{scrhack} +\AtEndDocument{% + \printglossary% +} +\newcommand{\figref}[1]{\autoref{fig:#1}} +\newcommand{\eng}[1]{engl.: \emph{\english{#1}}} +\newcommand{\entode}[1]{engl. für \emph{\english{#1}}} +\newcommand{\english}[1]{\foreignlanguage{british}{#1}} +\newcommand{\good}[1]{\textcolor{Good}{#1}} +\newcommand{\bad}[1]{\textcolor{Bad}{#1}} +\providecommand{\ctanlink}[1]{\href{http://www.ctan.org/pkg/#1}{#1}} +\usepackage{udesoftec-bibcommon} +\iffallBackToBibtex + \usepackage{udesoftec-bst} +\else + \usepackage{udesoftec-biblatex} + \AtEndDocument{% + \printbibliography + } +\fi + +\usepackage[listings]{scrhack} % make list of x conditional due to their usage % http://tex.stackexchange.com/questions/33193/how-to-determine-whether-a-list-of-figures-is-empty \AtEndEnvironment{figure}{\gdef\udesoftec@usedlistofitems@figure{}}% @@ -1208,7 +1193,6 @@ bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{h \AtEndDocument{\ifdefined\udesoftec@usedlistofitems@acronyms\label{udesoftec:needsloa}\fi}% \newcommand{\udesoftecprintacronyms}{\@ifundefined{r@udesoftec:needsloa}{}{\printacronyms[style=myAcronymStyle]}}% -\newcommand{\udesoftecoverride}{} \AfterEndPreamble{ \udesoftecoverride% \pagenumbering{alph} % title page is "a" - internal trick to prevent two pages with same name @@ -1230,14 +1214,9 @@ bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{h \mainmatter } -\AtEndDocument{ - \printglossary - \ifdocumentUsedTodos - \ifdocumentOmitTodos - \else - \listoftodos - \fi - \fi + + +\AtEndDocument{ \ifdocumentOmitSD\else\statutorydeclaration\fi -} +}
\ No newline at end of file |