fvextra
fvextra copied to clipboard
save \verbatim in (env)macro like a environ package
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 :)
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.
Thank you very much for the answer, I think it will be a very nice feature. The best Pablo