39 lines
576 B
TeX
Raw Permalink Normal View History

2022-05-19 09:11:50 +02:00
%
% Custom environments
%
% Code frame
\DefineVerbatimEnvironment{code}{Verbatim}
{
tabsize=4,
samepage=true,
frame=lines,
numbers=left,
}
% Nonpagebreaking chapters
\newenvironment{npbrChap}
{
\begingroup
\let\clearpage\relax
}
{
\endgroup
}
% Nicely placed image environment
% Features:
% Margin-top
% placed exactly where it's put in the source code
% image and caption always stays on same page
\newenvironment{nicepic}
{
\begin{minipage}{\textwidth}
\vspace{7.5mm}
\begin{center}
}
{
\end{center}
\end{minipage}
}