I have to write a small demonstration of some features of my package. I was thinking about doing something like:







But this isn't working, because of listings can't be used inside commands. Any nice solution? (Would like to have a left right comparison between source and result)

And is there some way to enclose this so that nothing outside is affected?


You can use and set the listings parameter in the usual way:




enter image description here

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.