-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conflict with caption package #54
Comments
Update: For now, in the document I'm working on, the However, this solution doesn't work in the |
Thanks for reporting it. Under the hood \documentclass[12pt]{article}
\usepackage{caption}
\usepackage{fancyvrb}
\usepackage{listings}
\begin{document}
\lstset{fancyvrb}
\begin{Verbatim}
first line
last line
\end{Verbatim}
\end{document}
\documentclass[12pt]{article}
\usepackage{caption}
\usepackage{mmacells}
\makeatletter
% Restore original listings caption inside mmacells.
\mmaSet{morefv={formatcom*={\let\lst@MakeCaption\caption@ORI@lst@MakeCaption}}}
\makeatother
\begin{document}
\mmaSet{morefv={gobble=2}}
\begin{mmaCell}[moredefined={SumFirst,SumFirstSquares,SumFirstCubes},morepattern={n_,n},functionlocal=i]{Input}
SumFirst[n_]:=Sum[i,\{i,1,n\}];
SumFirstSquares[n_]:=Sum[\mmaSup{i}{2},\{i,1,n\}];
SumFirstCubes[n_]:=Sum[\mmaSup{i}{3},\{i,1,n\}]
\end{mmaCell}
\end{document} |
Hello. There is a minor conflict with the
caption
package. If this package is enabled, the last line of somemmaCell
is not displayed. Any idea why this happens? Perhaps it's something trivial; I'm not familiar with the default options of thecaption
package, and I don't know why this conflict arises. I provide you a MRE to examine.The text was updated successfully, but these errors were encountered: