notes_template.tex 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. %!TEX TS-program = lualatex
  2. %!TEX encoding = UTF-8 Unicode
  3. \documentclass[leqno, openany]{memoir}
  4. \setulmarginsandblock{3.5cm}{3.5cm}{*}
  5. \setlrmarginsandblock{3cm}{3.5cm}{*}
  6. \checkandfixthelayout
  7. \usepackage{amsmath}
  8. \usepackage{amssymb}
  9. \usepackage{amsthm}
  10. %\usepackage{MnSymbol}
  11. \usepackage{bm}
  12. \usepackage{accents}
  13. \usepackage{mathtools}
  14. \usepackage{tikz}
  15. \usetikzlibrary{calc}
  16. \usetikzlibrary{automata,positioning}
  17. \usepackage{tikz-cd}
  18. \usepackage{forest}
  19. \usepackage{braket}
  20. \usepackage{listings}
  21. \usepackage{mdframed}
  22. \usepackage{verbatim}
  23. \usepackage{physics}
  24. %\usepackage{/home/patrickl/homework/macaulay2}
  25. %font
  26. \usepackage{fontspec}
  27. \usepackage{unicode-math}
  28. \setmainfont[Ligatures={Common}, Numbers={OldStyle}]{Libertinus Serif}
  29. \setsansfont{Libertinus Sans}
  30. \setmonofont{Inconsolata}
  31. \setmathfont{Libertinus Math}
  32. \usepackage{microtype}
  33. %CS packages
  34. \usepackage{algorithmicx}
  35. \usepackage{algpseudocode}
  36. \usepackage{algorithm}
  37. % typeset and bib
  38. \usepackage[english]{babel}
  39. \usepackage[utf8]{inputenc}
  40. \usepackage[backend=biber, style=alphabetic]{biblatex}
  41. \usepackage[bookmarks, colorlinks, breaklinks]{hyperref}
  42. \hypersetup{linkcolor=black,citecolor=black,filecolor=black,urlcolor=black}
  43. % other formatting packages
  44. \usepackage{float}
  45. \usepackage{booktabs}
  46. \usepackage{enumitem}
  47. \usepackage{csquotes}
  48. \usepackage{titlesec}
  49. \usepackage{titling}
  50. \usepackage{fancyhdr}
  51. \usepackage{lastpage}
  52. \usepackage{parskip}
  53. \usepackage{lipsum}
  54. % delimiters
  55. \DeclarePairedDelimiter{\gen}{\langle}{\rangle}
  56. \DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
  57. \DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
  58. \newtheorem{thm}{Theorem}[section]
  59. \newtheorem{cor}[thm]{Corollary}
  60. \newtheorem{prop}[thm]{Proposition}
  61. \newtheorem{lem}[thm]{Lemma}
  62. \newtheorem{conj}[thm]{Conjecture}
  63. \newtheorem{quest}[thm]{Question}
  64. \theoremstyle{definition}
  65. \newtheorem{defn}[thm]{Definition}
  66. \newtheorem{defns}[thm]{Definitions}
  67. \newtheorem{con}[thm]{Construction}
  68. \newtheorem{exm}[thm]{Example}
  69. \newtheorem{exms}[thm]{Examples}
  70. \newtheorem{notn}[thm]{Notation}
  71. \newtheorem{notns}[thm]{Notations}
  72. \newtheorem{addm}[thm]{Addendum}
  73. \newtheorem{exer}[thm]{Exercise}
  74. \theoremstyle{remark}
  75. \newtheorem{rmk}[thm]{Remark}
  76. \newtheorem{rmks}[thm]{Remarks}
  77. \newtheorem{warn}[thm]{Warning}
  78. \newtheorem{sch}[thm]{Scholium}
  79. % unnumbered theorems
  80. \theoremstyle{plain}
  81. \newtheorem*{thm*}{Theorem}
  82. \newtheorem*{prop*}{Proposition}
  83. \newtheorem*{lem*}{Lemma}
  84. \newtheorem*{cor*}{Corollary}
  85. \newtheorem*{conj*}{Conjecture}
  86. % unnumbered definitions
  87. \theoremstyle{definition}
  88. \newtheorem*{defn*}{Definition}
  89. \newtheorem*{exer*}{Exercise}
  90. \newtheorem*{defns*}{Definitions}
  91. \newtheorem*{con*}{Construction}
  92. \newtheorem*{exm*}{Example}
  93. \newtheorem*{exms*}{Examples}
  94. \newtheorem*{notn*}{Notation}
  95. \newtheorem*{notns*}{Notations}
  96. \newtheorem*{addm*}{Addendum}
  97. \theoremstyle{remark}
  98. \newtheorem*{rmk*}{Remark}
  99. % shortcuts
  100. \newcommand{\Ima}{\mathrm{Im}}
  101. \newcommand{\A}{\mathbb{A}}
  102. \newcommand{\R}{\mathbb{R}}
  103. \renewcommand{\C}{\mathbb{C}}
  104. \newcommand{\Z}{\mathbb{Z}}
  105. \newcommand{\Q}{\mathbb{Q}}
  106. \renewcommand{\k}{\Bbbk}
  107. \renewcommand{\P}{\mathbb{P}}
  108. \newcommand{\M}{\overline{M}}
  109. \newcommand{\g}{\mathfrak{g}}
  110. \newcommand{\h}{\mathfrak{h}}
  111. \newcommand{\n}{\mathfrak{n}}
  112. \renewcommand{\b}{\mathfrak{b}}
  113. \newcommand{\ep}{\varepsilon}
  114. \newcommand*{\dt}[1]{%
  115. \accentset{\mbox{\Huge\bfseries .}}{#1}}
  116. \renewcommand{\abstractname}{Official Description}
  117. \newcommand{\mc}[1]{\mathcal{#1}}
  118. \newcommand{\T}{\mathbb{T}}
  119. \newcommand{\mf}[1]{\mathfrak{#1}}
  120. \newcommand{\mr}[1]{\mathrm{#1}}
  121. \newcommand{\ol}[1]{\overline{#1}}
  122. \newcommand{\wt}[1]{\widetilde{#1}}
  123. \DeclareMathOperator{\Der}{Der}
  124. \DeclareMathOperator{\Hom}{Hom}
  125. \DeclareMathOperator{\End}{End}
  126. \DeclareMathOperator{\ad}{ad}
  127. \DeclareMathOperator{\Aut}{Aut}
  128. \DeclareMathOperator{\Rad}{Rad}
  129. \DeclareMathOperator{\supp}{supp}
  130. \DeclareMathOperator{\sgn}{sgn}
  131. % Section formatting
  132. \titleformat{\section}
  133. {\Large\sffamily\scshape\bfseries}{\thesection}{1em}{}
  134. \titleformat{\subsection}[runin]
  135. {\large\sffamily\bfseries}{\thesubsection}{1em}{}
  136. \titleformat{\subsubsection}[runin]{\normalfont\itshape}{\thesubsubsection}{1em}{}
  137. \title{COURSE TITLE}
  138. \author{Lectures by INSTRUCTOR, Notes by NOTETAKER}
  139. \date{SEMESTER}
  140. \newcommand*{\titleSW}
  141. {\begingroup% Story of Writing
  142. \raggedleft
  143. \vspace*{\baselineskip}
  144. {\Huge\itshape COURSE TITLE \\ COURSE NUMBER}\\[\baselineskip]
  145. {\large\itshape Notes by NOTE TAKER,
  146. SEMESTER}\\[0.2\textheight]
  147. {\Large Lectures by INSTRUCTOR}\par
  148. \vfill
  149. {\Large \sffamily UNIVERSITY NAME}
  150. \vspace*{\baselineskip}
  151. \endgroup}
  152. \pagestyle{simple}
  153. \chapterstyle{ell}
  154. %\renewcommand{\cftchapterpagefont}{}
  155. \renewcommand\cftchapterfont{\sffamily}
  156. \renewcommand\cftsectionfont{\scshape}
  157. \renewcommand*{\cftchapterleader}{}
  158. \renewcommand*{\cftsectionleader}{}
  159. \renewcommand*{\cftsubsectionleader}{}
  160. \renewcommand*{\cftchapterformatpnum}[1]{~\textbullet~#1}
  161. \renewcommand*{\cftsectionformatpnum}[1]{~\textbullet~#1}
  162. \renewcommand*{\cftsubsectionformatpnum}[1]{~\textbullet~#1}
  163. \renewcommand{\cftchapterafterpnum}{\cftparfillskip}
  164. \renewcommand{\cftsectionafterpnum}{\cftparfillskip}
  165. \renewcommand{\cftsubsectionafterpnum}{\cftparfillskip}
  166. \setrmarg{3.55em plus 1fil}
  167. \setsecnumdepth{subsection}
  168. \maxsecnumdepth{subsection}
  169. \settocdepth{subsection}
  170. \begin{document}
  171. \begin{titlingpage}
  172. \titleSW
  173. \end{titlingpage}
  174. \thispagestyle{empty}
  175. \section*{Disclaimer}%
  176. \label{sec:disclaimer}
  177. These notes were taken during lecture using the \texttt{vimtex} package of the editor \texttt{neovim}.
  178. Any errors are mine and not the instructor's.
  179. In addition, my notes are picture-free (but will include commutative diagrams) and are a mix of my mathematical style
  180. (omit lengthy computations, use category theory) and that of the instructor.
  181. If you find any errors, please contact me at \texttt{email@university.edu}.
  182. \newpage
  183. \tableofcontents
  184. \chapter{First Chapter}%
  185. \label{cha:first_chapter}
  186. \lipsum[1-4]
  187. \section{Organization}%
  188. \label{sec:organization}
  189. \lipsum[5-8]
  190. \end{document}