1

I'm trying to use Todonotes inside minted in order to easily annotate some code. I tried using escapeinside but the following code results in 5 errors unfortunately.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\usepackage{todonotes}

\begin{document}

\begin{minted}[breaklines, linenos, fontfamily=courier, fontsize=\footnotesize, escapeinside=||]{sql}
Code
|\todo{Hello}|
\end{minted}

\end{document}
1
  • |\todo[inline]{Hello}| spares you from errors but I am also not sure if the output is what one should expect. – user230864 Dec 13 '20 at 22:41

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.