You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use pythontex with mwrep document class but when I try to compile mwe like this one:
\documentclass{mwrep}
\usepackage{pythontex}
\begin{document}
test
\end{document}
I get error:
! Undefined control sequence.
\newfloat@setwithin ...apter}@chapterlistsgap@on
{#1}\newfloat@@setwithin {...
If I change document class to report or anything like this then it works fine. The same when I remove \usepackage{pythontex} but together they don't want to work.
Any ideas what can be wrong and how to fix this?
The text was updated successfully, but these errors were encountered:
pythontex creates a listing environment using the newfloat package, unless such an environment already exists. It looks like the newfloat package conflicts with mwrep. If you don't need the listing environment, you can work around the conflict by using
This creates a (useless) listing environment before pythontex is loaded, so pythontex never creates one, and thus newfloat is never actually used.
If you do need to use newfloat, you might ask a question on https://tex.stackexchange.com/ about the conflict. I don't know enough about newfloat and mwrep to be able to make any quick progress in resolving a conflict.
Hi,
I'm trying to use pythontex with mwrep document class but when I try to compile mwe like this one:
\documentclass{mwrep}
\usepackage{pythontex}
\begin{document}
test
\end{document}
I get error:
! Undefined control sequence.
\newfloat@setwithin ...apter}@chapterlistsgap@on
{#1}\newfloat@@setwithin {...
If I change document class to report or anything like this then it works fine. The same when I remove \usepackage{pythontex} but together they don't want to work.
Any ideas what can be wrong and how to fix this?
The text was updated successfully, but these errors were encountered: