This commit is contained in:
Andreaierardi 2020-05-12 10:55:02 +02:00
parent a02921d307
commit 0a97f43558
215 changed files with 20472 additions and 0 deletions

View File

@ -0,0 +1,13 @@
@book
{
AM69,
AUTHOR = {Atiyah, M. F. and Macdonald, I. G.},
TITLE = {Introduction to commutative algebra},
PUBLISHER = {Addison-Wesley Publishing Co., Reading, Mass.-London-Don
Mills, Ont.},
YEAR = {1969},
PAGES = {ix+128},
MRCLASS = {13.00},
MRNUMBER = {0242802 (39 \#4129)},
MRREVIEWER = {J. A. Johnson},
}

View File

@ -0,0 +1,6 @@
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[shading = ball] (0, 0) circle (2);
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,7 @@
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[shading = ball] (0, 0) circle (2);
\draw[shading = ball] (5, 0) circle (2);
\end{tikzpicture}
\end{document}

View File

@ -0,0 +1,60 @@
\documentclass[a4paper, british]{memoir}
\usepackage{style} % Custom style
\usepackage{mnfrontpage} % Front page
\usepackage{kantlipsum} % Dummy text
\title{Title}
\subtitle{Optional Subtitle}
\author{First Author \and Second Author}
\kind{Report \#17\hfill\the\year} % Optional
\includeonly
{
sections/abstract,
sections/acknowledgements,
sections/introduction,
sections/chapter2,
sections/chapter3,
sections/chapter4,
sections/appendixA,
sections/appendixB,
}
\begin{document}
\frontmatter % Folios in Roman numerals, unnumbered chapters.
\mnfrontpage
\include{sections/abstract}
\include{sections/acknowledgements}
\cleartorecto
\tableofcontents % Or \tableofcontents*
\cleartorecto
\listoffigures % Or \listoffigures*
\cleartorecto
\listoftables % Or \listoftables*
\mainmatter % Folios in Arabic numerals, numbered chapters.
\include{sections/introduction}
\part{The First Part}
\include{sections/chapter2}
\include{sections/chapter3}
\include{sections/chapter4}
\appendix % "Chapter" is renamed "Appendix"
\appendixpage % Similar to \part*{Appendices}, but appears in TOC.
\include{sections/appendixA}
\include{sections/appendixB}
\backmatter % Folios in Arabic numerals, unnumbered chapters.
\printbibliography
\end{document}

View File

@ -0,0 +1,387 @@
% Package for creating front pages
% Implemented by Martin Helsø (martibhe@math.uio.no).
% Version 2015-12-21.
%% Identification part:
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass{mnfrontpage}
%% Standard headers:
\DeclareOption{american} { \def \MNFP@lang {eng} }
\DeclareOption{english} { \def \MNFP@lang {eng} }
\DeclareOption{UKenglish}{ \def \MNFP@lang {eng} }
\DeclareOption{USenglish}{ \def \MNFP@lang {eng} }
\DeclareOption{norsk} { \def \MNFP@lang {bm} }
\DeclareOption{nynorsk} { \def \MNFP@lang {nn} }
%% Department:
\DeclareOption{MatNat}
{
\def \MNFP@Dept {mn}
\def \MNFP@nr {1}
}
\DeclareOption{FRM}
{
\def \MNFP@Dept {frm}
\def \MNFP@nr {2}
}
\DeclareOption{FYS}
{
\def \MNFP@Dept {fys}
\def \MNFP@nr {3}
}
\DeclareOption{IBV}
{
\def \MNFP@Dept {ibv}
\def \MNFP@nr {4}
}
\DeclareOption{GEO}
{
\def \MNFP@Dept {geo}
\def \MNFP@nr {5}
}
\DeclareOption{IFI}
{
\def \MNFP@Dept {ifi}
\def \MNFP@nr {6}
}
\DeclareOption{AST}
{
\def \MNFP@Dept {ast}
\def \MNFP@nr {7}
}
\DeclareOption{KJM}
{
\def \MNFP@Dept {kjm}
\def \MNFP@nr {8}
}
\DeclareOption{MAT}
{
\def \MNFP@Dept {mat}
\def \MNFP@nr {9}
}
%% Background:
\DeclareOption{1} { \def \MNFP@nr {1} }
\DeclareOption{2} { \def \MNFP@nr {2} }
\DeclareOption{3} { \def \MNFP@nr {3} }
\DeclareOption{4} { \def \MNFP@nr {4} }
\DeclareOption{5} { \def \MNFP@nr {5} }
\DeclareOption{6} { \def \MNFP@nr {6} }
\DeclareOption{7} { \def \MNFP@nr {7} }
\DeclareOption{8} { \def \MNFP@nr {8} }
\DeclareOption{9} { \def \MNFP@nr {9} }
\DeclareOption{10}{ \def \MNFP@nr {10} }
%% Purpose of document:
\DeclareOption{web}
{
\def \MNFP@indent { 0 mm}
\def \MNFP@type {web}
}
\DeclareOption{print}
{
\def \MNFP@indent { 0 mm}
\def \MNFP@type {print}
}
\DeclareOption{bound}
{
\def \MNFP@indent {11 mm}
\def \MNFP@type {print}
}
%% Length of titles:
\DeclareOption{OrdinaryTitle}
{
\def \MNFP@title {Ordinary}
\def \MNFP@titlesize {\fontsize{32}{35pt}}
}
\DeclareOption{LongTitle}
{
\def \MNFP@title {Long}
\def \MNFP@titlesize {\fontsize{24}{27pt}}
}
\DeclareOption{ExtraLongTitle}
{
\def \MNFP@title {ExtraLong}
\def \MNFP@titlesize {\fontsize{17}{20pt}}
}
\DeclareOption{BlankPage} { \def \MNFP@secondpage {blank} }
\DeclareOption{OnlyFrontpage}{ \def \MNFP@secondpage {} }
%% Masther's thesis
\DeclareOption{compendium}{ \def \MNFP@thesis {} }
\DeclareOption{master} { \def \MNFP@thesis {thesis} }
%% Standard options:
\ExecuteOptions{english}
\ExecuteOptions{MatNat}
\ExecuteOptions{web}
\ExecuteOptions{OrdinaryTitle}
\ExecuteOptions{BlankPage}
\ExecuteOptions{compendium}
\ProcessOptions\relax
%% Initial code:
\RequirePackage[T1]{fontenc}
\RequirePackage{calc}
\RequirePackage{eso-pic}
\RequirePackage{picture}
\RequirePackage{xifthen}
\RequirePackage{tikz}
\RequirePackage{fix-cm}
\definecolor{bannergrey}{cmyk}{0, 0, 0, 0.3}
%% The main command:
\@ifclassloaded{memoir}
{
\newcommand{\mnfrontpage}
{
\def \and {\leavevmode\unskip, }
\begin{titlingpage}
\AddToShipoutPictureBG*{\MNFP@print@background}
\AddToShipoutPictureFG*{\MNFP@print@title}
\null
\end{titlingpage}
}
}
{
\newcommand{\mnfrontpage}
{
\def \and {\leavevmode\unskip, }
\begin{titlepage}
\AddToShipoutPictureBG*{\MNFP@print@background}
\AddToShipoutPictureFG*{\MNFP@print@title}
\null
\end{titlepage}
\ifthenelse{ \equal{\MNFP@secondpage}{blank} }
{
\MNFP@blankpage
}
{}
}
}
%% Additional commands:
\newcommand{\subtitle}[1]{ \def \MNFP@subtitle{#1} }
\subtitle{}
\newcommand{\kind}[1]{ \def \MNFP@kind{#1} }
\ifthenelse{ \equal{\MNFP@thesis}{thesis} }
{
%% Define a suitable document kind, like "Master's Thesis, Spring 2016":
\kind
{
\csname MNFP@thesisname@\MNFP@lang\endcsname,~\MNFP@term~\MNFP@year
}
}
{
\kind{}
}
%% Include the title page background:
\newcommand{\MNFP@print@background}
{
\put(-3 bp, 0 bp)
{
\includegraphics
{mnfrontpage-images/mnfrontpage-bg-\MNFP@type-\MNFP@nr}
}
\put(-3 mm, 142 mm)
{
\begin{tikzpicture}[scale = 1mm]
\filldraw[white, opacity = 0.8]
(0, 2.5) rectangle (\paperwidth, 3.73);
\filldraw[white, opacity = 0.6]
(0, 0) rectangle (\paperwidth, 2.5);
\filldraw[bannergrey, opacity = 0.7]
(0, 0) rectangle (\paperwidth, 2.5);
\end{tikzpicture}
}
\put(25 mm + \MNFP@indent, 25 mm)
{
\includegraphics[width = 27mm]
{mnfrontpage-images/mnfrontpage-apollon}
}
\ifthenelse{ \equal{\MNFP@Dept}{mn} }
{
\put(22 mm + \MNFP@indent, 220 mm)
{
\includegraphics[scale = 0.5]
{mnfrontpage-images/mnfrontpage-logo-\MNFP@Dept-\MNFP@lang}
}
}
{
\put(19 mm + \MNFP@indent, 222 mm)
{
\includegraphics[scale = 0.6]
{mnfrontpage-images/mnfrontpage-logo-\MNFP@Dept-\MNFP@lang}
}
}
}
%% Include the title, subtitle, author and date:
\newcommand{\MNFP@print@title}
{
{
\newlength{\MNFPtitlelength}
\ifthenelse{ \equal{\MNFP@Dept}{mn} }
{
\def \MNFP@titlepos {41.5 mm}
\setlength{\MNFPtitlelength}
{\paperwidth - 22 mm - \MNFP@titlepos - \MNFP@indent}
}
{
\def \MNFP@titlepos {42.4 mm}
\setlength{\MNFPtitlelength}
{\paperwidth - 19 mm - \MNFP@titlepos - \MNFP@indent}
}
\put(\MNFP@titlepos + \MNFP@indent, 141.5 mm)
{
\vbox to 7.15cm
{
\hsize = \MNFPtitlelength
\raggedright
% Redefinition of standard \LaTeX command because
% the font package 'bera' mangles it!
\ifthenelse{ \isundefined{\fveLaTeX} }{}
{
\DeclareRobustCommand{\mn@LaTeX}
{
L\kern-.36em
{
\sbox\z@ T
\vbox to\ht\z@
{
\hbox
{
\check@mathfonts
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A
}
\vss
}
}
\kern-.15em
\TeX
}
\let \LaTeX = \mn@LaTeX
}
\vfill
\fontfamily{\MNFP@font}
\MNFP@titlesize
\selectfont
\bfseries
\@title
\newlength{\MNFP@titlelength}
\settowidth{\MNFP@titlelength}{\@title}
\ifthenelse
{
\equal{\MNFP@title}{Ordinary}
\AND
\lengthtest{\MNFP@titlelength < \hsize}
}
{
\def \MNFP@skip{2.5 em}
}
{
\def \MNFP@skip{1.5 em}
}
\vskip 0.5ex
\normalfont
\fontfamily{\MNFP@font}
\fontsize{17}{20pt}
\selectfont
\MNFP@subtitle
\vskip \MNFP@skip
{
\bfseries
\ifdefined\authors
\authors
\else
\@author
\fi
}
\\[0.1ex]
\MNFP@kind
\vfill
}
}
}
}
%% Find the best font:
\newcommand{\MNFP@font}{phv} % Helvetica is always available, but use
\IfFileExists{t1ua1.fd}{\renewcommand{\MNFP@font}{ua1}}{} % Arial if possible.
%% Determine the term (as in "Spring 2016"):
\newcounter{MNFP@cur@year}
\newcounter{MNFP@cur@month}
\setcounter{MNFP@cur@year} { \the\year }
\setcounter{MNFP@cur@month}{ \the\month }
\ifthenelse{ \theMNFP@cur@month < 7 }
{
\newcommand{\MNFP@term@eng}{Spring}
\newcommand{\MNFP@term@bm} {v\aa ren}
\newcommand{\MNFP@term@nn} {v\aa ren}
}
{
\newcommand{\MNFP@term@eng}{Autumn}
\newcommand{\MNFP@term@bm} {h\o sten}
\newcommand{\MNFP@term@nn} {hausten}
}
\newcommand{\MNFP@term}{ \csname MNFP@term@\MNFP@lang\endcsname }
\newcommand{\MNFP@year}{ \arabic{MNFP@cur@year} }
%% Specify "Master's Thesis" in the correct language:
\newcommand{\MNFP@thesisname@eng}{Master's Thesis}
\newcommand{\MNFP@thesisname@bm} {Masteroppgave}
\newcommand{\MNFP@thesisname@nn} {Masteroppg\aa ve}
\newcommand{\MNFP@blankpage}
{
\thispagestyle{empty}
\null
\newpage
}
\endinput

View File

@ -0,0 +1,3 @@
\chapter{Abstract}
\kant[1] % Dummy text
\todo[inline]{Add new section about results in \cref{sec:fourth}.}

View File

@ -0,0 +1,5 @@
\chapter{Acknowledgements}
\kant[2] % Dummy text
\todo[noline]{Rewrite this.}
\kant[3] % Dummy text

View File

@ -0,0 +1,7 @@
\chapter{The First Appendix}
\label{sec:first-app}
\kant[20-21] % Dummy text
\section{First Section}
\kant[22] % Dummy text
\section{Second Section}
\kant[23-24] % Dummy text

View File

@ -0,0 +1,3 @@
\chapter{The Second Appendix}
\label{sec:second-app}
\kant[25-29] % Dummy text

View File

@ -0,0 +1,14 @@
\chapter{The Second Chapter}
\label{sec:second}
\kant[7-11] % Dummy text
\begin{theorem}[{\cite[95]{AM69}}]
\label{thm:dedekind}
Let \( A \) be a Noetherian domain of dimension one. Then the following are equivalent:
\begin{enumerate}
\item \( A \) is integrally closed;
\item Every primary ideal in \( A \) is a prime power;
\item Every local ring \( A_\mathfrak{p} \) \( (\mathfrak{p} \neq 0) \) is a discrete valuation ring.
\end{enumerate}
\end{theorem}

View File

@ -0,0 +1,7 @@
\chapter{The Third Chapter}
\label{sec:third}
\kant[12-13] % Dummy text
\section{First Section}
\kant[14] % Dummy text
\section{Second Section}
\kant[15] % Dummy text

View File

@ -0,0 +1,3 @@
\chapter{The Fourth Chapter}
\label{sec:fourth}
\kant[15-19] % Dummy text

View File

@ -0,0 +1,141 @@
\chapter{Introduction}
\label{sec:intro}
\kant[4] % Dummy text
\begin{equation}
\iint_D \diff x \diff y
=
\int_0^{2\pi} \int_0^t \rho \diff \rho \diff t
=
\frac{4}{3} \pi^3.
\end{equation}
\section{Figures and Tables}
% Standalone with \input:
\begin{figure}[htbp]
\centering
\input{figures/ball}
\caption[One ball]{One ball.}
\end{figure}
% Standalone with \includegraphics:
\begin{figure}[thbp]
\centering
\includegraphics{balls}
\caption[Two balls]{Two balls.}
\end{figure}
% Todonotes:
\begin{figure}[hbp]
\centering
\missingfigure{Three balls.}
\caption[Three balls]{Three balls.}
\end{figure}
\kant[5-6] % Dummy text
% Booktabs:
\begin{table}[htbp]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Correct} & \textbf{Incorrect} \\
\midrule
\( \varphi \colon X \to Y \) & \( \varphi : X \to Y \) \\[0.5ex]
\( \varphi(x) \coloneqq x^2 \) & \( \varphi(x) := x^2 \) \\
\bottomrule
\end{tabular}
\caption[Colons]{Proper colon usage.}
\end{table}
\begin{table}[htbp]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Correct} & \textbf{Incorrect} \\
\midrule
\( A \implies B \) & \( A \Rightarrow B \) \\
\( A \impliedby B \) & \( A \Leftarrow B \) \\
\( A \iff B \) & \( A \Leftrightarrow B \) \\
\bottomrule
\end{tabular}
\caption[Arrows]{Proper arrow usage.}
\end{table}
% Tablefootnote and multirow:
\begin{table}[htbp]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Correct}
&
\textbf{Incorrect}
\\
\midrule
\( -1 \)
&
-1
\\[0.3ex]
1--10
&
1-10
\\[0.3ex]
Birch--Swinnerton-Dyer\tablefootnote{It is now easy to tell that Birch and Swinnerton-Dyer are two people.} conjecture
&
Birch-Swinnerton-Dyer conjecture
\\[0.3ex]
The ball \dash which is blue \dash is round.
&
\multirow{ 2}{*}{The ball - which is blue - is round.}
\\[0.3ex]
The ball---which is blue---is round.
&
\\
\bottomrule
\end{tabular}
\caption[Dashes]{Proper dash usage.}
\end{table}
\begin{table}[hbtp]
\centering
\begin{tabular}{@{}*{2}{p{0.5\textwidth}}@{}}
\toprule
\textbf{Correct} & \textbf{Incorrect}
\\
\midrule
\enquote{This is an \enquote{inner quote} inside an outer quote}
&
'This is an "inner quote" inside an outer quote'
\\
\bottomrule
\end{tabular}
\caption[Quotation marks]
{Proper quotation mark usage.
The \texttt{\textbackslash enquote} command chooses the correct
quotation marks for the specified language.}
\end{table}
\section{Outline}
The rest of the text is organised as follows:
\begin{description}
\item[\cref{sec:second}]
is second to none, with the notable exception of \cref{sec:intro}.
The main tool introduced here is the employment of unintelligible sentences.
\item[\cref{sec:third}]
asserts the basic properties of being the third chapter of a text.
This section reveals the shocking truth of filler content.
\item[\cref{sec:fourth}]
demonstrates how easily one can get to four chapters by simply using the \texttt{kantlipsum} package to generate dummy words.
\item[\cref{sec:first-app}]
features additional material for the specially interested.
\item[\cref{sec:second-app}]
consists of results best relegated to the back of the document,
ensuring that nobody will ever read it.
\end{description}

View File

@ -0,0 +1,320 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{style}[2019/06/27 Custom LaTeX style]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Silence warning about obsolete package
\RequirePackage{silence}
\WarningFilter{remreset}{The remreset package}
%% Standalone
\RequirePackage{standalone}
%% Encoding
\RequirePackage[utf8]{inputenx}
\RequirePackage[T1]{fontenc}
%% Fonts and typography
\RequirePackage{lmodern} % Latin Modern
\renewcommand{\sfdefault}{phv} % Helvetica
\RequirePackage[scaled]{beramono} % Bera Mono (Bitstream Vera Sans Mono)
\RequirePackage[final]{microtype} % Improved typography
\pretolerance = 1000 % Relaxes parameters for line breaks
\tolerance = 2000 % Relaxes parameters for line breaks
\setlength{\emergencystretch}{1em} % Relaxes parameters for line breaks
\RequirePackage{siunitx} % Typesetting units
\RequirePackage{listings} % Typesetting code
\lstset
{
basicstyle = \ttfamily\footnotesize,
commentstyle = \color{gray},
stringstyle = \itshape,
showstringspaces = false,
frame = tb
}
\RequirePackage[obeyspaces,
spaces,
hyphens]{url} % Typesetting URLs
\urlstyle{sf}
%% Mathematics
\RequirePackage{amssymb} % Extra symbols
\RequirePackage{amsthm} % Theorem-like environments
\RequirePackage{thmtools} % Theorem-like environments, extends amsthm
\RequirePackage{mathtools} % Fonts and environments for mathematical formulae
\RequirePackage{mathrsfs} % Script font with \mathscr{}
\RequirePackage{dsfont} % Double stroke font with \mathds{}
\RequirePackage{cancel} % Cancel terms with \cancel, \bcancel or \xcancel
\RequirePackage{stmaryrd} % Brackets
\everymath
{
\ifodd\value{page} % Allow multiline equations
\allowdisplaybreaks[1] % to break across two pages:
\else % - Breaks from odd to even pages are allowed,
\allowdisplaybreaks[4] % but discouraged.
\fi % - Breaks from even to odd pages are allowed.
}
%% Language
\RequirePackage{babel}
\RequirePackage{csquotes}
%% Graphics
\RequirePackage[dvipsnames,
svgnames,
cmyk]{xcolor} % Pre-defined colors
\RequirePackage{graphicx} % Tool for importing images
\graphicspath{{figures/}}
\RequirePackage{tikz} % Drawing tool
\usetikzlibrary{calc}
\usetikzlibrary{intersections}
\usetikzlibrary{decorations.markings}
%% Organising tools
\RequirePackage{etoolbox} % Hooks
\RequirePackage{pgffor} % For-loops
\RequirePackage{comment} % Multiline comments
\RequirePackage[notref, notcite]{showkeys} % Labels in margins
\renewcommand{\showkeyslabelformat}[1]
{
\fbox
{
\parbox[t]{0.6\marginparwidth}
{
\centering\normalfont\footnotesize\ttfamily
\path{#1}
}
}
}
\RequirePackage[obeyFinal,
color = LightGray,
bordercolor = LightGray,
textsize = footnotesize,
figwidth = 0.99\linewidth]{todonotes} % Marginal notes
%% Lists
\RequirePackage{enumitem}
\setlist[itemize] {font = \upshape, before = \leavevmode}
\setlist[enumerate] {font = \upshape, before = \leavevmode}
\setlist[description]{font = \bfseries\sffamily, before = \leavevmode}
\foreach \env in {theorem, corollary, lemma, proposition, observation,
conjecture, definition, example, notation, remark}
{
\AtBeginEnvironment{\env}
{
\setlist[enumerate, 1]{wide,
label = \thetheorem.\arabic{*}.,
ref = \thetheorem.\arabic{*}}
}
}
%% Miscellaneous
\RequirePackage{xspace} % Clever space
\RequirePackage{textcomp} % Extra symbols
\RequirePackage{multirow} % Rows spanning multiple lines in tables
\RequirePackage{tablefootnote} % Footnotes for tables
%% Bibliography
\RequirePackage{mathscinet}
\RequirePackage[backend = biber,
sortcites = true,
giveninits = true,
doi = false,
isbn = false,
url = false,
style = alphabetic]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{default}{family-given}
\DeclareFieldFormat[article]{volume}{\bibstring{jourvol}\addnbspace#1}
\DeclareFieldFormat[article]{number}{\bibstring{number}\addnbspace#1}
\renewbibmacro*{volume+number+eid}
{
\printfield{volume}
\setunit{\addcomma\space}
\printfield{number}
\setunit{\addcomma\space}
\printfield{eid}
}
\addbibresource{bibliography.bib}
%% Cross references
\RequirePackage{varioref}
\RequirePackage[pdfusetitle]{hyperref}
\RequirePackage[nameinlink, capitalize, noabbrev]{cleveref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MEMOIR SETTINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Title page
\pretitle{\begin{center}\huge\sffamily\bfseries\boldmath}
%% Book
\renewcommand*{\printbooktitle}[1]
{
\hrule\vskip\onelineskip
\centering\booktitlefont #1
\vskip\onelineskip\hrule
}
\renewcommand*{\afterbookskip}{\par}
\renewcommand*{\booktitlefont}{\Huge\bfseries\boldmath\sffamily}
\renewcommand*{\booknamefont}{\normalfont\huge\bfseries\MakeUppercase}
%% Part
\renewcommand*{\printparttitle}[1]
{
\hrule\vskip\onelineskip
\centering\parttitlefont #1
\vskip\onelineskip\hrule
}
\renewcommand*{\afterpartskip}{\par}
\renewcommand*{\parttitlefont}{\Huge\bfseries\boldmath\sffamily}
\renewcommand*{\partnamefont}{\normalfont\huge\bfseries\MakeUppercase}
%% Chapter
\chapterstyle{demo2}
\renewcommand*{\printchaptername}
{
\centering\chapnamefont\MakeUppercase{\@chapapp}
}
\renewcommand*{\printchapternum}{\chapnumfont\thechapter\space}
\renewcommand*{\chaptitlefont}{\Huge\bfseries\boldmath\sffamily\center}
%% Lower level sections
\setsecheadstyle{\Large\bfseries\boldmath\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\boldmath\sffamily\raggedright}
\setsubsubsecheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
\setparaheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
\setsubparaheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
%% Abstract
\renewcommand{\abstractnamefont}{\sffamily\bfseries}
\renewcommand{\abstracttextfont}{\normalfont\small\noindent\ignorespaces}
%% Table of contents
\setrmarg{3em}
\setpnumwidth{2em}
\addtolength{\cftbooknumwidth}{0.5em}
\addtolength{\cftpartnumwidth}{0.5em}
\addtolength{\cftchapternumwidth}{0.5em}
\addtolength{\cftsectionindent}{0.5em}
\addtolength{\cftsubsectionindent}{0.5em}
\addtolength{\cftsubsubsectionindent}{0.5em}
\addtolength{\cftparagraphindent}{0.5em}
\addtolength{\cftsubparagraphindent}{0.5em}
\renewcommand{\cftchapteraftersnumb}{\bfseries\boldmath}
%% Header and footer
\pagestyle{ruled}
\makeevenhead{ruled}{\sffamily\leftmark}{}{}
\makeoddhead {ruled}{}{}{\sffamily\rightmark}
\makeevenfoot{ruled}{\sffamily\thepage}{}{}
\makeoddfoot{ruled}{}{}{\sffamily\thepage}
\makepagestyle{chapter}
\makeevenfoot{chapter}{\sffamily\thepage}{}{}
\makeoddfoot{chapter}{}{}{\sffamily\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% USER-DEFINED MACROS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Environments
\declaretheoremstyle[headfont = \bfseries\sffamily,
notefont = \normalfont,
bodyfont = \itshape,
spaceabove = 6pt,
spacebelow = 6pt]{plain}
\declaretheoremstyle[headfont = \bfseries\sffamily,
notefont = \normalfont,
spaceabove = 6pt,
spacebelow = 6pt]{definition}
\declaretheorem[style = plain, numberwithin = section]{theorem}
\declaretheorem[style = plain, sibling = theorem]{corollary}
\declaretheorem[style = plain, sibling = theorem]{lemma}
\declaretheorem[style = plain, sibling = theorem]{proposition}
\declaretheorem[style = plain, sibling = theorem]{observation}
\declaretheorem[style = plain, sibling = theorem]{conjecture}
\declaretheorem[style = definition, sibling = theorem]{definition}
\declaretheorem[style = definition, sibling = theorem]{example}
\declaretheorem[style = definition, sibling = theorem]{notation}
\declaretheorem[style = remark, sibling = theorem]{remark}
\crefname{observation}{Observation}{Observations}
\Crefname{observation}{Observation}{Observations}
\crefname{conjecture}{Conjecture}{Conjectures}
\Crefname{conjecture}{Conjecture}{Conjectures}
\crefname{notation}{Notation}{Notations}
\Crefname{notation}{Notation}{Notations}
%% Operators
\newcommand{\diff}{\mathop{}\!\mathrm{d}}
\renewcommand{\Re}{\operatorname{Re}}
\renewcommand{\Im}{\operatorname{Im}}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\rank}{rank}
%% Delimiters
\DeclarePairedDelimiter{\p}{\lparen}{\rparen} % Parenthesis
\DeclarePairedDelimiter{\set}{\lbrace}{\rbrace} % Set
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % Absolute value
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert} % Norm
\DeclarePairedDelimiter{\ip}{\langle}{\rangle} % Inner product, ideal
\DeclarePairedDelimiter{\sqb}{\lbrack}{\rbrack} % Square brackets
\DeclarePairedDelimiter{\ssqb}{\llbracket}{\rrbracket} % Double brackets
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil} % Ceiling
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor} % Floor
%% Blackboard bold
\newcommand{\N}{\mathbb{N}} % Natural numbers
\newcommand{\Z}{\mathbb{Z}} % Integers
\newcommand{\Q}{\mathbb{Q}} % Rational numbers
\newcommand{\R}{\mathbb{R}} % Real numbers
\newcommand{\C}{\mathbb{C}} % Complex numbers
\newcommand{\A}{\mathbb{A}} % Affine space
\renewcommand{\P}{\mathbb{P}} % Projective space
%% Bold face
\renewcommand{\a}{\mathbf{a}}
\renewcommand{\b}{\mathbf{b}}
\newcommand{\x}{\mathbf{x}}
\newcommand{\y}{\mathbf{y}}
\newcommand{\0}{\mathbf{0}}
\newcommand{\1}{\mathbf{1}}
%% Miscellaneous
\renewcommand{\qedsymbol}{\(\blacksquare\)}
\newcommand{\ie}{\leavevmode\unskip, i.e.,\xspace}
\newcommand{\eg}{\leavevmode\unskip, e.g.,\xspace}
\newcommand{\dash}{\textthreequartersemdash\xspace}
\newcommand{\TikZ}{Ti\textit{k}Z\xspace}
\newcommand{\matlab}{\textsc{Matlab}\xspace}
\endinput

View File

@ -0,0 +1,7 @@
@Booklet{Gil:02,
author = {Joseph (Yossi) Gil},
TITLE = {{\LaTeXe} for Graduate Students},
year = {2002},
howpublished = {manuscript},
address = {Haifa, Israel},
}

Some files were not shown because too many files have changed in this diff Show More