瀏覽代碼

remove use of crop package to fix page size

Jeremy Siek 3 年之前
父節點
當前提交
0b6aeed067
共有 2 個文件被更改,包括 15 次插入14 次删除
  1. 9 8
      TimesAPriori_MIT.cls
  2. 6 6
      book.tex

+ 9 - 8
TimesAPriori_MIT.cls

@@ -21,13 +21,14 @@
 \setlength{\paperheight}{9truein}%
 \setlength{\paperwidth}{6truein}%
 
-\DeclareOption{draft}{\PassOptionsToPackage{draft}{graphicx}}
-\DeclareOption{a4paper}{\PassOptionsToPackage{a4}{crop}}
-\DeclareOption{centre}{\PassOptionsToPackage{center}{crop}}
-\DeclareOption{crop}{\PassOptionsToPackage{cam}{crop}\global\@cropmarksontrue}
-\DeclareOption{nocrop}{\PassOptionsToPackage{off}{crop}\global\@cropmarksonfalse}
-\DeclareOption{info}{\PassOptionsToPackage{info}{crop}}
-\DeclareOption{noinfo}{\PassOptionsToPackage{noinfo}{crop}}
+%% The crop package seems to screw up the page geometry. -Jeremy
+%%\DeclareOption{draft}{\PassOptionsToPackage{draft}{graphicx}}
+%% \DeclareOption{a4paper}{\PassOptionsToPackage{a4}{crop}}
+%% \DeclareOption{centre}{\PassOptionsToPackage{center}{crop}}
+%% \DeclareOption{crop}{\PassOptionsToPackage{cam}{crop}\global\@cropmarksontrue}
+%% \DeclareOption{nocrop}{\PassOptionsToPackage{off}{crop}\global\@cropmarksonfalse}
+%% \DeclareOption{info}{\PassOptionsToPackage{info}{crop}}
+%% \DeclareOption{noinfo}{\PassOptionsToPackage{noinfo}{crop}}
 %%Trim Sizes%%
 \DeclareOption{6x9}{\global\sixbyninetrue}
 \DeclareOption{7x10}{\global\sevenbytentrue}
@@ -40,7 +41,7 @@
 %%Numbers like Theorem 1.1, Lemma 1.2, etc.
 \DeclareOption{thmnumcont}{\global\thmcountconttrue}%
 
-\ExecuteOptions{a4paper,crop,centre,info}
+%\ExecuteOptions{a4paper,crop,centre,info}
 
 \ProcessOptions
 

+ 6 - 6
book.tex

@@ -1,4 +1,4 @@
-\documentclass[7x10,nocrop]{TimesAPriori_MIT}%%7x10
+\documentclass[7x10]{TimesAPriori_MIT}%%7x10
 
 % TODO:
 % move binary subtraction from Lif to Lint
@@ -307,8 +307,8 @@ skipping Chapter~\ref{ch:Lwhile} (loops) and including
 Chapter~\ref{ch:Llambda} (lambda). The course can be adapted to
 dynamically typed languages by including Chapter~\ref{ch:Ldyn}.
 %
-\python{A course that emphasizes object-oriented languages would
-  include Chapter~\ref{ch:Lobject}.}
+%% \python{A course that emphasizes object-oriented languages would
+%%   include Chapter~\ref{ch:Lobject}.}
 %
 Figure~\ref{fig:chapter-dependences} depicts the dependencies between
 chapters. Chapter~\ref{ch:Lfun} (functions) depends on
@@ -361,7 +361,7 @@ Lowell, and the University of Vermont.
   \node (C6) at (8,0) {\small Ch.~\ref{ch:Lfun} Functions};
   \node (C9) at (0,-1.5) {\small Ch.~\ref{ch:Lwhile} Loops};
   \node (C8) at (4,-1.5) {\small Ch.~\ref{ch:Ldyn} Dynamic};
-  \node (CO) at (0,-3) {\small Ch.~\ref{ch:Lobject} Objects};
+%  \node (CO) at (0,-3) {\small Ch.~\ref{ch:Lobject} Objects};
   \node (C7) at (8,-1.5) {\small Ch.~\ref{ch:Llambda} Lambda};
   \node (C10) at (4,-3) {\small Ch.~\ref{ch:Lgrad} Gradual Typing};
   \node (C11) at (8,-3) {\small Ch.~\ref{ch:Lpoly} Generics};
@@ -377,7 +377,7 @@ Lowell, and the University of Vermont.
   \path[->] (C4) edge [above] node {} (C9);
   \path[->] (C7) edge [above] node {} (C10);
   \path[->] (C8) edge [above] node {} (C10);
-  \path[->] (C8) edge [above] node {} (CO);
+%  \path[->] (C8) edge [above] node {} (CO);
   \path[->] (C10) edge [above] node {} (C11);
 \end{tikzpicture}
 \fi}
@@ -402,7 +402,7 @@ excellent resources for learning Python~\citep{Lutz:2013vp,Barry:2016vj,Sweigart
 The support code for this book is in the github repository at
 the following location:
 \if\edition\racketEd
-\begin{center}\small
+\begin{center}\small\texttt
   \url{https://github.com/IUCompilerCourse/public-student-support-code}
 \end{center}
 \fi