2

I'm using the COLT 2019 style, which is based on the JMLR style. Using includegraphics doesn't seem to work --- even when I use it exactly as in the JMLR manual (see the link above). The error I get says ! Paragraph ended before \@tempa was complete. I've tried to include/exclude graphicx, but it remained as is. Any ideas?

Here is a minimal example:

\documentclass[anon,12pt]{colt2019}
\usepackage{graphicx}
\title[Short Title]{Full Title of Article}
\begin{document}

\maketitle
\section{Introduction}
\begin{figure}[htbp]
\floatconts
{fig:example}% label
{\caption{An Example Figure}}% caption command
{\includegraphics[width=0.5\textwidth]{pic}}
\end{figure}

\end{document}
  • 3
    Unrelated (1) you can use one of the images from the mwe package (ctan.org/pkg/mwe), then others also have that image, (2) the times package is clearly not related yto your issue. – daleif Dec 18 '19 at 16:23
  • 1
    You might want to list which version of LaTeX you are using, I'm using LaTeX2e <2019-10-01> patch level 3 (as listed at the top of the log file). My guess is that the redefinitions of graphicx internals done in jmlr.cls is not compatible with recent versions of graphics. You should probably report this to the COLT people. – daleif Dec 18 '19 at 16:32
2

The jmlr class redefines internals of graphicx in a way that's incompatible with the most recent versions of the package.

For the time being, until the people responsible for the class fix the incompatibility, you can use a workaround:

\documentclass[anon]{colt2019}

\makeatletter
\let\Ginclude@graphics\@org@Ginclude@graphics
\makeatother

\title[Short Title]{Full Title of Article}

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htbp]

\floatconts
  {fig:example}% label
  {\caption{An Example Figure}}% caption command
  {\includegraphics[width=0.5\textwidth]{example-image}}

\end{figure}

\end{document}
|improve this answer|||||
  • Thanks, it works! Would you mind to elaborate a bit on this line in favor of my future education/others? – omerbp Dec 19 '19 at 6:27

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.