Skip to content

Commit

Permalink
Merge pull request #12 from nelson-niu/cup
Browse files Browse the repository at this point in the history
Make CUP version main
  • Loading branch information
nelson-niu authored Jul 17, 2024
2 parents da54b3a + 93e1eaf commit eeaa3f7
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 216 deletions.
96 changes: 21 additions & 75 deletions Book-Poly.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\documentclass[11pt]{memoir}
\documentclass[10pt]{memoir}

\settrims{0pt}{0pt} % page and stock same size
\settypeblocksize{*}{34.5pc}{*} % {height}{width}{ratio}
\settypeblocksize{190mm}{110mm}{*} % {height}{width}{ratio}
\setlrmargins{*}{*}{1} % {spine}{edge}{ratio}
\setulmarginsandblock{1in}{1in}{*} % height of typeblock computed
\setheadfoot{\onelineskip}{2\onelineskip} % {headheight}{footskip}
Expand Down Expand Up @@ -31,8 +31,7 @@
\usepackage{subfiles}
\usepackage[backend=biber, backref=true, maxbibnames = 10, style = alphabetic]{biblatex}
\usepackage{xr-hyper}
\usepackage[bookmarks=true, colorlinks=true, linkcolor=blue!50!black,
citecolor=orange!50!black, urlcolor=orange!50!black, pdfencoding=unicode]{hyperref}
\usepackage[bookmarks=true,hidelinks,pdfencoding=unicode]{hyperref}
\usepackage[capitalize]{cleveref}

% Multirow tables
Expand All @@ -49,11 +48,8 @@
\usepackage{varwidth}
\usepackage[prefix=tikzsym]{tikzsymbols}
\usepackage{makecell}%database table thickness
%\usepackage{graphicx}
%\usepackage[all]{xy}
\usepackage{multirow}


% Fonts
\usepackage{amssymb}
\usepackage{newpxtext}
Expand All @@ -63,20 +59,12 @@
\usepackage{dutchcal}
\usepackage{fontawesome}

% For matrices with labeled columns and rows
% \usepackage{kbordermatrix}% http://www.hss.caltech.edu/~kcb/TeX/kbordermatrix.sty
%\usepackage{accents}
%\usepackage{eucal}

% MathVersion kludge
\DeclareMathVersion{normal2}

% For external graphics.
\graphicspath{graphics/}

%\usepackage{changepage} %indented paragraphs in solutions
%\usepackage{showkeys} %for drafting; prints labels in margin

%-------- Package setup --------%

% cleveref %
Expand All @@ -99,15 +87,6 @@
% footnote
\makesavenoteenv{tabular}

% minted
%\newenvironment{agda}
% {\VerbatimEnvironment
% \begin{minted}[escapeinside=??, mathescape=true, frame=single, framesep=5pt, tabsize=1
% ]{Agda}}
% {\end{minted}}



% tikz %
\usetikzlibrary{
cd,
Expand Down Expand Up @@ -141,10 +120,6 @@
}
\end{tikzpicture}}}

%\usepackage{circuitikz}


% mdframed/tablefootnote%
% This makes \tablefootnote allow construction of footnotes that appear at bottom of page instead of inside frame

\makeatletter
Expand All @@ -167,51 +142,46 @@

% Colored box background colours

\colorlet{theoremcolor}{white!92!blue}
\colorlet{definitioncolor}{white!92!purple}
\colorlet{examplecolor}{white!91!green}
\colorlet{exercisecolor}{white!96!green}
\colorlet{theoremcolor}{white}
\colorlet{definitioncolor}{white}
\colorlet{examplecolor}{white}
\colorlet{exercisecolor}{white}


\mdfdefinestyle{theoremframe}{
linewidth=0pt,
%linecolor=blue,
backgroundcolor=theoremcolor,
linewidth=1pt,
roundcorner=6pt,
nobreak=true,
leftmargin=0,
innerleftmargin=0,
innerleftmargin=9pt,
rightmargin=0,
innerrightmargin=0,
innerrightmargin=9pt,
}

\mdfdefinestyle{definitionframe}{
linewidth=0pt,
%linecolor=blue,
backgroundcolor=definitioncolor,
linewidth=1pt,
roundcorner=6pt,
leftmargin=0,
innerleftmargin=0,
innerleftmargin=9pt,
rightmargin=0,
innerrightmargin=0,
innerrightmargin=9pt,
}

\mdfdefinestyle{exampleframe}{
linewidth=0pt,
backgroundcolor=examplecolor,
linewidth=1pt,
roundcorner=6pt,
leftmargin=0,
innerleftmargin=0,
innerleftmargin=9pt,
rightmargin=0,
innerrightmargin=0,
innerrightmargin=9pt,
}

\mdfdefinestyle{exerciseframe}{
linewidth=0pt,
backgroundcolor=exercisecolor,
linewidth=1pt,
leftmargin=0,
innerleftmargin=0,
innerleftmargin=9pt,
rightmargin=0,
innerrightmargin=0,
innerrightmargin=9pt,
}

\newtheoremstyle{plain}
Expand Down Expand Up @@ -258,30 +228,6 @@
\newcommand{\nolisttopbreak}{\nobreak\@afterheading}
\makeatother

% \newcounter{solcounterlocal}[section]
% \newcounter{solcounterglobal}

% \newcommand{\sol}[4][noprint]{

% \stepcounter{solcounterlocal}\stepcounter{solcounterglobal}

% \noindent\ignorespacesafterend\emph{Solution to} \cref{#2}.%
% \nopagebreak%
% \ifthenelse{\equal{#1}{print}}{
% \nopagebreak%
% \begin{mdframed}[backgroundcolor=examplecolor,linewidth=0pt]%
% #3%
% \end{mdframed}%
% \nopagebreak
% }{}%
% \nolisttopbreak
% \begin{description}[leftmargin=2.5ex,itemindent=0pt,topsep=0ex,nosep]
% \item\nopagebreak
% #4
% \end{description}
% \bigskip
% }

\Newassociation{solution}{Sol}{solutions}

\renewenvironment{Sol}[1]
Expand Down Expand Up @@ -672,7 +618,7 @@
\vspace{2in}
\begin{center}
\begin{tabular}{lll}
\LARGE Nelson Niu&~\hspace{.75in}~&\LARGE David I. Spivak\\
\LARGE Nelson Niu&~\hspace{.5in}~&\LARGE David I. Spivak\\
\large University of Washington&&\large Topos Institute\\
\large Seattle, WA&&\large Berkeley, CA
\end{tabular}
Expand Down
1 change: 1 addition & 0 deletions P0-Preface.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

%------------ Chapter ------------%
\chapter*{Preface}\label{chapter.0}
\addcontentsline{toc}{chapter}{Preface}

\begin{quote}
The proposal is also intended to [serve] equally as a foundation for the academic, intellectual, and technological, on the one hand, and for the curious, the moral, the erotic, the political, the artistic, and the sheerly obstreperous, on the other.\\
Expand Down
Loading

0 comments on commit eeaa3f7

Please sign in to comment.