You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last year when I wrote my bachelor's degree minted was of great use. But as the tex.stackexchange.com question I asked explains, the code snippet doesn't keep its good looks when centering it. Could an option be added to center the code like the answer presents?
For the sake of example completion, and unless this feature isn't added, here is the current environment I use:
I'm afraid this isn't something that can be added easily. The code you have works for your case and gives nice results. However, adding something like this to minted would be complicated, because it would need to cooperate with all of the other minted options. Currently, it doesn't work with line numbering options, line breaking options, or page breaking, and there are probably lots of other incompatibilities.
Ultimately, the easiest way to get this feature would be to create a new verbatim environment that extends fancyvrb. That could get relatively technical. What we really need is a new verbatim package that provides lots of new options, including things like what you are suggesting.
Just chiming in here that having a "natural width" option would be very much appreciated. Especially when using a background colour, the code snippet looks very weird spanning the whole page when it could occupy the center 30% instead.
The abovequoted workaround also does not work for me...
Last year when I wrote my bachelor's degree minted was of great use. But as the tex.stackexchange.com question I asked explains, the code snippet doesn't keep its good looks when centering it. Could an option be added to center the code like the answer presents?
For the sake of example completion, and unless this feature isn't added, here is the current environment I use:
and how it looks:
The text was updated successfully, but these errors were encountered: