I am using minted package to display source code from an external file using the inputminted command but I don't want to display the whole file but a certain line number if possible, say from 2 to 15. Is that possible?


\inputminted has two optional arguments, firstline and lastline, that do exactly as the name suggests.

In your case you would do:

  • +1 for your suggestion....and for my reopen of the my question (very interesting), different \mathcal J. – Sebastiano Apr 26 '18 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.