Commit 365c39cd authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Add O'Reilley-style-Cover, unfinished


Signed-off-by: Adrian C. Hinrichs's avatarAdrian Hinrichs <adrian.hinrichs@rwth-aachen.de>
parent a02032a6
\documentclass[twoside]{HomeworkAssignment}
\usepackage{lipsum}
\usepackage{OReilleyCover}
\author{Adrian C. Hinrichs Matr. 74656}
\tutorium{\"Ubungsgruppe 42}
\kurs{Analysis f\"ur Informatiker}
......
File added
\documentclass[a4paper,twoside,frame]{Article}
%\usepackage{showframe}
\usepackage{lipsum}
\usepackage{OReilleyCover}
\author{Max Mustermann}
\title{Create\\ beautiful\newline Covers}
\date{\today}
\begin{document}
\maketitle
\lipsum
\end{document}
\ProvidesPackage{OReilleyCover}[2017/04/25]
\RequirePackage{tikz}
\RequirePackage{relsize}
\usetikzlibrary{calc}
\newcommand{\@styleColor}{green}
\newcommand{\@titleColor}{white}
\newcommand{\@titleScale}{4}
\newcommand{\titleScale}[1]{\renewcommand{\@titleScale}{#1}}
\newcommand{\styleColor}[1]{\renewcommand{\@styleColor}{#1}}
\newcommand{\titleColor}[1]{\renewcommand{\@titleColor}{#1}}
\renewcommand{\maketitle}{
\thispagestyle{empty}
\begin{titlepage}
\begin{tikzpicture}[overlay,remember picture]
\coordinate (SW) at (current page.south west);
\coordinate (SE) at (current page.south east);
\coordinate (NW) at (current page.north west);
\coordinate (NE) at (current page.north east);
\coordinate (S) at (current page.south);
\coordinate (N) at (current page.north);
\coordinate (E) at (current page.east);
\coordinate (W) at (current page.west);
% commented out because it is not necessary to compile,
% but one should note that the background is here,
% because of overlapping parts.
% \node at ($(current page.south west)$){
% \begin{tikzpicture}[overlay]
% % \includegraphics[width=\paperwidth]{./figures/cover_spaceshuttle.jpg}
% \end{tikzpicture}};
\draw[\@styleColor,fill] ($(NW)!0.1!(N)$) rectangle ($(SE)!0.1!(S)!0.985!(NE)!0.1!(N)$);
\node at ($(E)$) [execute at begin node=\setlength{\baselineskip}{2.5em},rectangle,fill=\@styleColor,text width=.1875\paperwidth,anchor=north east,scale=\@titleScale,align=left,text=\@titleColor] {\Huge{\@title}};
\end{tikzpicture}
\end{titlepage}
\newpage
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment