...
 
Commits (4)
......@@ -66,7 +66,7 @@ The following packages are included, listed here in alphabetical order.\footnote
\item[listings.sty] provides source code formatting
\item[longtable.sty] enables the typesetting of long tables
\item[mathtools.sty] provides lots of improvements for math typesetting
% \item[parskip.sty] helps properly implementing paragraph layouts
\item[siunitx.sty] facilitates the typesetting of numbers and SI units
\item[stmaryrd.sty] defines a symbol font which includes, e.g., a double square bracket
\item[xcolor.sty] extends \LaTeX's color facilities
\item[xifthen.sty] extends \file{ifthen.sty} by adding new boolean conditions
......
......@@ -45,6 +45,11 @@
\setboolean{useamsthm}{false}
\setboolean{useBibLaTeX}{false}
}{}
\@ifclassloaded{cedram}{%
\setboolean{useamsthm}{false}
\setboolean{useBibLaTeX}{false}
\setboolean{usecleveref}{false}
}{}
\@ifclassloaded{cocv}{%
\setboolean{useBibLaTeX}{false}
}{}
......@@ -107,7 +112,7 @@
% Packages related to referencing
\ifthenelse{\boolean{useBibLaTeX}}{\RequirePackage[style=authoryear-comp,backend=biber]{biblatex}}{}
\ifthenelse{\boolean{usehyperref}}{\RequirePackage{hyperref}}{}
\ifthenelse{\boolean{usecleveref}}{\RequirePackage[nameinlink,capitalize]{cleveref}}{}
\ifthenelse{\boolean{usecleveref}}{\RequirePackage[nameinlink,capitalize]{cleveref}}{\IfFileExists{numapde-wrapCleveref.sty}{\RequirePackage{numapde-wrapCleveref}}{}}
% Packages related to changes tracking
\RequirePackage[ulem=normalem,truncate=fit]{changes}
......
......@@ -298,6 +298,31 @@
\@ifundefined{assumption*} {\newtheorem*{assumption*}{Assumption}}{}
}{}
% cedram.cls
% uses its own implementation (a mixture of amsthm and smfthm)
% and makes use of various \theoremstyle:s
\@ifclassloaded{cedram}{%
\theoremstyle{plain}
\@ifundefined{theorem} {\newtheorem{theorem}{Theorem}[section]}{}
\@ifundefined{theorem*} {\newtheorem*{theorem*}{Theorem}}{}
\@ifundefined{lemma} {\newtheorem{lemma}[theorem]{Lemma}}{}
\@ifundefined{lemma*} {\newtheorem*{lemma*}{Lemma}}{}
\@ifundefined{proposition} {\newtheorem{proposition}[theorem]{Proposition}}{}
\@ifundefined{proposition*}{\newtheorem*{proposition*}{Proposition}}{}
\@ifundefined{corollary} {\newtheorem{corollary}[theorem]{Corollary}}{}
\@ifundefined{corollary*} {\newtheorem*{corollary*}{Corollary}}{}
\theoremstyle{definition}
\@ifundefined{definition} {\newtheorem{definition}[theorem]{Definition}}{}
\@ifundefined{definition*} {\newtheorem*{definition*}{Definition}}{}
\theoremstyle{remark}
\@ifundefined{remark} {\newtheorem{remark}[theorem]{Remark}}{}
\@ifundefined{remark*} {\newtheorem*{remark*}{Remark}}{}
\@ifundefined{example} {\newtheorem{example}[theorem]{Example}}{}
\@ifundefined{example*} {\newtheorem*{example*}{Example}}{}
\@ifundefined{assumption} {\newtheorem{assumption}[theorem]{Assumption}}{}
\@ifundefined{assumption*} {\newtheorem*{assumption*}{Assumption}}{}
}{}
% ifacconf.cls
% uses theorem.sty and makes use of various \theoremstyle:s
% For lack of support of unnumbered, \newtheorem*-like environments,
......
......@@ -318,7 +318,7 @@
\newcommand{\mE}{m.\,E.\xspace}
\newcommand{\oBdA}{o.\,B.\,d.\,A.\xspace}
\newcommand{\OBdA}{O.\,B.\,d.\,A.\xspace}
\newcommand{\og}{o.\,g.\xspace}
\let\og\undefined \newcommand{\og}{o.\,g.\xspace} % cedram.cls
\newcommand{\oae}{o.\,ä.\xspace}
\newcommand{\pa}{p.\,a.\xspace}
\newcommand{\spd}{s.\,p.\,d.\xspace}
......
% Parse the .soc file (if it exists) for active changes
\@ifpackageloaded{changes}{\@ifpackagelater{changes}{2018/10/10}{\def\numapdeChangesSearchString{0;0;0;0;0}}{\def\numapdeChangesSearchString{0;0;0}}}{}
\IfFileExists{\jobname.soc}{
\ifnum\pdfshellescape=1
\newread\numapdeinput
\immediate\write18{grep -vq '\numapdeChangesSearchString$' \jobname.soc; echo $? > '\jobname.nac'}
\openin\numapdeinput=\jobname.nac
\bgroup
\endlinechar=-1
\read\numapdeinput to \localline
\global\let\NoActiveChanges\localline
\egroup
\closein\numapdeinput
% In case of active changes, configure hyperref to all gray/black colors
\@ifpackageloaded{hyperref}{\ifthenelse{\equal{\NoActiveChanges}{1}}{}{\@ifpackageloaded{numapde-colors}{\hypersetup{allcolors=TolDarkGray}}{\hypersetup{allcolors=black}}}}{}
\else
\fi
}{}
% This package provides some rudimentary replacements for cleveref.sty by the
% variants of the \autoref command
% Limitations:
% * several commands from the cleveref.sty package are not available in autoref.sty
% * \autoref does not accept multiple arguments; see
% https://tex.stackexchange.com/questions/15728/multiple-references-with-autoref
% for a partial workaround
\RequirePackage{letltxmacro}
\LetLtxMacro{\cref}{\autoref}
\LetLtxMacro{\Cref}{\autoref}
\newcommand{\crefrange}{\PackageError{numapde-wrapCleveref}{\crefrange is currently not supported}{}}
\newcommand{\Crefrange}{\PackageError{numapde-wrapCleveref}{\Crefrange is currently not supported}{}}
\LetLtxMacro{\cpageref}{\autopageref}
\LetLtxMacro{\Cpageref}{\autopageref}
\newcommand{\cpagerefrange}{\PackageError{numapde-wrapCleveref}{\cpagerefrange is currently not supported}{}}
\newcommand{\Cpagerefrange}{\PackageError{numapde-wrapCleveref}{\Cpagerefrange is currently not supported}{}}
\newcommand{\namecref}{\PackageError{numapde-wrapCleveref}{\namecref is currently not supported}{}}
\newcommand{\nameCref}{\PackageError{numapde-wrapCleveref}{\nameCref is currently not supported}{}}
\newcommand{\lcnamecref}{\PackageError{numapde-wrapCleveref}{\lcnamecref is currently not supported}{}}
\newcommand{\namecrefs}{\PackageError{numapde-wrapCleveref}{\namecrefs is currently not supported}{}}
\newcommand{\nameCrefs}{\PackageError{numapde-wrapCleveref}{\nameCrefs is currently not supported}{}}
\newcommand{\lcnamecrefs}{\PackageError{numapde-wrapCleveref}{\lcnamecrefs is currently not supported}{}}
\LetLtxMacro{\labelcref}{\ref}
\LetLtxMacro{\labelcpageref}{\pageref}