adjust fancythm to pytex
This commit is contained in:
parent
147229261e
commit
c708f00253
3 changed files with 138 additions and 153 deletions
|
@ -1,24 +1,94 @@
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
__HEADER__(Theorem-Environment Package)
|
||||||
\ProvidesPackage{mkessler-fancythm}[2021/04/27 - Theorem-Environment Package]
|
|
||||||
%%%%%%%%m
|
|
||||||
%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
|
||||||
|
|
||||||
|
__NEW_IF__(showstars,true)
|
||||||
|
__NEW_IF__(showdaggers,true)
|
||||||
|
__NEW_IF__(includestars,true)
|
||||||
|
__NEW_IF__(includeoral,true)
|
||||||
|
__NEW_IF__(markoral,true)
|
||||||
|
|
||||||
\RequirePackage{mkessler-fancythmoptions} % Internal preamble for option handling
|
__NEW_IF__(lecturenumbers,true)
|
||||||
|
__NEW_IF__(numbersmallenvironmentswiththeorem,false)
|
||||||
|
__NEW_IF__(numbersmallenvironments,false)
|
||||||
|
__NEW_IF__(defaulttheorems,true)
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{__PACKAGE_PREFIX__numbersmallenvironments}[\val\nr]{no,section,theorem}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(numbersmallenvironments,false)
|
||||||
|
\or
|
||||||
|
__SET_IF__(numbersmallenvironments,true)
|
||||||
|
%numbering small environments within sections is forbidden whilst using lecturenumbes
|
||||||
|
__IF__(lecturenumbers)
|
||||||
|
__SET_IF__(numbersmallenvironmentswiththeorem,true)
|
||||||
|
\else
|
||||||
|
__SET_IF__(numbersmallenvironmentswiththeorem,false)
|
||||||
|
\fi
|
||||||
|
\or
|
||||||
|
__SET_IF__(numbersmallenvironments,true)
|
||||||
|
__SET_IF__(numbersmallenvironmentswiththeorem,true)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{__PACKAGE_PREFIX__lecturenumbers}[\val\nr]{true,false}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(lecturenumbers,true)
|
||||||
|
\else
|
||||||
|
__SET_IF__(lecturenumbers,false)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{__PACKAGE_PREFIX__defaulttheorems}[\val\nr]{true,false}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(defaulttheorems,true)
|
||||||
|
\else
|
||||||
|
__SET_IF__(defaulttheorems,false)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{__PACKAGE_PREFIX__showdaggers}[\val\nr]{true,false}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(showdaggers,true)
|
||||||
|
\else
|
||||||
|
__SET_IF__(showdaggers,false)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{ownenvironments}[\val\nr]{on, natural, off}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(includestars,true)
|
||||||
|
__SET_IF__(showstars,true)
|
||||||
|
\or
|
||||||
|
__SET_IF__(includestars,true)
|
||||||
|
__SET_IF__(showstars,false)
|
||||||
|
\or
|
||||||
|
__SET_IF__(includestars,false)
|
||||||
|
__SET_IF__(showstars,false)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
|
\define@choicekey*{__PACKAGE_NAME__}{oralremarks}[\val\nr]{on,natural,off}{%
|
||||||
|
\ifcase\nr\relax
|
||||||
|
__SET_IF__(includeoral,true)
|
||||||
|
__SET_IF__(markoral,true)
|
||||||
|
\or
|
||||||
|
__SET_IF__(includeoral,true)
|
||||||
|
__SET_IF__(markoral,true)
|
||||||
|
\or
|
||||||
|
__SET_IF__(includeoral,false)
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
%%%%% Option section
|
%%%%% Option section
|
||||||
\DeclareOptionX{english}{\mkessler@fancythm@englishtrue}
|
__LANGUAGE_OPTIONS__
|
||||||
\DeclareOptionX{german}{\mkessler@fancythm@englishfalse}
|
|
||||||
|
|
||||||
\DeclareOptionX{showdaggers}{\setkeys{mkesslerfancythm}{mkessler@fancythm@showdaggers=#1}}
|
\DeclareOptionX{showdaggers}{\setkeys{__PACKAGE_NAME__}{__PACKAGE_PREFIX__showdaggers=#1}}
|
||||||
\DeclareOptionX{ownenvironments}{\setkeys{mkesslerfancythm}{ownenvironments=#1}}
|
\DeclareOptionX{ownenvironments}{\setkeys{__PACKAGE_NAME__}{ownenvironments=#1}}
|
||||||
\DeclareOptionX{oralremarks}{\setkeys{mkesslerfancythm}{oralremarks=#1}}
|
\DeclareOptionX{oralremarks}{\setkeys{__PACKAGE_NAME__}{oralremarks=#1}}
|
||||||
|
|
||||||
\DeclareOptionX{lecturenumbers}{\setkeys{mkesslerfancythm}{mkessler@fancythm@lecturenumbers=#1}}
|
\DeclareOptionX{lecturenumbers}{\setkeys{__PACKAGE_NAME__}{__PACKAGE_PREFIX__lecturenumbers=#1}}
|
||||||
\DeclareOptionX{numbersmallenvironments}{\setkeys{mkesslerfancythm}{mkessler@fancythm@numbersmallenvironments=#1}}
|
\DeclareOptionX{numbersmallenvironments}{\setkeys{__PACKAGE_NAME__}{__PACKAGE_PREFIX__numbersmallenvironments=#1}}
|
||||||
|
|
||||||
\DeclareOptionX*{\PackageWarning{mkesslerfancythm}{Unknown X \CurrentOption}}% For unknown options
|
__END_OPTIONS_X__
|
||||||
\ProcessOptionsX*\relax
|
|
||||||
|
|
||||||
%%%%%%%% Implementation section
|
%%%%%%%% Implementation section
|
||||||
|
|
||||||
|
@ -34,8 +104,8 @@
|
||||||
\tcbuselibrary{breakable}
|
\tcbuselibrary{breakable}
|
||||||
|
|
||||||
% Dummy counters
|
% Dummy counters
|
||||||
\declaretheorem[numberwithin=section]{mkessler@fancythm@dummy}
|
\declaretheorem[numberwithin=section]{__PACKAGE_PREFIX__dummy}
|
||||||
\declaretheorem[numberwithin=mkessler@fancythm@dummy]{mkessler@fancythm@smalldummy}
|
\declaretheorem[numberwithin=__PACKAGE_PREFIX__dummy]{__PACKAGE_PREFIX__smalldummy}
|
||||||
|
|
||||||
%%%%% Main part, i.e. providing macros for defining new theorems
|
%%%%% Main part, i.e. providing macros for defining new theorems
|
||||||
|
|
||||||
|
@ -48,68 +118,68 @@
|
||||||
|
|
||||||
\NewDocumentCommand{\declarebigtheorem}{O{} O{} m m O{}}{
|
\NewDocumentCommand{\declarebigtheorem}{O{} O{} m m O{}}{
|
||||||
%First, store the name of the theorem in \theoremname
|
%First, store the name of the theorem in \theoremname
|
||||||
\ifmkessler@fancythm@english
|
\if__PACKAGE_PREFIX__english
|
||||||
\ifthenelse{\isempty{#2}}{\def\theoremname{#4}}{\def\theoremname{#2}}
|
\ifthenelse{\isempty{#2}}{\def\theoremname{#4}}{\def\theoremname{#2}}
|
||||||
\else
|
\else
|
||||||
\ifthenelse{\isempty{#1}}{\def\theoremname{#4}}{\def\theoremname{#1}}
|
\ifthenelse{\isempty{#1}}{\def\theoremname{#4}}{\def\theoremname{#1}}
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
%Define the mane version of the theorem
|
%Define the mane version of the theorem
|
||||||
\ifthenelse{\isempty{#5}}{\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling = mkessler@fancythm@dummy]{#4}}{}
|
\ifthenelse{\isempty{#5}}{\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling = __PACKAGE_PREFIX__dummy]{#4}}{}
|
||||||
|
|
||||||
%Define the versions theorem*, theorem**, dtheorem
|
%Define the versions theorem*, theorem**, dtheorem
|
||||||
|
|
||||||
\ifmkessler@fancythm@lecturenumbers
|
\if__PACKAGE_PREFIX__lecturenumbers
|
||||||
\ifmkessler@fancythm@numbersmallenvironments
|
\if__PACKAGE_PREFIX__numbersmallenvironments
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling=mkessler@fancythm@smalldummy]{#4*}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling=__PACKAGE_PREFIX__smalldummy]{#4*}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, sibling=mkessler@fancythm@smalldummy]{#4**}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, sibling=__PACKAGE_PREFIX__smalldummy]{#4**}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, sibling=mkessler@fancythm@smalldummy]{d#4}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, sibling=__PACKAGE_PREFIX__smalldummy]{d#4}
|
||||||
\else
|
\else
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, numbered=no]{#4*}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, numbered=no]{#4*}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, numbered = no]{#4**}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, numbered = no]{#4**}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, numbered = no]{d#4}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, numbered = no]{d#4}
|
||||||
\fi
|
\fi
|
||||||
\else
|
\else
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling=mkessler@fancythm@dummy]{#4*}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}, sibling=__PACKAGE_PREFIX__dummy]{#4*}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, sibling=mkessler@fancythm@dummy]{#4**}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, sibling=__PACKAGE_PREFIX__dummy]{#4**}
|
||||||
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, sibling=mkessler@fancythm@dummy]{d#4}
|
\declaretheorem[style = #3, name = \makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, sibling=__PACKAGE_PREFIX__dummy]{d#4}
|
||||||
\fi
|
\fi
|
||||||
\ifmkessler@fancythm@includestars\else\renewenvironment{#4**}{\comment}{\endcomment}\fi
|
\if__PACKAGE_PREFIX__includestars\else\renewenvironment{#4**}{\comment}{\endcomment}\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewDocumentCommand{\declaresmalltheorem}{O{} O{} m m}{
|
\NewDocumentCommand{\declaresmalltheorem}{O{} O{} m m}{
|
||||||
%Get the name of the theorem and store it in \theoremname
|
%Get the name of the theorem and store it in \theoremname
|
||||||
\ifmkessler@fancythm@english
|
\if__PACKAGE_PREFIX__english
|
||||||
\ifthenelse{\isempty{#2}}{\def\theoremname{#4}}{\def\theoremname{#2}}
|
\ifthenelse{\isempty{#2}}{\def\theoremname{#4}}{\def\theoremname{#2}}
|
||||||
\else
|
\else
|
||||||
\ifthenelse{\isempty{#1}}{\def\theoremname{#4}}{\def\theoremname{#1}}
|
\ifthenelse{\isempty{#1}}{\def\theoremname{#4}}{\def\theoremname{#1}}
|
||||||
\fi
|
\fi
|
||||||
\ifmkessler@fancythm@numbersmallenvironments
|
\if__PACKAGE_PREFIX__numbersmallenvironments
|
||||||
\ifmkessler@fancythm@numbersmallenvironmentswiththeorem
|
\if__PACKAGE_PREFIX__numbersmallenvironmentswiththeorem
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling = mkessler@fancythm@smalldummy]{#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling = __PACKAGE_PREFIX__smalldummy]{#4}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, sibling=mkessler@fancythm@smalldummy]{#4*}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, sibling=__PACKAGE_PREFIX__smalldummy]{#4*}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, sibling=mkessler@fancythm@smalldummy]{d#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, sibling=__PACKAGE_PREFIX__smalldummy]{d#4}
|
||||||
\else
|
\else
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling=mkessler@fancythm@dummy]{#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling=__PACKAGE_PREFIX__dummy]{#4}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, sibling=mkessler@fancythm@dummy]{#4*}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, sibling=__PACKAGE_PREFIX__dummy]{#4*}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, sibling=mkessler@fancythm@dummy]{d#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, sibling=__PACKAGE_PREFIX__dummy]{d#4}
|
||||||
\fi
|
\fi
|
||||||
\else
|
\else
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, numbered = no]{#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, numbered = no]{#4}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showstars *\else\fi, numbered = no]{#4*}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showstars *\else\fi, numbered = no]{#4*}
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\ifmkessler@fancythm@showdaggers $^{\dagger}$\else\fi, numbered = no]{d#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}\if__PACKAGE_PREFIX__showdaggers $^{\dagger}$\else\fi, numbered = no]{d#4}
|
||||||
\fi
|
\fi
|
||||||
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling=mkessler@fancythm@dummy]{n#4}
|
\declaretheorem[style=#3,name=\makefirstuc{\expandafter\theoremname}, sibling=__PACKAGE_PREFIX__dummy]{n#4}
|
||||||
\ifmkessler@fancythm@includestars\else\renewenvironment{#4*}{\comment}{\endcomment}\fi
|
\if__PACKAGE_PREFIX__includestars\else\renewenvironment{#4*}{\comment}{\endcomment}\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
%%%% If requested, now define some default theoremstyles
|
%%%% If requested, now define some default theoremstyles
|
||||||
\ifmkessler@fancythm@defaulttheorems
|
\if__PACKAGE_PREFIX__defaulttheorems
|
||||||
|
|
||||||
\RequirePackage[default styles]{mkessler-thmstyle} % Easy setup of mdframed styles
|
\RequirePackage[default styles]{mkessler-thmstyle} % Easy setup of mdframed styles
|
||||||
|
|
||||||
\declarebigtheorem[Satz][Theorem]{thmredmarginandfill}{theorem} \ifmkessler@fancythm@english\else\AtBeginDocument{\def\theoremautorefname{Satz}}\fi
|
\declarebigtheorem[Satz][Theorem]{thmredmarginandfill}{theorem} \if__PACKAGE_PREFIX__english\else\AtBeginDocument{\def\theoremautorefname{Satz}}\fi
|
||||||
\declarebigtheorem{thmredmarginandfill}{proposition}
|
\declarebigtheorem{thmredmarginandfill}{proposition}
|
||||||
\declarebigtheorem[Korollar]{thmredmarginandfill}{corollary}
|
\declarebigtheorem[Korollar]{thmredmarginandfill}{corollary}
|
||||||
\declarebigtheorem{thmorangemarginandfill}{lemma}
|
\declarebigtheorem{thmorangemarginandfill}{lemma}
|
||||||
|
@ -121,7 +191,7 @@
|
||||||
\declarebigtheorem[zuSatz][Addition to Theorem]{thmredmarginandfill}{additiontheorem}
|
\declarebigtheorem[zuSatz][Addition to Theorem]{thmredmarginandfill}{additiontheorem}
|
||||||
|
|
||||||
%%%Environments that are not numbered by default (notation, question, example, remark etc) have two forms:
|
%%%Environments that are not numbered by default (notation, question, example, remark etc) have two forms:
|
||||||
% - normal form: won't be numbered unless 'mkessler@fancythm@numbersmallenvironments' is set
|
% - normal form: won't be numbered unless '__PACKAGE_PREFIX__numbersmallenvironments' is set
|
||||||
% - having an asterisk: will be displayed with an asterisk, will be numbered if 'numbersmallenvironments' is set
|
% - having an asterisk: will be displayed with an asterisk, will be numbered if 'numbersmallenvironments' is set
|
||||||
%Notation
|
%Notation
|
||||||
|
|
||||||
|
@ -136,9 +206,9 @@
|
||||||
|
|
||||||
%%%% Specially treated stuff
|
%%%% Specially treated stuff
|
||||||
|
|
||||||
\declaresmalltheorem[\ifmkessler@fancythm@markoral Mündliche Anmerkung\else Bemerkung\fi][\ifmkessler@fancythm@markoral Oral remark\else remark\fi]{thmyellowmargin}{oral}
|
\declaresmalltheorem[\if__PACKAGE_PREFIX__markoral Mündliche Anmerkung\else Bemerkung\fi][\if__PACKAGE_PREFIX__markoral Oral remark\else remark\fi]{thmyellowmargin}{oral}
|
||||||
% Option to remove oral remarks when needed
|
% Option to remove oral remarks when needed
|
||||||
\ifmkessler@fancythm@includeoral\else
|
\if__PACKAGE_PREFIX__includeoral\else
|
||||||
\renewenvironment{oral}{\comment}{\endcomment}
|
\renewenvironment{oral}{\comment}{\endcomment}
|
||||||
\renewenvironment{oral*}{\comment}{\endcomment}
|
\renewenvironment{oral*}{\comment}{\endcomment}
|
||||||
\renewenvironment{doral}{\comment}{\endcomment}
|
\renewenvironment{doral}{\comment}{\endcomment}
|
||||||
|
@ -168,26 +238,26 @@
|
||||||
%%%%%%%%%%%% Non-mdframed theorems
|
%%%%%%%%%%%% Non-mdframed theorems
|
||||||
|
|
||||||
\theoremstyle{plain}
|
\theoremstyle{plain}
|
||||||
\newtheorem{variant}{\ifmkessler@fancythm@english Variant\else Variante\fi}
|
\newtheorem{variant}{\if__PACKAGE_PREFIX__english Variant\else Variante\fi}
|
||||||
\newtheorem{assumption}{\ifmkessler@fancythm@english Assumption\else Annahme\fi}
|
\newtheorem{assumption}{\if__PACKAGE_PREFIX__english Assumption\else Annahme\fi}
|
||||||
|
|
||||||
\theoremstyle{definition}
|
\theoremstyle{definition}
|
||||||
\newtheorem*{note}{\ifmkessler@fancythm@english Note\else Anmerkung\fi}
|
\newtheorem*{note}{\if__PACKAGE_PREFIX__english Note\else Anmerkung\fi}
|
||||||
\newtheorem*{warning}{\color{red}\ifmkessler@fancythm@english Warning \else Warnung\fi}
|
\newtheorem*{warning}{\color{red}\if__PACKAGE_PREFIX__english Warning \else Warnung\fi}
|
||||||
\newtheorem*{goal}{\ifmkessler@fancythm@english Goal \else Ziel\fi}
|
\newtheorem*{goal}{\if__PACKAGE_PREFIX__english Goal \else Ziel\fi}
|
||||||
\newtheorem*{strategy}{\ifmkessler@fancythm@english Proof Strategy \else Beweisstrategie\fi}
|
\newtheorem*{strategy}{\if__PACKAGE_PREFIX__english Proof Strategy \else Beweisstrategie\fi}
|
||||||
\newtheorem*{goal*}{\ifmkessler@fancythm@english Goal* \else Ziel*\fi}
|
\newtheorem*{goal*}{\if__PACKAGE_PREFIX__english Goal* \else Ziel*\fi}
|
||||||
\newtheorem*{problem}{Problem}
|
\newtheorem*{problem}{Problem}
|
||||||
\newtheorem*{info}{Information}
|
\newtheorem*{info}{Information}
|
||||||
|
|
||||||
|
|
||||||
\newtheorem*{answer}{\ifmkessler@fancythm@english Answer\else Antwort\fi}
|
\newtheorem*{answer}{\if__PACKAGE_PREFIX__english Answer\else Antwort\fi}
|
||||||
\newtheorem{observe}[theorem]{\ifmkessler@fancythm@english Observe\else Beobachte\fi}
|
\newtheorem{observe}[theorem]{\if__PACKAGE_PREFIX__english Observe\else Beobachte\fi}
|
||||||
\newtheorem*{property}{\ifmkessler@fancythm@english Property\else Eigenschaft\fi}
|
\newtheorem*{property}{\if__PACKAGE_PREFIX__english Property\else Eigenschaft\fi}
|
||||||
\newtheorem*{intuition}{Intuition}
|
\newtheorem*{intuition}{Intuition}
|
||||||
\newtheorem*{recall}{\ifmkessler@fancythm@english Recall\else Erinnerung\fi}
|
\newtheorem*{recall}{\if__PACKAGE_PREFIX__english Recall\else Erinnerung\fi}
|
||||||
\newtheorem*{idea}{\ifmkessler@fancythm@english Idea\else Idee\fi}
|
\newtheorem*{idea}{\if__PACKAGE_PREFIX__english Idea\else Idee\fi}
|
||||||
\newtheorem{exercise}{\ifmkessler@fancythm@english Exercise\else Aufgabe\fi}[section]
|
\newtheorem{exercise}{\if__PACKAGE_PREFIX__english Exercise\else Aufgabe\fi}[section]
|
||||||
\newtheorem{reminder}{\ifmkessler@fancythm@english Reminder\else Erinnerung\fi}
|
\newtheorem{reminder}{\if__PACKAGE_PREFIX__english Reminder\else Erinnerung\fi}
|
||||||
|
|
||||||
\fi % end of default theorems
|
\fi % end of default theorems
|
|
@ -1,84 +0,0 @@
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{mkessler-fancythmoptions}
|
|
||||||
|
|
||||||
\RequirePackage{xkeyval}
|
|
||||||
|
|
||||||
%%%%% This is an internal base class, do not import this yourself
|
|
||||||
%% This will just be imported by fancythm for easy options use
|
|
||||||
\newif\ifmkessler@fancythm@english\mkessler@fancythm@englishtrue
|
|
||||||
\newif\ifmkessler@fancythm@showstars\mkessler@fancythm@showstarstrue
|
|
||||||
\newif\ifmkessler@fancythm@showdaggers\mkessler@fancythm@showdaggerstrue
|
|
||||||
\newif\ifmkessler@fancythm@includestars\mkessler@fancythm@includestarstrue
|
|
||||||
\newif\ifmkessler@fancythm@includeoral\mkessler@fancythm@includeoraltrue
|
|
||||||
\newif\ifmkessler@fancythm@markoral\mkessler@fancythm@markoraltrue
|
|
||||||
|
|
||||||
\newif\ifmkessler@fancythm@lecturenumbers\mkessler@fancythm@lecturenumberstrue
|
|
||||||
\newif\ifmkessler@fancythm@numbersmallenvironmentswiththeorem\mkessler@fancythm@numbersmallenvironmentswiththeoremfalse
|
|
||||||
\newif\ifmkessler@fancythm@numbersmallenvironments\mkessler@fancythm@numbersmallenvironmentsfalse
|
|
||||||
\newif\ifmkessler@fancythm@defaulttheorems\mkessler@fancythm@defaulttheoremstrue
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{mkessler@fancythm@numbersmallenvironments}[\val\nr]{no,section,theorem}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentsfalse
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentstrue
|
|
||||||
%numbering small environments within sections is forbidden whilst using lecturenumbes
|
|
||||||
\ifmkessler@fancythm@lecturenumbers
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentswiththeoremtrue
|
|
||||||
\else
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentswiththeoremfalse
|
|
||||||
\fi
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentstrue
|
|
||||||
\mkessler@fancythm@numbersmallenvironmentswiththeoremtrue
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{mkessler@fancythm@lecturenumbers}[\val\nr]{true,false}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@lecturenumberstrue
|
|
||||||
\else
|
|
||||||
\mkessler@fancythm@lecturenumbersfalse
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{mkessler@fancythm@defaulttheorems}[\val\nr]{true,false}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@defaulttheoremstrue
|
|
||||||
\else
|
|
||||||
\mkessler@fancythm@defaulttheoremsfalse
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{mkessler@fancythm@showdaggers}[\val\nr]{true,false}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@showdaggerstrue
|
|
||||||
\else
|
|
||||||
\mkessler@fancythm@showdaggersfalse
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{ownenvironments}[\val\nr]{on, natural, off}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@includestarstrue
|
|
||||||
\mkessler@fancythm@showstarstrue
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@includestarstrue
|
|
||||||
\mkessler@fancythm@showstarsfalse
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@includestarsfalse
|
|
||||||
\mkessler@fancythm@showstarsfalse
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
|
|
||||||
\define@choicekey*{mkesslerfancythm}{oralremarks}[\val\nr]{on,natural,off}{%
|
|
||||||
\ifcase\nr\relax
|
|
||||||
\mkessler@fancythm@includeoraltrue
|
|
||||||
\mkessler@fancythm@markoraltrue
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@includeoraltrue
|
|
||||||
\mkessler@fancythm@markoralfalse
|
|
||||||
\or
|
|
||||||
\mkessler@fancythm@includeoralfalse
|
|
||||||
\fi
|
|
||||||
}
|
|
|
@ -1,14 +1,13 @@
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
__HEADER__(Mdframed Styles used for fancythm package)
|
||||||
\ProvidesPackage{mkessler-thmstyle}[2021/09/09 - Styles used for fancythm]
|
|
||||||
|
|
||||||
%%%%% This provides easy-to-use styles, especially for use with the
|
%%%%% This provides easy-to-use styles, especially for use with the
|
||||||
|
|
||||||
% A simple option wether to define some default styles
|
\RequirePackage{xkeyval}
|
||||||
\newif\ifmkessler@thmstyle@defaultstyles\mkessler@thmstyle@defaultstylesfalse
|
|
||||||
\DeclareOption{defaultstyles}{\mkessler@thmstyle@defaultstylestrue}
|
|
||||||
|
|
||||||
\DeclareOption*{\PackageWarning{mkessler-thmstyle}{Unknown '\CurrentOption'}}
|
% A simple option wether to define some default styles
|
||||||
\ProcessOptions\relax
|
__NEW_IF__(defaultstyles,false)
|
||||||
|
\DeclareOptionX{defaultstyles}{__SET_IF__(defaultstyles,true)}
|
||||||
|
|
||||||
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
\RequirePackage{amsthm}
|
\RequirePackage{amsthm}
|
||||||
\RequirePackage{thmtools}
|
\RequirePackage{thmtools}
|
||||||
|
@ -75,7 +74,7 @@
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
\ifmkessler@thmstyle@defaultstyles
|
__IF__(defaultstyles)
|
||||||
\declarefancythmstyle[red!8]{red}[thmredmarginandfill]
|
\declarefancythmstyle[red!8]{red}[thmredmarginandfill]
|
||||||
\declarefancythmstyle[orange!10]{orange}[thmorangemarginandfill]
|
\declarefancythmstyle[orange!10]{orange}[thmorangemarginandfill]
|
||||||
\declarefancythmstyle[blue!7]{blue}[thmbluemarginandfill]
|
\declarefancythmstyle[blue!7]{blue}[thmbluemarginandfill]
|
Loading…
Reference in a new issue