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

Adding a “boxedminted” environment? #215

Open
eg9 opened this issue Sep 14, 2018 · 2 comments
Open

Adding a “boxedminted” environment? #215

eg9 opened this issue Sep 14, 2018 · 2 comments

Comments

@eg9
Copy link

eg9 commented Sep 14, 2018

A question in TeX.StackExchange made me wonder if you deem interesting to add a boxedminted environment that uses BVerbatim instead of Verbatim and would be useful to move around a minted block.

\newenvironment{boxedminted}[2][]
 {\VerbatimEnvironment
  \RecustomVerbatimEnvironment{Verbatim}{BVerbatim}{}%
  \begin{minted}[#1]{#2}}
 {\end{minted}}

I did a few experiments and it seems to work well, but you surely have material for more extensive testing.

@lucc
Copy link

lucc commented Jul 28, 2019

There is another question on Tex.SE where the same code has been suggested in order to center a listing on a page. A user found out that linenumbers did not work. I also noticed that autogobble did not work and that the offical minted docs say not to mess with BVerbatim.

Do linenumbers and autogobble work with your boxedminted?

@h-2
Copy link

h-2 commented Sep 11, 2019

see also #133

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

No branches or pull requests

3 participants