Fixing print page count

This commit is contained in:
Igal Tabachnik 2018-09-14 00:12:06 +03:00
parent 3a30abaf3f
commit bb51c39a79
4 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,7 @@
% !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.

View File

@ -1,4 +1,7 @@
% !TEX root = ctfp-reader.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.

View File

@ -1,8 +1,10 @@
\includepdf[scale=0.92]{coverpage.pdf}
\input{copyright}
\frontmatter
\afterpage{\blankpage}
\frontmatter
\tableofcontents
\afterpage{\blankpage}
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
@ -114,10 +116,14 @@
\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}
\addcontentsline{toc}{chapter}{Acknowledgments}
\input{acknowledgments}
@ -129,5 +135,7 @@
\chapter*{Copyleft notice} % Missing Label -Jared
\addcontentsline{toc}{chapter}{Copyleft notice}
\input{free-software}
\@openrighttrue\makeatother
\afterpage{\blankpage}
\input{postamble}

View File

@ -90,6 +90,13 @@
linkcolor=LinkRed,
urlcolor=LinkRed,
}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage{subfiles}
\makeatletter
\let\org@subfile\subfile