# Tag Info

It's a disgusting way, but I got it to work: \texttt{\$}\mintinline{perl}{_[0]} I only need it in black and white, so it looks fine. If there's another answer that works better, I will accept that one instead 4 You have to escape the special characters: \documentclass{article} \usepackage{minted} \begin{document} \mint{perl}|$_[0]| \end{document} The character | stands for an arbitrary (nonspecial) character that doesn't appear in the text to be processed, like for \verb. You might consider using pythontex: \documentclass{article} \usepackage{pythontex} ...