fvextra icon indicating copy to clipboard operation
fvextra copied to clipboard

save \verbatim in (env)macro like a environ package

Open pablgonz opened this issue 7 years ago • 2 comments

Hi, how are you, first of all, thank you very much for the great work with the fvextra package. I have an idea in mind that maybe you could add to this great package.

In several of the packages created by you use a macro to save content using \scantokens, in some forum responses like in: (https://tex.stackexchange.com/questions/328517/understanding-makeatletter-with-minted-minipage-colorboxes) (https://tex.stackexchange.com/questions/373647/collect-contents-of-an-environment-that-contains-verbatim-content)

it avoids using auxiliary files or boxes to store \verbatim content in an environment. As the environ package does not support verbatim (inline/env) content (you can use \cprotect, but it fails with [opt]) . You could add a functionality like that of the environ package but that supports verbatim using \ scantokes, something like \NewEnvironv{name}[N. args][opt. arg]{macro}[final code] whit \BODYv by default? (v for verbatimized)

Greetings. PS: Sorry if my English is not very clear, it's not my native language :)

pablgonz avatar Oct 26 '17 01:10 pablgonz

I can see how that would be a useful feature. I've run into issues with environ myself occasionally. I'll see if that's something I can add the next time I'm working on fvextra, but that will probably be a while.

gpoore avatar Oct 28 '17 12:10 gpoore

Thank you very much for the answer, I think it will be a very nice feature. The best Pablo

pablgonz avatar Oct 28 '17 22:10 pablgonz