This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
Praxisbericht-Template/extra/utils.tex

23 lines
878 B
TeX

% make the @ symbol available as character for command names
% requried for some commands to work
\makeatletter
% lorem ipsum constant
% used for testing purposes only
\def\loremipsum {
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
}
% apply this as scaling for images to make them fit available space
\def\ScaleIfNeeded{
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
% qouted text
\newcommand{\gqq}[1]{\glqq #1\grqq}
\makeatother