fix various mistakes
This commit is contained in:
parent
4739c0ce22
commit
24652768e0
12 changed files with 33 additions and 22 deletions
|
@ -1,6 +1,8 @@
|
||||||
__HEADER__(Theorem-Environment Package)
|
__HEADER__(Theorem-Environment Package)
|
||||||
%Provides fancy theorem-like-environments used in the write-ups of my lecture notes
|
%Provides fancy theorem-like-environments used in the write-ups of my lecture notes
|
||||||
|
|
||||||
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__NEW_IF__(showstars,true)
|
__NEW_IF__(showstars,true)
|
||||||
__NEW_IF__(showdaggers,true)
|
__NEW_IF__(showdaggers,true)
|
||||||
__NEW_IF__(includestars,true)
|
__NEW_IF__(includestars,true)
|
||||||
|
|
|
@ -81,7 +81,7 @@ __END_OPTIONS_X__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
\iffancyhead
|
__IF__(fancyhead)
|
||||||
\RequirePackage{fancyhdr}
|
\RequirePackage{fancyhdr}
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,11 @@ __HEADER__(Main math package.)
|
||||||
% Probably, you will just want to load them separately for more
|
% Probably, you will just want to load them separately for more
|
||||||
% customization
|
% customization
|
||||||
|
|
||||||
__LANGUAGE_OPTIONS__
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__END_OPTIONS__
|
__LANGUAGE_OPTIONS_X__
|
||||||
|
|
||||||
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
%%%% Import the other custom math packages
|
%%%% Import the other custom math packages
|
||||||
\RequirePackage{mkessler-mathfont} % Load this first to ensure untouched fonts
|
\RequirePackage{mkessler-mathfont} % Load this first to ensure untouched fonts
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
__HEADER__(Easy aliasing for math style commands)
|
__HEADER__(Easy aliasing for math style commands)
|
||||||
|
|
||||||
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__NEW_IF__(basic,false)
|
__NEW_IF__(basic,false)
|
||||||
__NEW_IF__(extended,false)
|
__NEW_IF__(extended,false)
|
||||||
|
|
||||||
\DeclareOption{basic}{__SET_IF__(basic,true)}
|
\DeclareOptionX{basic}{__SET_IF__(basic,true)}
|
||||||
\DeclareOption{extended}{__SET_IF__(extended,true)__SET_IF__(basic,true)}
|
\DeclareOptionX{extended}{__SET_IF__(extended,true)__SET_IF__(basic,true)}
|
||||||
|
|
||||||
__END_OPTIONS__
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
%Usage: \makealiasesforwith\<mathcommand>{<prefix>}{<Set of letters>}
|
%Usage: \makealiasesforwith\<mathcommand>{<prefix>}{<Set of letters>}
|
||||||
% to declare commands of form \<prefix><Letter> as \<mathcommand>{<Letter>} for each
|
% to declare commands of form \<prefix><Letter> as \<mathcommand>{<Letter>} for each
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
__HEADER__(Hacky math packages for some (custom) fixes)
|
__HEADER__(Hacky math packages for some (custom@) fixes)
|
||||||
% This just brings together some (possibly ugly) hacks that I use when writing math. Likely, you do not want to use this except when building around this package (like I did), or already have similar shortcuts
|
% This just brings together some (possibly ugly) hacks that I use when writing math. Likely, you do not want to use this except when building around this package (like I did), or already have similar shortcuts
|
||||||
|
|
||||||
%Proper Degree command
|
%Proper Degree command
|
||||||
|
|
|
@ -18,7 +18,7 @@ __HEADER__(Collects several math fonts together)
|
||||||
\let\mathfrak__PACKAGE_MACRO__(amsfonts@mathfrak) % Set \mathfrak to mathfrak from amsfonts
|
\let\mathfrak__PACKAGE_MACRO__(amsfonts@mathfrak) % Set \mathfrak to mathfrak from amsfonts
|
||||||
\let\mathscr__PACKAGE_MACRO__(mathrsfs@mathscr) % Set \mathscr to mathscript from mathrsfs package
|
\let\mathscr__PACKAGE_MACRO__(mathrsfs@mathscr) % Set \mathscr to mathscript from mathrsfs package
|
||||||
\let\mathcat__PACKAGE_MACRO__(mathrsfs@mathscr) % Set \mathcat to mathscript from mathrsfs package
|
\let\mathcat__PACKAGE_MACRO__(mathrsfs@mathscr) % Set \mathcat to mathscript from mathrsfs package
|
||||||
\let\mathcalo__PACKAGE_MACRO__(eucal@optionmathscr@mathscr) % Set \mathcom (for comic) to \mathscr from [mathscr]{eucal} package
|
\let\mathcalo__PACKAGE_MACRO__(eucal@optionmathscr@mathscr) % Set \mathcalo (for old calligraphic) to \mathscr from [mathscr]{eucal} package
|
||||||
}
|
}
|
||||||
|
|
||||||
\AtBeginDocument{__PACKAGE_MACRO__(restorefonts)}
|
\AtBeginDocument{__PACKAGE_MACRO__(restorefonts)}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
__HEADER__(Math Operator Package)
|
__HEADER__(Math Operator Package)
|
||||||
%Provides some commonly used Operators used in the write-ups of my lecture notes
|
%Provides some commonly used Operators used in the write-ups of my lecture notes
|
||||||
|
|
||||||
__LANGUAGE_OPTIONS__
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__END_OPTIONS__
|
__LANGUAGE_OPTIONS_X__
|
||||||
|
|
||||||
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
%%%%%Package dependencies
|
%%%%%Package dependencies
|
||||||
\RequirePackage{amsmath}
|
\RequirePackage{amsmath}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
__HEADER__(Package for setting up hyperref, cleveref and some default hyperref colors)
|
__HEADER__(Package for setting up hyperref, cleveref and some default hyperref colors)
|
||||||
|
|
||||||
__NEW_IF__(cleveref,false)
|
\RequirePackage{xkeyval}
|
||||||
\DeclareOption{cleveref}{__SET_IF__(cleveref,true)}
|
|
||||||
|
|
||||||
__END_OPTIONS___
|
__NEW_IF__(cleveref,false)
|
||||||
|
\DeclareOptionX{cleveref}{__SET_IF__(cleveref,true)}
|
||||||
|
|
||||||
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
%%%Hyperref and setup
|
%%%Hyperref and setup
|
||||||
\RequirePackage{xcolor} % To compute the colors below
|
\RequirePackage{xcolor} % To compute the colors below
|
||||||
|
|
|
@ -3,11 +3,11 @@ __HEADER__(Package for emphasizing vocabulary)
|
||||||
|
|
||||||
\RequirePackage{xkeyval}
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__LANGUAGE_OPTIONS__
|
__LANGUAGE_OPTIONS_X__
|
||||||
__NEW_IF__(index,false)
|
__NEW_IF__(index,false)
|
||||||
|
|
||||||
\DeclareOption{index}{__SET_IF__(index,true)}
|
\DeclareOptionX{index}{__SET_IF__(index,true)}
|
||||||
\DeclareOption{noindex}{__SET_IF__(index,false)}
|
\DeclareOptionX{noindex}{__SET_IF__(index,false)}
|
||||||
|
|
||||||
__END_OPTIONS_X__
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ __HEADER__(Automatic references to theorems in proofs. Claim counters within pro
|
||||||
|
|
||||||
\RequirePackage{xkeyval}
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
__LANGUAGE_OPTIONS__
|
__LANGUAGE_OPTIONS_X__
|
||||||
|
|
||||||
__END_OPTIONS_X__
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
|
@ -18,15 +18,15 @@ __END_OPTIONS_X__
|
||||||
\newtheorem*{claim*}{__IF__(english) Claim\else Behauptung\fi}
|
\newtheorem*{claim*}{__IF__(english) Claim\else Behauptung\fi}
|
||||||
\AtBeginDocument{\def\claimautorefname{__IF__(english) Claim\else Behauptung\fi}}
|
\AtBeginDocument{\def\claimautorefname{__IF__(english) Claim\else Behauptung\fi}}
|
||||||
|
|
||||||
\newif\ifhyperref
|
__NEW_IF__(hyperref,false)
|
||||||
\AtBeginDocument{
|
\AtBeginDocument{
|
||||||
\@ifpackageloaded{hyperref}{
|
\@ifpackageloaded{hyperref}{
|
||||||
\hyperreftrue
|
__SET_IF__(hyperref,true)
|
||||||
\def\grab#1{\expandafter\@firstoffive#1}
|
\def\grab#1{\expandafter\@firstoffive#1}
|
||||||
\def__PACKAGE_MACRO__(blankref)#1{\expandafter\grab\csname r@#1\endcsname}
|
\def__PACKAGE_MACRO__(blankref)#1{\expandafter\grab\csname r@#1\endcsname}
|
||||||
\let__PACKAGE_MACRO__(autoref)\autoref
|
\let__PACKAGE_MACRO__(autoref)\autoref
|
||||||
}{
|
}{
|
||||||
\hyperreffalse
|
__SET_IF__(hyperref,true)
|
||||||
\let__PACKAGE_MACRO__(blankref)\ref
|
\let__PACKAGE_MACRO__(blankref)\ref
|
||||||
\let__PACKAGE_MACRO__(autoref)\ref
|
\let__PACKAGE_MACRO__(autoref)\ref
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,9 +16,10 @@ __NEW_IF__(english, true)
|
||||||
__INFO__(Strict mode disabled. Undefined restates will now print placeholder boxes)%
|
__INFO__(Strict mode disabled. Undefined restates will now print placeholder boxes)%
|
||||||
\fi
|
\fi
|
||||||
}{
|
}{
|
||||||
__WARNING__({Erroneous input to key 'strict' ignored. Provide =true or =false.)
|
__WARNING__(Erroneous input to key 'strict' ignored. Provide =true or =false.)
|
||||||
}
|
}
|
||||||
\ProcessOptionsX*\relax
|
|
||||||
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
\newcommand\restatesetup[1]{\setkeys{__FILE_NAME__}{#1}}
|
\newcommand\restatesetup[1]{\setkeys{__FILE_NAME__}{#1}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue