2025-01-18 15:21:52 +01:00

39 lines
576 B
TeX

%
% 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}
}