diff --git a/preambles/document_default.tex b/preambles/document_default.tex index beb0fe3..628294b 100644 --- a/preambles/document_default.tex +++ b/preambles/document_default.tex @@ -100,4 +100,7 @@ \newcommand*{\fullref}[1]{% % combine ref and nameref into one command with one link \hyperref[{#1}]{\ref*{#1}~\nameref*{#1}}% } +% +\newenvironment{code}% % define a new environment for code listings with minted inside +{\captionsetup{type=listing}}{} % vim:fileencoding=utf-8:ts=4:syntax=tex:colorcolumn=81:noexpandtab