Skip to content

Instantly share code, notes, and snippets.

@eric-wieser
Last active November 10, 2022 04:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-wieser/d540e809d573c0ded5d74036e81dc904 to your computer and use it in GitHub Desktop.
Save eric-wieser/d540e809d573c0ded5d74036e81dc904 to your computer and use it in GitHub Desktop.
Getting `minted` to work in Editorial Manager

The "Editorial manager" software used by springer journals such as Advances in Applied Clifford Algebra behaves poorly on latex files that include \usepackage{minted}. When provided with such a file, the software starts a build, and reports back 15 minutes later with the output "Error" and nothing else.

Some more details are given in the blog post "The pain with submitting LaTeX to a journal".

I tracked down the issue to \RequirePackage{ifplatform} failing. Since we know that the platform is windows and does not support shellescape, we can insert a shim for this package with the following ifplatform.sty:

\ProvidesPackage{ifplatform}
  [2007/11/18 v0.2  Testing for the operating system]
\newif\ifshellescape
\newif\ifwindows
\newif\ifmacosx
\newif\iflinux
\shellescapefalse
\windowstrue

After doing this, \usepackage{minted}[frozencache,cachedir=.] works as described in that blog post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment