Skip to content

Commit

Permalink
Tweaking final page count and margins
Browse files Browse the repository at this point in the history
  • Loading branch information
hmemcpy committed Sep 17, 2018
1 parent 9f1e4df commit cf7e20a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/cover/blurb.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
% !TEX root = cover2.tex
% !TEX root = cover-blurb.tex
% Blurb on back cover

{
\fontsize{16}{18.5}\selectfont
\fontsize{16}{18}\selectfont
\lettrine[lhang=0.17]{C}{ategory Theory}
is one of the most abstract branches of mathematics. It is usually taught to
graduate students after they have mastered several other branches of mathematics,
Expand Down
18 changes: 8 additions & 10 deletions src/cover/cover-blurb.tex
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
\documentclass[
coverheight=9.249in,
coverwidth=6.334in,
spinewidth=1.194in,
coverwidth=6.319in, % (pagesize - spinewidth) / 2
spinewidth=1.8in,
bleedwidth=0.306in,
11pt,
flapwidth=0pt,
markthick=0pt,
marklength=0pt,
]{bookcover}

Expand Down Expand Up @@ -69,22 +67,22 @@
\bookcovercomponent{normal}{back}{%
\begin{minipage}[b][\coverheight][t]{\coverwidth}
\begin{center}
\includegraphics[width=.9\coverwidth]{bunnies}
\begin{minipage}[t]{.9\coverwidth}
\includegraphics[width=.8\coverwidth]{bunnies}
\begin{minipage}[t]{.8\coverwidth}
\input{blurb}
\vspace{.5cm}
\end{minipage}

\begin{minipage}{.9\textwidth}
\begin{minipage}{.85\textwidth}
\rule{\textwidth}{0.4pt}

\begin{tabular}[h]{p{4cm} p{12cm}}
\begin{tabular}[h]{p{4cm} p{\textwidth}}
\bartosz
&
\vspace{5pt}
\begin{minipage}[b]{.6\coverwidth}
\begin{minipage}[b]{.55\coverwidth}
\fontsize{11pt}{1.4em}\selectfont\textit{Category Theory for Programmers}
is a compilation of blog posts by Bartosz Milewski, originally at bartoszmilewski.com.\\
is a compilation of blog posts by Bartosz Milewski, at bartoszmilewski.com.\\
Edited by Igal Tabachnik. Licenced under CC BY-SA 4.0.
\end{minipage}
\end{tabular}
Expand Down
3 changes: 0 additions & 3 deletions src/ctfp-print.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
% !TEX root = ctfp-print.tex
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8 Unicode

% This is a main LaTeX file for generating the CTFP book
% for printing in US-trade format, suitable for binding.
% The links are black in this version.
Expand Down
6 changes: 1 addition & 5 deletions src/ctfp.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
\includepdf[scale=0.92]{coverpage.pdf}
\input{copyright}
\afterpage{\blankpage}

\frontmatter
\tableofcontents
\afterpage{\blankpage}

\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
Expand Down Expand Up @@ -116,12 +114,10 @@ \chapter{Monads, Monoids, and Categories}\label{monads-monoids-categories}
\subfile{content/3.15/Monads, Monoids, and Categories}

\backmatter
\afterpage{\blankpage}

\appendix
\addcontentsline{toc}{part}{Appendices}
\input{index}
\afterpage{\blankpage}

\makeatletter\@openrightfalse
\chapter*{Acknowledgments}\label{acknowledgments}
Expand All @@ -132,7 +128,7 @@ \chapter*{Colophon}\label{colophon}
\addcontentsline{toc}{chapter}{Colophon}
\input{colophon}

\chapter*{Copyleft notice} % Missing Label -Jared
\chapter*{Copyleft notice}\label{copyleft}
\addcontentsline{toc}{chapter}{Copyleft notice}
\input{free-software}
\@openrighttrue\makeatother
Expand Down
2 changes: 1 addition & 1 deletion src/opt-print-ustrade.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TEX root = ctfp-print.tex

\def\OPTmodes{twoside,openright}
\def\OPTmodes{twoside,final,openright}

% PAGE FORMAT
%
Expand Down
2 changes: 1 addition & 1 deletion src/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
inner=\OPTinnermargin,
outer=\OPToutermargin,
bindingoffset=\OPTbindingoffset,
vcentering, hcentering
centering
]{geometry}

% New line height: 1.05 * 1.2 = 1.26
Expand Down

0 comments on commit cf7e20a

Please sign in to comment.