Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pablgonz opened this issue Oct 26, 2017 · 2 comments
Open

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

pablgonz opened this issue Oct 26, 2017 · 2 comments

Comments

@pablgonz
Copy link

pablgonz commented Oct 26, 2017

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 pablgonz changed the title save \verbatim in (env)macro save \verbatim in (env)macro like a environ package Oct 26, 2017
@gpoore
Copy link
Owner

gpoore commented Oct 28, 2017

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.

@pablgonz
Copy link
Author

pablgonz commented Oct 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants