2
votes
Accepted
How to make minted work inside custom environments?
Use a custom environment and not a macro:
% !TeX program = txs:///arara
% arara: pdflatex: {synctex: on, interaction: nonstopmode, shell: yes}
\documentclass{beamer}
\usepackage{minted}
\...
1
vote
Accepted
Placing two code snippets next to each other with minted with a headline over each snippet causes box shift
I finally found the problem.
The package mathpazo caused the shift of the minipage-boxes.
No idea why, I will just leave the package out - but if someone wants to investigate this, please answer in ...
1
vote
Toggle to hide minted environment
So after some good nights' sleep, I realized I could just move the \if@answers...\fi outside of the environment definition, and define the answercode environment for both @answers and @noanswers. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
minted × 993listings × 147
code × 77
tcolorbox × 74
pygments × 62
beamer × 56
python × 41
environments × 38
highlighting × 38
xetex × 36
captions × 35
verbatim × 35
pdftex × 28
errors × 27
tikz-pgf × 26
sourcecode × 26
color × 25
syntax-highlighting × 25
luatex × 22
floats × 21
macros × 20
fonts × 18
page-breaking × 18
unicode × 18
shell-escape × 17