Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson-niu committed Jul 15, 2024
1 parent 8a9f8a6 commit 28c2565
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 142 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
Loading

0 comments on commit 28c2565

Please sign in to comment.