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.
This commit is contained in:
Nils Freydank 2020-09-28 12:03:36 +02:00
parent 8301bf8261
commit 2031e300cf
No known key found for this signature in database
GPG Key ID: BC5DC2998AAD2B21

View File

@ -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