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:
parent
8301bf8261
commit
2031e300cf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user