diff options
author | Karl Berry <karl@freefriends.org> | 2014-05-14 22:09:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-05-14 22:09:40 +0000 |
commit | 1efb8f542206a6ce4bb27b80651057574c69969d (patch) | |
tree | 20fe0d27fb0ea5dcee96539abad3d6ff930fb416 /Master/texmf-dist/tex/latex | |
parent | 73e4e78204b3547c1e8918b1404910ca37205410 (diff) |
udesoftec (14may14)
git-svn-id: svn://tug.org/texlive/trunk@34036 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls | 232 |
1 files changed, 153 insertions, 79 deletions
diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls b/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls index 9dc536efc04..92b79b27274 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 2014 J. Peter M. Schuler -%% 2014/04/30 v1.3.7 udesoftec +%% 2014/05/13 v1.3.8 udesoftec % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -32,7 +32,7 @@ % and % http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf \NeedsTeXFormat{LaTeX2e}% -\ProvidesClass{udesoftec}[2014/04/30 v1.3.7 Thesis class and bibstyle for UDE SOFTEC]% +\ProvidesClass{udesoftec}[2014/05/13 v1.3.8 Thesis class and bibstyle for UDE SOFTEC]% \LoadClass[% twoside=true, @@ -43,13 +43,13 @@ %%%% nag %%%%%%%%%%%%% % purpose: identifies deprecated code and suggests better pckgs -% source: http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/nag/nag.pdf +% source: http://www.ctan.org/pkg/nag \RequirePackage[l2tabu, orthodox]{nag} %%%%%%%%%%%%%%%%%%%%%% %%%% fixltx2e %%%%%%%% % purpose: removes some Bugs in LaTeX2e (removes some stupid backwards compatibility) -% source: http://www.ctan.org/tex-archive/help/Catalogue/entries/fixltx2e.html#Dist +% source: http://www.ctan.org/pkg/fixltx2e \usepackage{fixltx2e} %%%%%%%%%%%%%%%%%%%%%% @@ -85,6 +85,9 @@ \newif\ifdocumentOmitLOA \newif\ifdocumentOmitTOC \newif\ifdocumentOmitTodos +\newif\ifdocumentOmitA +\newif\ifdocumentOmitAen +\newif\ifdocumentHasShortA \newif\ifdocumentUsedTodos @@ -99,7 +102,10 @@ \documentOmitLOAfalse \documentOmitTOCfalse \documentOmitTodosfalse +\documentOmitAfalse +\documentOmitAenfalse \documentOmitCCtrue +\documentHasShortAtrue \documentUsedTodosfalse \templateUseColorfulLinkstrue \templateUseSansSerifFonttrue @@ -122,6 +128,9 @@ \DeclareOption{omit-toc} {\documentOmitTOCtrue} \DeclareOption{omit-sd} {\documentOmitSDtrue} \DeclareOption{omit-todos} {\documentOmitTodostrue} +\DeclareOption{omit-a} {\documentOmitAtrue} +\DeclareOption{long-a} {\documentHasShortAfalse} +\DeclareOption{omit-aen} {\documentOmitAentrue} \DeclareOption{confidential}{\documentOmitCCfalse} \DeclareOption{proposal}{ @@ -131,6 +140,7 @@ \documentOmitLOFtrue \documentOmitLOAtrue \documentOmitTOCtrue + \documentOmitAtrue \documentOmitTodosfalse } \ifdocumentIsFinal @@ -192,7 +202,9 @@ \newcommand{\semester}[1]{\def\udesoftec@semester{#1}} \newcommand{\entitle}[1]{\def\udesoftec@entitle{#1}} \newcommand{\confidentialitySource}[1]{\def\udesoftec@confidentialitySource{#1}} -\newcommand{\authorbox}[1]{\def\udesoftec@authorbox{#1}} +\newcommand{\authorbox}[1]{\def\udesoftec@authorbox{#1}} +\newcommand{\abstract}[1]{\def\udesoftec@abstract{#1}} +\newcommand{\abstractEn}[1]{\def\udesoftec@abstracten{#1}} %%%%%%%%%%%%%%%%%%%%%% %%%% labels %%%% @@ -223,6 +235,12 @@ \\ \end{tabularx} } + +\abstract{Jede wissenschaftliche Arbeit sollte eine Kurzfassung am Anfang aufweisen. Diese Kurzfassung sollte etwa eine halbe Seite lang sein.} +\abstractEn{As all theses have an English title, there should be an English abstract as well. + +Folglich sollten auch deutsche Arbeiten einen englischen Abstract haben. Falls die Abstracts zu lang werden, gibt es im Handbuch eine Hilfestellung.} + \newcommand{\confidentialityclausegerman}{ 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. @@ -266,8 +284,45 @@ Pr\"ufungsbeh\"orde vorgelegen. \let\chapterheadstartvskip\backupskip } +\newcaptionname{ngerman}{\labelabstracttitle}{Kurzfassung} +\newcaptionname{english}{\labelabstracttitle}{Abstract} + + +\newcommand{\printabstractDe}{% +\chapter*{\labelabstracttitle} +\label{sec:abstract}\pdfbookmark{\labelabstracttitle}{sec:abstract}% +\udesoftec@abstract + +\ifdocumentOmitAen +\else +\selectlanguage{english} + +\ifdocumentHasShortA% + +\chapterWithoutPageBreak{\labelabstracttitle} +\else + +\chapter*{\labelabstracttitle} +\fi +\label{sec:abstracten}\pdfbookmark{\labelabstracttitle}{sec:abstracten}% +\udesoftec@abstracten +\selectlanguage{ngerman} +\fi +} + +\newcommand{\printabstractEn}{% +\chapter*{\labelabstracttitle} +\label{sec:abstract}\pdfbookmark{\labelabstracttitle}{sec:abstract}% +\udesoftec@abstract +} + +\newcommand{\printabstract}{\printabstractDe} \ifprimaryDocumentLanguageGerman \else +\renewcommand{\printabstract}{\printabstractEn} +\abstract{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.} +\entitle{} +\abstractEn{} \renewcommand*{\confidentialityclause}{ \chapter*{Confidentially Clause} @@ -451,6 +506,8 @@ The statutory declaration needs to be in german, so the following excerpt is in \usepackage{hyphenat} % helps with \nohyphens command, which allows to remove hypens from quotes. %%%%%%%%%%%%%%%%%%%%%% + + %%%% helvet %%%%%%%%%% % purpose: use helvetica % special load font before fontenc! @@ -485,8 +542,7 @@ The statutory declaration needs to be in german, so the following excerpt is in %%%% microtype %%%%%% % purpose: character protrusion (also known as margin kerning) and font expansion -% purpose-de: optischen Randausgleich verwenden. Beispiele siehe Doku http://kambing.ui.ac.id/ctan/macros/latex/contrib/microtype/microtype.pdf Seite 4 Randnotiz -% source: http://kambing.ui.ac.id/ctan/macros/latex/contrib/microtype/microtype.pdf +% purpose-de: optischen Randausgleich verwenden. Beispiele siehe Paket-Doku% source: http://www.ctan.org/pkg/microtype \usepackage{microtype} %%%%%%%%%%%%%%%%%%%%%% @@ -819,6 +875,8 @@ colorinlistoftodos \KOMAoptions{BCOR=0mm,DIV=calc} % for helvetica \fi +\renewcommand*\chapterheadstartvskip{} + \usepackage{wallpaper} \newcommand{\udesoftecmaketitle} { @@ -969,71 +1027,12 @@ colorinlistoftodos \marginnote[#1]{#2} } - -%%%% hyperref %%%%%%%% -%% special: hyperref needs to be loaded last! (exception hycap) -%% purpose: make internal and external links working and colored -\usepackage[colorlinks=true, - linkcolor=LinkInternal, - anchorcolor=LinkAnchor, - citecolor=LinkBibliography, - filecolor=LinkExternal, - urlcolor=LinkExternal, - hyperindex,linktoc=section,pdfstartview=FitV,plainpages=false,pdfpagelabels - ]{hyperref}% -\AtBeginDocument{\def\subsectionautorefname{\sectionautorefname}} -\AtBeginDocument{\def\subsubsectionautorefname{\sectionautorefname}} -% change url font type to "inherit" -\renewcommand\UrlFont{\color{LinkExternal}} -%%%%%%%%%%%%%%%%%%%%%% - -%%%% hycap %%%%%%%%%%% -%% special: directly AFTER hyperref: -%% 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} -%%%%%%%%%%%%%%%%%%%%%% - -% !Mode:: "TeX:UTF-8" - -%%%% 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} -\AtEndDocument{\printglossary} -\usepackage[acronym,nonumberlist,section=chapter,toc]{glossaries} -\deftranslation[to=ngerman]{Acronyms}{Abkürzungsverzeichnis} -\deftranslation[to=ngerman]{Glossary}{Glossar} -\makeglossaries - - -\newcommand{\printacronyms}{% -\printglossary[type=\acronymtype,style=myAcronymStyle]% +\newcommand{\chapterWithoutPageBreak}[1]{ +\let\backupchapterskip\chapterheadstartvskip% +\renewcommand*\chapterheadstartvskip{\vspace*{-.4\topskip}}% +\global\@topnum\z@\@afterindentfalse\secdef\@chapter\@schapter*{#1} +\let\chapterheadstartvskip\backupchapterskip% } -\newcommand{\acr}[1]{\gls{#1}} - -\newglossarystyle{myAcronymStyle}{% -% put the glossary in the itemize environment: -\renewenvironment{theglossary}{\begin{description}[leftmargin=2cm]}{\end{description}}% -% have nothing after \begin{theglossary}: -\renewcommand*{\glossaryheader}{}% -% have nothing between glossary groups: -\renewcommand*{\glsgroupheading}[1]{}% -\renewcommand*{\glsgroupskip}{}% -% set how each entry should appear: -\renewcommand*{\glossaryentryfield}[5]{% -\item[\glstarget{##1}{##2}]{##3} -}% -% set how sub-entries appear: -\renewcommand*{\glossarysubentryfield}[6]{% -\glossaryentryfield{##2}{##3}{##4}{##5}{##6}}% -} - -\newcommand{\chapterWithoutPageBreack}{\global\@topnum\z@\@afterindentfalse\secdef\@chapter\@schapter} -\let\chapterDefaultCommand\chapter - - \newcommand{\ignoreHbadness}[1]{% \let\originalHbadness\hbadness% @@ -1098,8 +1097,10 @@ colorinlistoftodos innertopmargin=2ex,% backgroundcolor=DocumentBright2,% linecolor=DocumentMedium2,% -linewidth=.5pt -} +linewidth=.5pt, +nobreak=true, +}\setlength\paperheight {297mm}% + \setlength\paperwidth {210mm} \begin{mdframed}\begin{quote}% \openquote% }{ @@ -1174,17 +1175,90 @@ commentstyle=\color{DocumentMedium0} } +\newcommand{\ctanlink}[1]{\href{http://www.ctan.org/pkg/#1}{#1}} + + + +%%%% hyperref %%%%%%%% +%% special: hyperref needs to be loaded last! (exception hycap) +%% purpose: make internal and external links working and colored +\usepackage[colorlinks=true, + linkcolor=LinkInternal, + anchorcolor=LinkAnchor, + citecolor=LinkBibliography, + filecolor=LinkExternal, + urlcolor=LinkExternal, + hyperindex,linktoc=section,pdfstartview=FitV,plainpages=false, + pdfpagelabels,pdftex, +bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{hyperref}% +\AtBeginDocument{\def\subsectionautorefname{\sectionautorefname}} +\AtBeginDocument{\def\subsubsectionautorefname{\sectionautorefname}} +% change url font type to "inherit" +\renewcommand\UrlFont{\color{LinkExternal}} +%%%%%%%%%%%%%%%%%%%%%% + +%%%% hycap %%%%%%%%%%% +%% special: directly AFTER hyperref: +%% 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} +\AtEndDocument{\printglossary} +\usepackage[acronym,nonumberlist,section=chapter,toc]{glossaries} +\deftranslation[to=ngerman]{Acronyms}{Abkürzungsverzeichnis} +\deftranslation[to=ngerman]{Glossary}{Glossar} +\makeglossaries + + +\newcommand{\printacronyms}{% +\printglossary[type=\acronymtype,style=myAcronymStyle]% +} +\newcommand{\acr}[1]{\gls{#1}} + +\newglossarystyle{myAcronymStyle}{% +% put the glossary in the itemize environment: +\renewenvironment{theglossary}{\begin{description}[leftmargin=1.5cm,style=sameline]}{\end{description}}% +% have nothing after \begin{theglossary}: +\renewcommand*{\glossaryheader}{}% +% have nothing between glossary groups: +\renewcommand*{\glsgroupheading}[1]{}% +\renewcommand*{\glsgroupskip}{}% +% set how each entry should appear: +\renewcommand*{\glossaryentryfield}[5]{% +\item[\glstarget{##1}{##2}]{##3} +}% +% set how sub-entries appear: +\renewcommand*{\glossarysubentryfield}[6]{% +\glossaryentryfield{##2}{##3}{##4}{##5}{##6}}% +} + +\newcommand{\udesoftecoverride}{} \AtBeginDocument{ + \udesoftecoverride \pagenumbering{alph} % title page is "a" - internal trick to prevent two pages with same name + \hypertarget{titlepage}{} + \pdfbookmark[-1]{\@title}{titlepage} + \maketitle % Komplett automatisch generiert anhand von Metadaten \cleardoublepage \pagenumbering{Roman} % I,II,III,IV... - all pre-content pages are roman upper - \ifdocumentOmitCC\else\confidentialityclause\fi% - \ifdocumentOmitTOC\else\tableofcontents\fi - \ifdocumentOmitLOF\else\listoffigures\fi - \ifdocumentOmitLOT\else\listoftables\fi - \ifdocumentOmitLOA\else\printacronyms\fi + \ifdocumentOmitCC\else\cleardoublepage\confidentialityclause\fi% + \ifdocumentOmitA\else\cleardoublepage\printabstract\fi% + \ifdocumentOmitTOC\else\cleardoublepage + \hypertarget{tocpage}{} + \pdfbookmark{\contentsname}{topage} + \tableofcontents + \fi + \ifdocumentOmitLOF\else\cleardoublepage\listoffigures\fi + \ifdocumentOmitLOT\else\cleardoublepage\listoftables\fi + \ifdocumentOmitLOA\else\cleardoublepage\printacronyms\fi \newlength{\imagewidth} \setlength\imagewidth\linewidth @@ -1199,4 +1273,4 @@ commentstyle=\color{DocumentMedium0} \fi \ifdocumentOmitSD\else\statutorydeclaration\fi -} +}
\ No newline at end of file |