From aac57f0cd7aea0d101e3240a12321b2cba46fb28 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 30 Nov 2018 21:48:50 +0000
Subject: hagenberg-thesis (30nov18)

git-svn-id: svn://tug.org/texlive/trunk@49284 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/hagenberg-thesis/hgb.sty  | 50 +++++++++++++---------
 1 file changed, 29 insertions(+), 21 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty')

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
-- 
cgit v1.2.3

