notes.sty 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. \NeedsTeXFormat{LaTeX2e}
  2. \ProvidesPackage{essay}
  3. %set margins
  4. \usepackage{geometry}
  5. %math packages
  6. \usepackage{authblk}
  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{/home/patrickl/homework/macaulay2}
  24. %Fonts
  25. \usepackage[sc]{mathpazo}
  26. \usepackage{eulervm}
  27. \usepackage[scaled=0.86]{berasans}
  28. \usepackage{inconsolata}
  29. \usepackage{microtype}
  30. %CS packages
  31. \usepackage{algorithmicx}
  32. \usepackage{algpseudocode}
  33. \usepackage{algorithm}
  34. % typeset and bib
  35. \usepackage[english]{babel}
  36. \usepackage[utf8]{inputenc}
  37. \usepackage[T1]{fontenc}
  38. \usepackage[backend=biber, style=alphabetic]{biblatex}
  39. \usepackage[bookmarks, colorlinks, breaklinks]{hyperref}
  40. \hypersetup{linkcolor=black,citecolor=black,filecolor=black,urlcolor=black}
  41. % other formatting packages
  42. \usepackage{float}
  43. \usepackage{booktabs}
  44. \usepackage{enumitem}
  45. \usepackage{csquotes}
  46. \usepackage{titlesec}
  47. \usepackage{titling}
  48. \usepackage{fancyhdr}
  49. \usepackage{lastpage}
  50. \usepackage{parskip}
  51. % delimiters
  52. \DeclarePairedDelimiter{\gen}{\langle}{\rangle}
  53. \DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
  54. \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
  55. \DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
  56. \DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
  57. \newtheorem{thm}{Theorem}
  58. \newtheorem{cor}[thm]{Corollary}
  59. \newtheorem{prop}[thm]{Proposition}
  60. \newtheorem{lem}[thm]{Lemma}
  61. \newtheorem{conj}[thm]{Conjecture}
  62. \newtheorem{quest}[thm]{Question}
  63. \theoremstyle{definition}
  64. \newtheorem{defn}[thm]{Definition}
  65. \newtheorem{defns}[thm]{Definitions}
  66. \newtheorem{con}[thm]{Construction}
  67. \newtheorem{exm}[thm]{Example}
  68. \newtheorem{exms}[thm]{Examples}
  69. \newtheorem{notn}[thm]{Notation}
  70. \newtheorem{notns}[thm]{Notations}
  71. \newtheorem{addm}[thm]{Addendum}
  72. \newtheorem{exer}[thm]{Exercise}
  73. \theoremstyle{remark}
  74. \newtheorem{rmk}[thm]{Remark}
  75. \newtheorem{rmks}[thm]{Remarks}
  76. \newtheorem{warn}[thm]{Warning}
  77. \newtheorem{sch}[thm]{Scholium}
  78. % unnumbered theorems
  79. \theoremstyle{plain}
  80. \newtheorem*{thm*}{Theorem}
  81. \newtheorem*{prop*}{Proposition}
  82. \newtheorem*{lem*}{Lemma}
  83. \newtheorem*{cor*}{Corollary}
  84. \newtheorem*{conj*}{Conjecture}
  85. % unnumbered definitions
  86. \theoremstyle{definition}
  87. \newtheorem*{defn*}{Definition}
  88. \newtheorem*{rmk*}{Remark}
  89. \newtheorem*{exer*}{Exercise}
  90. \newtheorem*{exm*}{Example}
  91. % shortcuts
  92. \newcommand{\Ima}{\mathrm{Im}}
  93. \newcommand{\A}{\mathbb{A}}
  94. \newcommand{\R}{\mathbb{R}}
  95. \newcommand{\C}{\mathbb{C}}
  96. \newcommand{\Z}{\mathbb{Z}}
  97. \newcommand{\Q}{\mathbb{Q}}
  98. \renewcommand{\k}{\Bbbk}
  99. \renewcommand{\P}{\mathbb{P}}
  100. \newcommand{\M}{\overline{M}}
  101. \newcommand{\g}{\mathfrak{g}}
  102. \newcommand{\h}{\mathfrak{h}}
  103. \newcommand{\n}{\mathfrak{n}}
  104. \renewcommand{\b}{\mathfrak{b}}
  105. \newcommand{\ep}{\varepsilon}
  106. \newcommand*{\dt}[1]{%
  107. \accentset{\mbox{\Huge\bfseries .}}{#1}}
  108. \renewcommand{\abstractname}{Official Description}
  109. \newcommand{\mc}[1]{\mathcal{#1}}
  110. \newcommand{\T}{\mathbb{T}}
  111. \newcommand{\mf}[1]{\mathfrak{#1}}
  112. \newcommand{\mr}[1]{\mathrm{#1}}
  113. \DeclareMathOperator{\Der}{Der}
  114. \DeclareMathOperator{\Hom}{Hom}
  115. \DeclareMathOperator{\End}{End}
  116. \DeclareMathOperator{\ad}{ad}
  117. \DeclareMathOperator{\tr}{tr}
  118. \DeclareMathOperator{\Aut}{Aut}
  119. \DeclareMathOperator{\Rad}{Rad}
  120. \DeclareMathOperator{\supp}{supp}
  121. \DeclareMathOperator{\sgn}{sgn}
  122. % style
  123. \titleformat{\section}
  124. {\centering\large\scshape}{\thesection}{1em}{}
  125. \titleformat{\subsection}[runin]
  126. {\normalfont\bfseries}{\thesubsection}{1em}{}
  127. \titleformat{\subsubsection}[runin]{\normalfont\itshape}{\thesubsubsection}{1em}{}
  128. \pretitle{\begin{center}\Large\scshape}
  129. \posttitle{\end{center}}
  130. \preauthor{\begin{center}\large\scshape}
  131. \postauthor{\end{center}}
  132. \predate{\begin{center}\normalsize\itshape}
  133. \postdate{\end{center}}
  134. \setlength{\droptitle}{-40pt}
  135. % header style