Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git

Page border is now tied to page number style.

Author liantze <email>
Date 2013-08-11 00:07:50 GMT+0800
Commit 41a45b6dea8edb4ec72e1babb1058b74d6ab2407
Parent 72b1cbb
Delta 15 lines added, 20 lines removed, 5-line decrease
headfoot/NightPageNo.tex
-\makeevenhead{headings}{}{}{}
-\makeoddhead{headings}{}{}{}
+\makeevenhead{headings}{%
+ \iftoggle{print}{
+ \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);
+ }{
+ \tikz[overlay,remember picture]\draw[\primarycolor,line width=6pt] ([xshift=-.45in,yshift=-.5in]current page.north east) rectangle ([xshift=.45in,yshift=.57in]current page.south west);}
+}{}{}
+\makeoddhead{headings}{%
+ \iftoggle{print}{
+ \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);
+ }{
+ \tikz[overlay,remember picture]\draw[\primarycolor,line width=6pt] ([xshift=-.45in,yshift=-.5in]current page.north east) rectangle ([xshift=.45in,yshift=.57in]current page.south west);}
+}{}{}
\newlength{\footbarskip}
\newlength{\foottextskip}
-\setlength{\footbarskip}{-1.2ex}
-\setlength{\foottextskip}{-.25ex}
+\iftoggle{print}{\setlength{\footbarskip}{-1.2ex}}{\setlength{\footbarskip}{2ex}}
+\iftoggle{print}{\setlength{\foottextskip}{-.25ex}}{\setlength{\foottextskip}{3ex}}
\newcommand{\NightBand}{\raisebox{\footbarskip}{\rule{\textwidth}{1.75em}}}
\newcommand{\ScaryNightPageNum}{%
\color{\brighthighlight}\bfseries%
- \raisebox{\foottextskip}{\includegraphics[height=.95em]{theme/flyingbat}} \thepage\ \raisebox{\foottextskip}{\includegraphics[height=.9em]{theme/Moon}}%
+ \raisebox{\foottextskip}{\includegraphics[height=.95em]{theme/flyingbat}} \raisebox{\foottextskip}{\thepage}\ \raisebox{\foottextskip}{\includegraphics[height=.9em]{theme/Moon}}%
}
\makeevenfoot{plain}{\NightBand}{%
theme/Halloween.tex
-\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=.45in,yshift=.57in]current page.south west);
- }
-}
-
\setcolsepandrule{3em}{6pt}
\renewcommand{\columnseprulecolor}{\color{\tertiarycolor}}