summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-08-19 22:22:39 +0000
committerKarl Berry <karl@freefriends.org>2015-08-19 22:22:39 +0000
commit7841e5cb6baaa23b089e8ad182bc8b5ef612fb29 (patch)
tree91a484b517bfced6885b6052de60ce5f09eb1508 /Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls
parentee32a98c12dea0596ae127c9d655041e50b8599d (diff)
udesoftec (19aug15)
git-svn-id: svn://tug.org/texlive/trunk@38164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls')
-rw-r--r--Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls372
1 files changed, 198 insertions, 174 deletions
diff --git a/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls b/Master/texmf-dist/tex/latex/udesoftec/udesoftec.cls
index d85be837bd2..278ae4f1f43 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-2014 J. Peter M. Schuler
-%% 2015/05/14 v1.4.6 udesoftec
+%% Copyright 2013-2015 J. Peter M. Schuler
+%% 2015/08/19 v1.4.7 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,16 @@
% 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-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
@@ -32,7 +36,8 @@
% and
% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf
\NeedsTeXFormat{LaTeX2e}%
-\ProvidesClass{udesoftec}[2015/05/14 v1.4.6 udesoftec.cls Thesis class and bibstyle for UDE SOFTEC]%
+\ProvidesClass{udesoftec}[2015/08/19 v1.4.7 udesoftec.cls Thesis class and
+bibstyle for UDE SOFTEC]%
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
@@ -41,12 +46,12 @@
\LoadClass{scrbook}
\KOMAoptions{
twoside=true,
- headings=openright, % same as documentclassoption openany/openright
- numbers=noenddot, % section numbering without dot
- bibliography=totoc,
+ headings=openright, % same as documentclassoption openany/openright
+ numbers=noenddot, % section numbering without dot
+ bibliography=totoc,
index=totoc,
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)
+ 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 %%%%%%%%%%%%%
@@ -54,11 +59,7 @@
% 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/pkg/fixltx2e
-\usepackage{fixltx2e}
+
%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xstring}
\edef\udesoftecversionstring{\csname ver@udesoftec.cls\endcsname}
@@ -124,7 +125,7 @@
\documentUsedTodosfalse
\templateUseColorfulLinkstrue
\templateUseSansSerifFonttrue
-\templateUseBookLayoutfalse
+\templateUseBookLayoutfalse
\templateVawifalse
\templateVawiEssenfalse
\templateVawiBambergfalse
@@ -176,14 +177,14 @@
\DeclareOption{confidential}{\documentOmitCCfalse}
\DeclareOption{printlayout}{
- \templateUseColorfulLinksfalse
- \templateUseSansSerifFontfalse
- \templateUseBookLayouttrue
+ \templateUseColorfulLinksfalse
+ \templateUseSansSerifFontfalse
+ \templateUseBookLayouttrue
}
\DeclareOption{screenlayout}{
- \templateUseColorfulLinkstrue
- \templateUseSansSerifFonttrue
- \templateUseBookLayoutfalse
+ \templateUseColorfulLinkstrue
+ \templateUseSansSerifFonttrue
+ \templateUseBookLayoutfalse
}
\DeclareOption{vawiessen}{
\templateVawitrue
@@ -202,9 +203,9 @@
\ProcessOptions\relax
\ifprimaryDocumentLanguageGerman
- \def\udesoftec@documentLanguage{english,ngerman} % all used languages, primary LAST
+ \def\udesoftec@documentLanguage{english,ngerman} % all used languages, primary LAST
\else
- \def\udesoftec@documentLanguage{ngerman,english}
+ \def\udesoftec@documentLanguage{ngerman,english}
\fi
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
@@ -224,7 +225,7 @@
\newcommand{\abstract}[1]{\def\udesoftec@abstract{#1}}
\newcommand{\abstractEn}[1]{\def\udesoftec@abstracten{#1}}
-\def \udesoftec@templatePageMarkPrefix {} % might be something like "S. "
+\def \udesoftec@templatePageMarkPrefix {} % might be something like "S. "
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
@@ -249,15 +250,15 @@
\authorbox{
\begin{tabularx}{.7\linewidth}{ll}
von:&Max Mustermann\\
- &Musterstrasse 123\\
- &12345 Musterstadt\\
- \\
+ &Musterstrasse 123\\
+ &12345 Musterstadt\\
+ \\
Gutacher:&Prof. Dr. Stefan Eicker\\
- &Prof. Dr. John Doe\\
- \\
- Betreuer:&Dipl.-Wirt.-Inf Some Body\\
- \\
-\end{tabularx}
+ &Prof. Dr. John Doe\\
+ \\
+ Betreuer:&Dipl.-Wirt.-Inf Some Body\\
+ \\
+\end{tabularx}
}
%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%
@@ -309,7 +310,7 @@
\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}{%
@@ -378,7 +379,7 @@
\\
Supervisor:&Dipl.-Wirt.-Inf Some Body\\
\\
- \end{tabularx}
+ \end{tabularx}
}
\fi
@@ -396,7 +397,7 @@
\fi
% VAWi-Bamberg special (no matter what language)
\iftemplateVawiBamberg
- \def\udesoftec@templateTitlePageBackground{udesoftec-cover-uba}
+ \def\udesoftec@templateTitlePageBackground{udesoftec-cover-uba}
\fi
%%%%%%%%%%%%%%%%%%%%%%
@@ -405,11 +406,11 @@
%%%%%%%%%%%%%%%%%%%%%%
% VAWi special
\iftemplateVawiEssen
- \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik\par der Universit\"at Duisburg-Essen}
+ \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik\par der Universit\"at Duisburg-Essen}
\labelPreTopic{}
\fi
\iftemplateVawiBamberg
- \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik}
+ \institution{Im Virtuellen Weiterbildungsstudiengang Wirtschaftsinformatik}
\labelPreTopic{}
\fi
@@ -474,38 +475,38 @@
\colorlet{allchaptercolor}{black}
-
+
\colorlet{listingBackground}{white!50!UDEbeige}
\colorlet{documentTitle}{black}
-\colorlet{parExample}{UDEbrightblue}
+\colorlet{parExample}{UDEbrightblue}
-\colorlet{chapter}{allchaptercolor} % for all chapters, toc etc
-\colorlet{section}{allchaptercolor} % for all chapters, toc etc
-\colorlet{subsection}{allchaptercolor} % for all chapters, toc etc
+\colorlet{chapter}{allchaptercolor} % for all chapters, toc etc
+\colorlet{section}{allchaptercolor} % for all chapters, toc etc
+\colorlet{subsection}{allchaptercolor} % for all chapters, toc etc
-\colorlet{ChapterHeadingBigChapterNumber}{allchaptercolor} % for the special chapter title page design
-\colorlet{ChapterHeadingSmallChapterNumer}{allchaptercolor} % for the special chapter title page design
-\colorlet{ChapterHeadingSeperatorLine}{allchaptercolor} % for the special chapter title page design
-\colorlet{Todo}{orange!30!white} %default color for todo notes
-\colorlet{Headsepline}{UDEblue} % seperator between header and text body
+\colorlet{ChapterHeadingBigChapterNumber}{allchaptercolor} % for the special chapter title page design
+\colorlet{ChapterHeadingSmallChapterNumer}{allchaptercolor} % for the special chapter title page design
+\colorlet{ChapterHeadingSeperatorLine}{allchaptercolor} % for the special chapter title page design
+\colorlet{Todo}{orange!30!white} %default color for todo notes
+\colorlet{Headsepline}{UDEblue} % seperator between header and text body
\colorlet{PagemarkBackground}{UDEblue}
-\colorlet{PagemarkText}{white} % page number color
-\colorlet{HeadmarkText}{black} % textcolor of header text (chapters, sections)
-\colorlet{Good}{DarkGreen} % page number color
-\colorlet{Bad}{DarkRed} % textcolor of header text (chapters, sections)
+\colorlet{PagemarkText}{white} % page number color
+\colorlet{HeadmarkText}{black} % textcolor of header text (chapters, sections)
+\colorlet{Good}{DarkGreen} % page number color
+\colorlet{Bad}{DarkRed} % textcolor of header text (chapters, sections)
\iftemplateUseColorfulLinks
- \colorlet{LinkExternal} {black!75!green} % URLs in text and bibliography
- \colorlet{LinkDoi} {black!75!green} % links to doi in bibliography
- \colorlet{LinkInternal} {black!30!UDEblue} % internal links are from TOC or references in text
- \colorlet{LinkBibliography} {black!30!UDEblue} % links in citation
- \colorlet{LinkAnchor} {black} % not used
+ \colorlet{LinkExternal} {black!75!green} % URLs in text and bibliography
+ \colorlet{LinkDoi} {black!75!green} % links to doi in bibliography
+ \colorlet{LinkInternal} {black!30!UDEblue} % internal links are from TOC or references in text
+ \colorlet{LinkBibliography} {black!30!UDEblue} % links in citation
+ \colorlet{LinkAnchor} {black} % not used
\else
- \colorlet{LinkExternal}{black} % URLs in text and bibliography
- \colorlet{LinkDoi}{black} % links to doi in bibliography
- \colorlet{LinkInternal}{black} % internal links are from TOC or references in text
- \colorlet{LinkBibliography}{black!30!UDEblue} % links in citation
- \colorlet{LinkAnchor}{black} % not used
+ \colorlet{LinkExternal}{black} % URLs in text and bibliography
+ \colorlet{LinkDoi}{black} % links to doi in bibliography
+ \colorlet{LinkInternal}{black} % internal links are from TOC or references in text
+ \colorlet{LinkBibliography}{black!30!UDEblue} % links in citation
+ \colorlet{LinkAnchor}{black} % not used
\fi
@@ -536,9 +537,9 @@
\usepackage[T1]{fontenc}
\iftemplateUseSansSerifFont
- \renewcommand*{\familydefault}{\sfdefault}
+ \renewcommand*{\familydefault}{\sfdefault}
\else
- \renewcommand*\familydefault{\rmdefault}
+ \renewcommand*\familydefault{\rmdefault}
\fi
\setkomafont{descriptionlabel}{\normalfont\bfseries}
\setkomafont{dictumtext}{\normalfont\normalcolor\small}
@@ -652,38 +653,38 @@
% create headermarks so the chapter is shown on left page and section on right
% new pagestyle "chapter": pagenumber top outer, no line no headmark
\iftemplateUseBookLayout
- \ihead[\headmark]{\headmark}
- % clear outer head (where the normale pagemark is in)
- \ohead[]{}
- % add pageMark boxes to leftpage lefthead and rightpage righthead (pagemark box needs to know "r" or "l"
- \rohead[]{\pagemarkBox{\pagemark}{r}}
- \lehead[]{\pagemarkBox{\pagemark}{l}}
-
- \classdebug{using headline for booklayout}
- \automark[section]{chapter}
- \defpagestyle{chapter}{
- (0pt,0pt)
- {\pagemarkBox{\pagemark}{l}\hfill}
- {\hfill\pagemarkBox{\pagemark}{r}}
- {\pagemarkBox{\pagemark}{r}\hfill}
- (0pt,0pt)
- }{{}{}{}}
+ \ihead[\headmark]{\headmark}
+ % clear outer head (where the normale pagemark is in)
+ \ohead[]{}
+ % add pageMark boxes to leftpage lefthead and rightpage righthead (pagemark box needs to know "r" or "l"
+ \rohead[]{\pagemarkBox{\pagemark}{r}}
+ \lehead[]{\pagemarkBox{\pagemark}{l}}
+
+ \classdebug{using headline for booklayout}
+ \automark[section]{chapter}
+ \defpagestyle{chapter}{
+ (0pt,0pt)
+ {\pagemarkBox{\pagemark}{l}\hfill}
+ {\hfill\pagemarkBox{\pagemark}{r}}
+ {\pagemarkBox{\pagemark}{r}\hfill}
+ (0pt,0pt)
+ }{{}{}{}}
\else
- \ihead[]{}
- \ohead[]{}
- \lehead[\headmark]{\headmark}
- \rehead[]{\pagemarkBox{\pagemark}{r}}
- \lohead[\headmark]{\headmark}
- \rohead[]{\pagemarkBox{\pagemark}{r}}
- \classdebug{using headline for screenlayout}
- \automark[chapter]{chapter}
- \defpagestyle{chapter}{
- (0pt,0pt)
- {\hfill\pagemarkBox{\pagemark}{r}}
- {\hfill\pagemarkBox{\pagemark}{r}}
- {\hfill\pagemarkBox{\pagemark}{r}}
- (0pt,0pt)
- }{{}{}{}}
+ \ihead[]{}
+ \ohead[]{}
+ \lehead[\headmark]{\headmark}
+ \rehead[]{\pagemarkBox{\pagemark}{r}}
+ \lohead[\headmark]{\headmark}
+ \rohead[]{\pagemarkBox{\pagemark}{r}}
+ \classdebug{using headline for screenlayout}
+ \automark[chapter]{chapter}
+ \defpagestyle{chapter}{
+ (0pt,0pt)
+ {\hfill\pagemarkBox{\pagemark}{r}}
+ {\hfill\pagemarkBox{\pagemark}{r}}
+ {\hfill\pagemarkBox{\pagemark}{r}}
+ (0pt,0pt)
+ }{{}{}{}}
\fi
% custom page behavior for title, part and chapter
\renewcommand*{\titlepagestyle}{empty}
@@ -692,16 +693,16 @@
%%%%%%%%%%%%%%%%%%%%%%
%%%% custom pagemark %%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\pagemarkBox}[2] {
+\newcommand{\pagemarkBox}[2] {
% the picture has height 0 to change clipping behavior, else the clipping box might be higher than the text line
- \begin{picture}(50,0)
- \put(-.55,-5.05) {
- \put(-2.8,.3){%these relate box to text
- \color{PagemarkBackground}\rule{56.7pt}{16pt}}%
- \put(5,1){%these relate box to text
- \makebox(40,16)[#2]{\textcolor{PagemarkText}\udesoftec@templatePageMarkPrefix\fontseries{b}\fontshape{n}\selectfont #1}}%
- }
- \end{picture}
+ \begin{picture}(50,0)
+ \put(-.55,-5.05) {
+ \put(-2.8,.3){%these relate box to text
+ \color{PagemarkBackground}\rule{56.7pt}{16pt}}%
+ \put(5,1){%these relate box to text
+ \makebox(40,16)[#2]{\textcolor{PagemarkText}\udesoftec@templatePageMarkPrefix\fontseries{b}\fontshape{n}\selectfont #1}}%
+ }
+ \end{picture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -710,17 +711,17 @@
% purpose: set page margins, textbody size etc
% usage: typearea[BCOR]{DIV}
% DIV is auto-calculation of all margins in depencedy of font size
-% 10pt = DIV 8;11pt = DIV 10;12pt = DIV 12
-% BCOR is additional inner margin (binding correction)
+% 10pt = DIV 8;11pt = DIV 10;12pt = DIV 12
+% BCOR is additional inner margin (binding correction)
% special: BCOR adds inner margin and reduces text space. As the default margin sum seems fine we use geometry instead
% to adjust for regular printing (e.g. use in a folder), see below "geometry"
\usepackage[includehead=false,includefoot=false]{geometry}
\iftemplateUseBookLayout
- \KOMAoptions{twoside=true}
- \KOMAoptions{BCOR=12mm,DIV=10} % for helvetica
+ \KOMAoptions{twoside=true}
+ \KOMAoptions{BCOR=12mm,DIV=10} % for helvetica
\else
- \KOMAoptions{twoside=false}
- \KOMAoptions{BCOR=0mm,DIV=10} % for helvetica
+ \KOMAoptions{twoside=false}
+ \KOMAoptions{BCOR=0mm,DIV=10} % for helvetica
\fi
\renewcommand*\chapterheadstartvskip{}
@@ -732,28 +733,28 @@
\begin{titlepage}
\begin{center}
\ThisCenterWallPaper{1}{\udesoftec@templateTitlePageBackground}
- \vspace*{30pt}
- \begin{minipage}[30em]{.7\linewidth}
+ \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}\huge\textbf{\@subtitle}\par}
+ \vspace*{20pt}
{\color{documentTitle}\large\textbf{\udesoftec@entitle}\par}
- \vspace*{50pt}
+ \vspace*{50pt}
\large\udesoftec@institution
\end{center}
\end{minipage}
- \vfill
- \begin{minipage}{.7\linewidth}
+ \vfill
+ \begin{minipage}{.7\linewidth}
\begin{center}
\ifdocumentOmitCC
\else
\udesoftec@labelRespectConfidentiality\par
- \fi
+ \fi
\vspace*{20pt}\Large\@date
\end{center}
\vspace*{30pt}
@@ -767,7 +768,7 @@
\end{minipage}%
\end{center}%
\end{titlepage}%
- \restoregeometry
+ \restoregeometry
}
\newcommand{\udesoftecvawibambergmaketitle}{
@@ -778,10 +779,10 @@
\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}\Huge\textbf{\@title}\par}
+ \vspace*{20pt}
+ {\color{documentTitle}\huge\textbf{\@subtitle}\par}
+ \vspace*{20pt}
{\color{documentTitle}\large\textbf{\udesoftec@entitle}\par}
\vspace*{50pt}
\hrule
@@ -823,13 +824,13 @@
\fi
\let\oldmaketitle\maketitle
\renewcommand{\maketitle}{
- \let\oldhbadness\hbadness
- \let\oldvbadness\vbadness
- \hbadness=10000
- \vbadness=10000
- \oldmaketitle
- \let\hbadness\oldhbadness
- \let\vbadness\oldvbadness
+ \let\oldhbadness\hbadness
+ \let\oldvbadness\vbadness
+ \hbadness=10000
+ \vbadness=10000
+ \oldmaketitle
+ \let\hbadness\oldhbadness
+ \let\vbadness\oldvbadness
}
@@ -837,8 +838,8 @@
% special: don't change marginpar, else it will create overfuls with package todonotes
\usepackage{marginnote}
\ifx\marginfont\undefined
- \newcommand{\marginfont}[1]{}
- \newcommand{\marginnote}[2][]{\marginpar[#1]{#2}}
+ \newcommand{\marginfont}[1]{}
+ \newcommand{\marginnote}[2][]{\marginpar[#1]{#2}}
\fi
@@ -868,9 +869,9 @@
\newcommand{\ignoreHbadness}[1]{%
\let\originalHbadness\hbadness%
- \hbadness 100000%
- #1
- \hbadness \originalHbadness%
+ \hbadness 100000%
+ #1
+ \hbadness \originalHbadness%
}
\newcommand{\figref}[1]{\autoref{fig:#1}}
@@ -981,12 +982,12 @@
}\fi
}
\newcommand{\parExampleWithHeading}[2]{%
- \let\defaultCmdFootnote\footnote%
- \let\footnote\footnoteCmdForInsideMinipage%
+ \let\defaultCmdFootnote\footnote%
+ \let\footnote\footnoteCmdForInsideMinipage%
\begin{exampleBox}[#1]%
- \small{#2}%
- \end{exampleBox}%
- \let\footnote\defaultCmdFootnote%
+ \small{#2}%
+ \end{exampleBox}%
+ \let\footnote\defaultCmdFootnote%
}
@@ -1042,6 +1043,29 @@ commentstyle=\color{DocumentMedium0},
}
\lstset{#1} %allow options for new listing
}{}
+% BibTeX definition from
+% http://tex.stackexchange.com/questions/85998/include-bibtex-contents-in-a-listings-block
+\lstdefinelanguage{BibTeX}
+ {keywords={%
+ @article,@book,@collectedbook,@conference,@electronic,@ieeetranbstctl,%
+ @inbook,@incollectedbook,@incollection,@injournal,@inproceedings,%
+ @manual,@mastersthesis,@misc,@patent,@periodical,@phdthesis,@preamble,%
+ @proceedings,@standard,@string,@techreport,@unpublished,@techstandard%
+ },
+ comment=[l][\itshape]{@comment},
+ sensitive=false,
+ }
+\lstnewenvironment{lstlistingbibtex}[1][]{%
+ \lstset{
+ language={BibTeX},
+ breaklines=true,
+ emph={style,leftmargin},
+ texcsstyle=*\color{DocumentDark1},
+ keywordstyle=\color{DocumentDark3}\textbf,
+ emphstyle=\color{DocumentDark4},
+ }
+ \lstset{#1} %allow options for new listing
+}{}
\def\lstinlinelatex{\lstinline[%
language={[LaTeX]TeX},
breaklines=true,
@@ -1069,38 +1093,38 @@ colorinlistoftodos
\ifdocumentOmitTodos
- \renewcommand{\listoftodos}{}
- \renewcommand{\todo}[2][]{}
- \providecommand{\todoDesign}[1]{}
- \providecommand{\todoText}[1]{}
- \providecommand{\todoFigure}[1]{}
+ \renewcommand{\listoftodos}{}
+ \renewcommand{\todo}[2][]{}
+ \providecommand{\todoDesign}[1]{}
+ \providecommand{\todoText}[1]{}
+ \providecommand{\todoFigure}[1]{}
\providecommand{\inlinetodo}[1]{}
\providecommand{\todoinline}[1]{}
\else
- \let\defaultTodo\todo
- \renewcommand{\todo}[1]{%
+ \let\defaultTodo\todo
+ \renewcommand{\todo}[1]{%
\documentUsedTodostrue%
\defaultTodo[]{#1}%
- }
- \providecommand{\todoDesign}[1]{%
- \documentUsedTodostrue%
- \defaultTodo[fancyline,backgroundcolor=DocumentBright2]{#1}%
- }
- \providecommand{\todoText}[1]{%
- \documentUsedTodostrue%
- \defaultTodo[fancyline,backgroundcolor=DocumentBright3]{#1}%
- }
- \providecommand{\todoFigure}[1]{%
- \documentUsedTodostrue%
- \defaultTodo[fancyline,backgroundcolor=DocumentBright4]{#1}%
- }
- \providecommand{\inlinetodo}[1]{\documentUsedTodostrue\defaultTodo[inline]{#1}}
- \providecommand{\todoinline}[1]{\inlinetodo{#1}}
-
- \let\defaultListoftodos\listoftodos
- \renewcommand{\listoftodos}{
- \defaultListoftodos
- }
+ }
+ \providecommand{\todoDesign}[1]{%
+ \documentUsedTodostrue%
+ \defaultTodo[fancyline,backgroundcolor=DocumentBright2]{#1}%
+ }
+ \providecommand{\todoText}[1]{%
+ \documentUsedTodostrue%
+ \defaultTodo[fancyline,backgroundcolor=DocumentBright3]{#1}%
+ }
+ \providecommand{\todoFigure}[1]{%
+ \documentUsedTodostrue%
+ \defaultTodo[fancyline,backgroundcolor=DocumentBright4]{#1}%
+ }
+ \providecommand{\inlinetodo}[1]{\documentUsedTodostrue\defaultTodo[inline]{#1}}
+ \providecommand{\todoinline}[1]{\inlinetodo{#1}}
+
+ \let\defaultListoftodos\listoftodos
+ \renewcommand{\listoftodos}{
+ \defaultListoftodos
+ }
\fi
@@ -1110,12 +1134,12 @@ colorinlistoftodos
%% special: hyperref needs to be loaded last! (exception hycap)
%% purpose: make internal and external links working and colored
\usepackage[pdftex,colorlinks=true,
- linkcolor=LinkInternal,
- anchorcolor=LinkAnchor,
- citecolor=LinkBibliography,
- filecolor=LinkExternal,
- urlcolor=LinkExternal,
- hyperindex,linktoc=section,pdfstartview=FitV,
+ linkcolor=LinkInternal,
+ anchorcolor=LinkAnchor,
+ citecolor=LinkBibliography,
+ filecolor=LinkExternal,
+ urlcolor=LinkExternal,
+ hyperindex,linktoc=section,pdfstartview=FitV,
pdfpagelabels,
bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{hyperref}%
\AfterEndPreamble{\def\subsectionautorefname{\sectionautorefname}}
@@ -1127,7 +1151,7 @@ bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,bookmarksnumbered=true]{h
%%%% 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
+%% (which is below figure, so figure wouldn't show but only caption); no other change necessary
\usepackage[all]{hypcap}