fixed cref/ulim-related bug

This commit is contained in:
epsilonbelowzero 2018-03-04 03:51:23 +01:00
parent d9f94331cd
commit af2d2d8c0a

View file

@ -183,8 +183,8 @@
{\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
\uline{##1\ ##3\theorem@separator}}\hbox{\strut}}}]} \uline{##1\ ##3\theorem@separator}}\hbox{\strut}}}]}
\newtheoremstyle{underlinedPlain}% \newtheoremstyle{underlinedPlain}%
{\item[\hskip\labelsep \uline{\theorem@headerfont ##1\theorem@separator}]}% {\item[\hskip\labelsep \underline{\theorem@headerfont ##1\theorem@separator}]}%
{\item[\hskip\labelsep \uline{\theorem@headerfont ##1\ (##3)\theorem@separator}]} {\item[\hskip\labelsep \underline{\theorem@headerfont ##1\ (##3)\theorem@separator}]}
\makeatother \makeatother
\theoremstyle{noparentheses} \theoremstyle{noparentheses}
@ -192,6 +192,7 @@
hidealllines=true,% hidealllines=true,%
innerleftmargin=1em,% innerleftmargin=1em,%
]{interpretation}{\hspace*{\dimexpr - \mdflength{innerleftmargin}\relax}Interpretation} ]{interpretation}{\hspace*{\dimexpr - \mdflength{innerleftmargin}\relax}Interpretation}
\theoremstyle{underlinedPlain} \theoremstyle{underlinedPlain}
\newmdtheoremenv[% \newmdtheoremenv[%
hidealllines=true,% hidealllines=true,%
@ -235,7 +236,7 @@ skipbelow=0pt,%
\zref@refused{#1@chapter}% \zref@refused{#1@chapter}%
\ifnumcomp{\value{chapter}}{=}{\zref@extractdefault{#1@chapter}{default}{1}}% \ifnumcomp{\value{chapter}}{=}{\zref@extractdefault{#1@chapter}{default}{1}}%
{%same chapter {%same chapter
\cref{#1}% \mbox{\cref{#1}}%
}% }%
{%otherwise {%otherwise
\ifcsdef{r@#1}%in first compilation the label may not be defined yet \ifcsdef{r@#1}%in first compilation the label may not be defined yet
@ -248,7 +249,7 @@ skipbelow=0pt,%
\crefformat{\propositionref@current@type}{% \crefformat{\propositionref@current@type}{%
\csname cref@\propositionref@current@type @name\endcsname ~##2\rom{\zref@extractdefault{#1@chapter}{default}{1}}.##1##3% \csname cref@\propositionref@current@type @name\endcsname ~##2\rom{\zref@extractdefault{#1@chapter}{default}{1}}.##1##3%
}% }%
\cref{#1}% \mbox{\cref{#1}}%mbox neccessary due to cleveref <-> ulem
\crefformat{\propositionref@current@type}{% \crefformat{\propositionref@current@type}{%
\csname cref@\propositionref@current@type @name\endcsname~##2##1##3% \csname cref@\propositionref@current@type @name\endcsname~##2##1##3%
}% }%
@ -330,7 +331,7 @@ skipbelow=0pt,%
\renewcommand{\chaptermark}[1]{% \renewcommand{\chaptermark}[1]{%
\markboth{\chaptername \markboth{\chaptername
\ \thechapter:\ #1}{}} \ \thechapter:\ #1}{}}
%remember section title in \leftmark %remember section title in \leftmark, overwrites chapter-title there
\renewcommand{\sectionmark}[1]{% \renewcommand{\sectionmark}[1]{%
\markright{\thesection.\ #1}{}} \markright{\thesection.\ #1}{}}
@ -342,6 +343,7 @@ skipbelow=0pt,%
\date{Updated: \today} \date{Updated: \today}
\begin{document} \begin{document}
\pagenumbering{roman} \pagenumbering{roman}
\pagestyle{plain} \pagestyle{plain}
@ -416,7 +418,8 @@ skipbelow=0pt,%
LOhne Nummer LOhne Nummer
\end{example} \end{example}
\begin{proof}
\begin{proof}[\cref{einzweitestheorem}]
Ein Beweis unter Ausnutzung von \propref{einzweitestheorem} Ein Beweis unter Ausnutzung von \propref{einzweitestheorem}
\begin{align} \begin{align}
@ -462,7 +465,7 @@ skipbelow=0pt,%
Ohne Nummer Ohne Nummer
\end{*example} \end{*example}
\begin{proof} \begin{proof}[]
Ein Beweis. Siehe auch \propref{eintheorem} und \propref{einzweitestheorem}. Ein Beweis. Siehe auch \propref{eintheorem} und \propref{einzweitestheorem}.
\begin{align} \begin{align}
f = f(x) \text{ (mit Formelnnummer)} f = f(x) \text{ (mit Formelnnummer)}