From 2031e300cf6b97c65bc774202b0e3e53297796ca Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Mon, 28 Sep 2020 12:03:36 +0200 Subject: [PATCH] preambles/document_default: Import new code environment This snippet was copied from https://tex.stackexchange.com/a/53540, written by user https://tex.stackexchange.com/users/13971/schlamar and licensed under CC BY-SA 4.0 International. --- preambles/document_default.tex | 3 +++ 1 file changed, 3 insertions(+) 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