Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am wondering if it's possible to add a bit code in latex, perhaps by using some kind of escape character, to mark parts of the minted environment that should be executed as regular latex code?

share|improve this question
do you mean similar to escapeinside from the listings package? – cmhughes Jan 18 at 0:39
@cmhughes: Yes. Or some way of achieving the same goal in the minted environment, even if it doesn't involve escaped text. – Henry B. Jan 18 at 0:51
minted has texcl and mathescape options which are used as their equivalents in listings. Are these enough for you? – hpesoj626 Jan 18 at 0:52
1  
Unfortunately these are only used in comments. I can't see an escapeinside equivalent in the manual. – hpesoj626 Jan 18 at 1:02
@hpesoj626 I guess the problem is that minted leaves the parsing to another tool (Pygments), and this makes dropping out of the parser to do formatting 'hard'. – Joseph Wright Jan 18 at 6:58
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.