New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mdframed theorem environments + \listoftheorems #1
Comments
On a side note, for what it's worth, I'm really impressed by how far |
Hi,
Marco |
|
Hi, sorry I complety missed this. I uploaded a new version (github). With the new version the following example should work well. Note I didn't support the unnumbered star-version. \documentclass{article}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{ntheorem}
\usepackage{mdframed}
\mdtheorem{lemma}{Lemma}
\newrobustcmd\ExampleText{%
An \textit{inhomogeneous linear} differential equation has the form
\begin{align}
L[v ] = f,
\end{align}
where $L$ is a linear differential operator, $v$ is
the dependent variable, and $f$ is a given non−zero
function of the independent variables alone.
}
\begin{document}
\listtheorems{lemma}
\section{foo}
\begin{lemma}[inhomogeneous linear]
\ExampleText
\end{lemma}
\begin{lemma}[inhomogeneous linear]
\ExampleText
\end{lemma}
\end{document} |
I have the impression that including \documentclass{article}
\usepackage{amsthm,thmtools}
\usepackage{mdframed}
\usepackage{xcolor}
\usepackage{mdframed}
\mdfdefinestyle{guidelinestyle}{%
linecolor=black,
linewidth=1pt,
frametitlerule=true,
frametitlefont=\sffamily\bfseries,
frametitlebackgroundcolor=gray!20,
innertopmargin=\topskip,
}
% \newmdenv[style=guidelinestyle]{asEnv}{asEnv}[section]
\newmdtheoremenv[style=guidelinestyle]{asTheoremEnv}{asTheoremEnv}[section]
\mdtheorem[style=guidelinestyle]{asTheorem}{asTheorem}[section]
\begin{document}
\expandafter\csname ver@mdframed.sty\endcsname
%\listoftheorems[ignoreall,show=xxx] % this is how I actually display it in my document
\listoftheorems
\section{My section}
% \begin{asEnv}[As environment, it appears in ToTh]
% But it doesn't look like what I want.
% \end{asEnv}
\begin{asTheoremEnv}[As theoremEnv, it appears in ToTh]
But it doesn't look like what I want.
\end{asTheoremEnv}
\begin{asTheorem}[As theorem, it does not appear in ToTh]
But it looks a lot better!
\end{asTheorem}
\end{document} As you see, the version included in TeX Live (MacTeX 2015), this issue still exists: the |
I'm using
mdframed
+theorems
as per Example 5 inmdframed-example-default.pdf
but can't figure out how to generate a list of theorems.I define my environment as follows
Then use it as
Previously I had been using the
thmtools
package and defining my theorem with\newtheoremstyle
&\declaretheorem
(and making my own environment that calledmdframed
around the theorem env), which seems to handle some of the registration for\listoftheorems
, but when I use the method suggested in themdframed
example document, I get an empty\listoftheorems
.Is there some trick to having
mdframed
theorems registered in the\listoftheorems
?The text was updated successfully, but these errors were encountered: