diff --git a/stratum0doc.sty b/stratum0doc.sty index 06c21e0aeaeb5835801deb4e10d7786857a5fab8..e5fdb6d8a9ff8eb1e9175fcf55cfd19485781310 100644 --- a/stratum0doc.sty +++ b/stratum0doc.sty @@ -90,6 +90,32 @@ \newcommand{\question}[1]{\textbf{Frage:} #1 \\} \newcommand{\answer}[1]{\textbf{Antwort:} #1} +% inclusion of single PDF pages +% usage: \includepdfpage{pdf file}{page number} +% set length \includepdfpagewidth to control width of pages +\newlength{\includepdfpagewidth} +\setlength{\includepdfpagewidth}{0.75\textwidth} +\newcommand{\includepdfpage}[2]{% + \begin{center} + \fbox{ + \includegraphics[% + width=\includepdfpagewidth,% + page=#2,% + bb=29pt 28pt 764pt 591pt,% + clip=true% + ]{#1}% + }% + \end{center}% +} +% notes for included pdf pages. uses \includepdfpagewidth. +\newcommand{\pdfpagenote}[1]{% + \begin{center} + \begin{minipage}{\includepdfpagewidth} + \vspace{-.5\baselineskip} + \footnotesize{#1} + \end{minipage} + \end{center}% +} \RequirePackage{fancyhdr} \RequirePackage{lastpage} @@ -100,5 +126,8 @@ \let\mydate\@date% \myfancysetup{\mytitle}{\mydate}% } + + + \makeatother % vim: set tw=80 et sw=2 ts=2: