summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-11-30 21:48:50 +0000
committerKarl Berry <karl@freefriends.org>2018-11-30 21:48:50 +0000
commitaac57f0cd7aea0d101e3240a12321b2cba46fb28 (patch)
treea68f3192bcc516dcf226c98fc7297ea504066432 /Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
parent10b8702e8b19735324a53494aa3f9312147bf1e7 (diff)
hagenberg-thesis (30nov18)
git-svn-id: svn://tug.org/texlive/trunk@49284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty50
1 files changed, 29 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
index 41af43020dd..0522897796f 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
@@ -5,7 +5,7 @@
%% File encoding: ASCII
\NeedsTeXFormat{LaTeX2e}
-\newcommand{\hgbDate}{2017/10/28} % version string
+\newcommand{\hgbDate}{2018/11/24} % version string
\ProvidesPackage{hgb}[\hgbDate]
% Create a default/fallback main language so it is set no matter what
@@ -141,10 +141,20 @@
% Captions with font size "small" and additional margin spacing
\RequirePackage[small,bf]{caption}
+\DeclareCaptionStyle{ruled}{labelfont=bf,labelsep=colon}
\setlength{\captionmargin}{5mm}
\setlength{\abovecaptionskip}{10pt}
\setlength{\belowcaptionskip}{10pt}
+%% Disable \footnote in captions:
+\newcommand{\@WarnFootnoteInCaption}{%
+\GenericError{}{Package hgb Error: footnotes in captions are disabled}%
+{How to fix: do not place footnotes in captions!}{}}%
+\DeclareCaptionTextFormat{nofootnotes}{%
+ \renewcommand{\footnote}[1]{\@WarnFootnoteInCaption\relax}#1}
+\captionsetup{textformat=nofootnotes}
+
+
% Make float placement easier
\renewcommand{\floatpagefraction}{.9} % previously: .5
\renewcommand{\textfraction}{.1} % previously: .2
@@ -173,23 +183,15 @@
% \end{nowidows}
-%% Definitions for Algorithms -------------------------------------------------
-
-% 'algorithm' creates a floating environment for algorithms (\begin{algorithm}...)
-\@ifundefined{chapter}%
- {\RequirePackage[ruled]{algorithm}}%
- {\RequirePackage[ruled,chapter]{algorithm}}
-
-\DeclareCaptionStyle{ruled}{labelfont=bf,labelsep=colon}
+% Setup for Table of Contents (ToC)
-% 'algorithmicx' returns the inner content of algorithms (\begin{algorithmic}[1]...)
-\RequirePackage{algorithmicx}
-\RequirePackage{algpseudocode}
-\algsetlanguage{pseudocode}
-\renewcommand{\algorithmicprocedure}{} % use no 'Procedure' keyword
+%\RequirePackage[tocgraduated,tocbreaksstrict]{tocstyle}% %% Note: tocstyle is unsupported!
+%\usetocstyle{classic}%
+\RequirePackage{tocbasic}% %% tocbasic is part of koma script
+\DeclareTOCStyleEntry[entryformat=\bfseries\textsf]{tocline}{chapter}%
-%% Program and Algorithm Environments ----------------------------------------
+%% Program environments ----------------------------------------
% Define the program float environment:
\@ifundefined{chapter}%
@@ -200,14 +202,10 @@
\restylefloat*{program}
\ifthenelse{\equal{\bbl@main@language}{german} \or \equal{\bbl@main@language}{ngerman}}%
-{ \floatname{program}{Programm}
- \floatname{algorithm}{Algorithmus}
-}{}
+ {\floatname{program}{Programm}}{}%
\ifthenelse{\equal{\bbl@main@language}{english}}%
-{ \floatname{program}{Program}
- \floatname{algorithm}{Algorithm}
-}{}
+ {\floatname{program}{Program}}{}%
%% Date-related commands ------------------------------------------------------
@@ -277,6 +275,16 @@
\RequirePackage{pdfpages}
+%% Prevent subfigure package from being loaded -------------------------------
+
+% The subfigure package is DEPRECATED (see https://ctan.org/pkg/subfigure)!
+% We strongly advise against its use since it creates poor output which is not
+% compatible with our quality standards. Loading this package is therefore blocked
+% by default. We recommend to use the 'tabular' environment instead.
+
+\newcommand{\subfigure}{%
+\PackageError{hgb}{Use of the 'subfigure' package is not supported in this setup, because it is obsolete}{}}
+
%% ----------------------------------------------------------------------------
\setlength{\fboxsep}{0mm} %globally zero fbox separator