0

I have my own environment art and when I place a picture in wrapfigure in this environment it just go after art. It seems to be my environment because when I delete it from style, wrapfigure works fine. Is there something I should add or how fix this behavior?

\newcounter{art}
\newenvironment{art}[5]
{\refstepcounter{art}
    \noindent\normalfont\huge\bfseries{\theart~\hspace{0.5em}#1}
    \vspace{-0.3cm}
    \begin{center}{
        \mdseries\normalsize\index[authors]{#3}\itshape {#3}\footnote{#4}\setcounter{footnote}{0}}
    \end{center}
    \justify\large\mdseries{#2}\par
    \normalsize\mdseries\justify
    \fancyhead[RE,LO]{#5}
    \addcontentsline{toc}{section}{\small #5 #1}
}
  • \newenvironment requires three arguments: the name, the "before" code and the "after" code. You only have two. I might also add that center is a list, and wrapfig doesn't like lists. – John Kormylo May 28 '19 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.