| | +% Lian Tze LIM (liantze@gmail.com) |
| | +% 6 July 2013 |
| | + |
| | +\input{font/Antykwa} |
| | +\input{layout/topbottom} |
| | +\input{color/TrickOrTreat} |
| | +\input{list/ghouls} |
| | +\input{headfoot/NightPageNo} |
| | +\input{toc/leftaligned} |
| | +\input{catidx/topcateg} |
| | +\input{flatidx/flatletter} |
| | + |
| | +\patchcommand{\makecrpage}{}{Uses icons from \url{http://garmahis.com/} and \url{http://inventicons.com/}.} |
| | + |
| | +\newcommand{\BlackCat}{\includegraphics[height=1.2em]{theme/blackcat-small}} |
| | +\newcommand{\StyleHeading}[1]{\headingmarker\ \bfseries #1\vspace*{-1ex}% |
| | +\tikz\shade[left color=\primarycolor!60!white, right color=white] rectangle (\linewidth,2pt);} |
| | + |
| | + |
| | +\RequirePackage{everypage} |
| | + |
| | +\AddEverypageHook{% |
| | + \iftoggle{print}{% |
| | + \checkoddpage\strictpagecheck% |
| | + \ifoddpage |
| | + \tikz[overlay,remember picture]\draw[\primarycolor,line width=6pt] ([xshift=-.45in,yshift=-.5in]current page.north east) rectangle ([xshift=.95in,yshift=.57in]current page.south west); |
| | + \else |
| | + \tikz[overlay,remember picture]\draw[\primarycolor,line width=6pt] ([xshift=-.95in,yshift=-.5in]current page.north east) rectangle ([xshift=.45in,yshift=.57in]current page.south west); |
| | + \fi |
| | + }{% |
| | + \tikz[overlay,remember picture]\draw[\primarycolor,line width=6pt] ([xshift=-.45in,yshift=-.5in]current page.north east) rectangle ([xshift=.95in,yshift=.57in]current page.south west); |
| | + } |
| | +} |
| | + |
| | +\setcolsepandrule{3em}{6pt} |
| | +\renewcommand{\columnseprulecolor}{\color{\tertiarycolor}} |
| | +\renewcommand{\recipesize}{\Huge} |
| | +\renewcommand{\recipestyle}{%\tikz[overlay,remember picture]\node[anchor=north] at ([xshift=-1in,yshift=-.42in]current page.north east) {\includegraphics[width=1em]{theme/spider}}; |
| | + \iftoggle{print}{% |
| | + \checkoddpage\strictpagecheck% |
| | + \ifoddpage |
| | + \tikz[overlay,remember picture]\node[anchor=north] at ([xshift=-1in,yshift=-.42in]current page.north east) {\includegraphics[width=1em]{theme/spider}}; |
| | + \else |
| | + \tikz[overlay,remember picture]\node[anchor=north] at ([xshift=1in,yshift=-.42in]current page.north west) {\includegraphics[width=1em]{theme/spider}}; |
| | + \fi |
| | + }{% |
| | + \tikz[overlay,remember picture]\node[anchor=north] at ([xshift=-1in,yshift=-.42in]current page.north east) {\includegraphics[width=1em]{theme/spider}}; |
| | + } |
| | +\centering\bfseries\includegraphics[width=2.5em]{theme/Hat}\\[-.5em]} |
| | +\renewcommand{\headingsize}{\Large} |
| | +\renewcommand{\headingstyle}{\StyleHeading} |
| | + |
| | + |
| | +\providecommand{\framepic}[1]{% |
| | +\noindent\raggedright% |
| | +\begin{tikzpicture} |
| | +\node[inner sep=1.5em,draw=gray!60,fill=\primarycolor, blur shadow={shadow blur steps=5,shadow xshift=1ex,shadow yshift=-1ex,shadow opacity=20,shadow blur radius=1ex}] (photo) {\includegraphics[width=.8\linewidth]{#1}}; |
| | +%\node[inner sep=0pt,font=\huge,anchor=north west,text=\darkhighlight,yshift=1.5em,xshift=-1.5em] (SE) at (photo.south east) {\adforn9}; |
| | +%\node[inner sep=0pt,font=\large,anchor=east,text=\darkhighlight] at (SE.west) {\adfflourishleftdouble}; |
| | +%\node[inner sep=0pt,font=\large,anchor=west,text=\darkhighlight,rotate=90] at (SE.north) {\adfflourishrightdouble}; |
| | +\end{tikzpicture} |
| | +} |
| | + |
| | +\makeatletter |
| | +\renewcommand{\insetphoto}[2][]{% |
| | +\parsephotocitation{#1} |
| | +\framepic{#2}\par\bigskip} |
| | +\makeatother |
| | |