I am using the minted package (based on pygments) to do syntax-highlighting for xml-code in my Latex documents. However I did not find an option to make it display the code inline.

\mint{xml}|<?xml version="1.0" ?>|

does a single line but does not display inside a text line. Is that achievable using minted?

  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Oct 7, 2013 at 22:42

1 Answer 1


This is not supported in the current release (minted 1.7). There is a \mintinline command in the development version at https://github.com/gpoore/minted. The development version is currently at 2.0-alpha2, but based on my own use and reports from others, it should be quite stable.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .