initial coomit
This commit is contained in:
38
environments.tex
Normal file
38
environments.tex
Normal file
@@ -0,0 +1,38 @@
|
||||
%
|
||||
% 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}
|
||||
}
|
||||
Reference in New Issue
Block a user