Commits

James Tocknell committed 302a3dd

Fixed some math macros and includes

Comments (0)

Files changed (2)

texmf/tex/aragilar/aragilar-tufte-lecture-notes.sty

 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{aragilar-tufte-lecture-notes}
 
+%%%% PROGRAMMING PACKAGES %%%%
+\RequirePackage{xparse}
+
 %%%%% SETTING UP CONFIGURATION ENVIRONMENT %%%%
 %%% Packages
 %\RequirePackage{pgfopts}
 }
 
 %%%% USEFUL MACROS %%%%
-\newcommand{\lecture}[2]{\marginnote{Start of lecture #1, given on #2.} }
 \newcommand{\checkword}[1]{\textcolor{red}{#1}}
 \newcommand{\marginexample}[1]{\marginnote{\begin{unnumberedexample} #1
 \end{unnumberedexample}}}
-\newcommand{\suchthat}{s.t.\@ }
 
+%% First arg is lecture num, second date, third extra stuff.
+\DeclareDocumentCommand{\lecture}{ m m o}{
+  \IfNoValueTF{#3}
+    {\marginnote{Start of lecture #1, given
+    on #2.}}
+    {\marginnote{Start of lecture #1, given
+    on #2. #3}}
+}

texmf/tex/aragilar/sanemath.sty

 \ProvidesPackage{sanemath}
 
-%% Maths
-\RequirePackage{amssymb}
-\RequirePackage{amsfonts}
+%%%% MAIN PACKAGES %%%%
 \RequirePackage{amsmath}
-\RequirePackage[retainorgcmds]{IEEEtrantools} % For IEEEeqnarray
+%\RequirePackage[retainorgcmds]{IEEEtrantools} % For IEEEeqnarray
 
 \RequirePackage[standard,hyperref,amsmath,thmmarks,thref]{ntheorem}
 
+%%%% THEOREM DEFINITIONS %%%%
 %% Unnumbered versions of theorem environments
 \theorembodyfont{\upshape}
 \theoremstyle{nonumberplain}
 \theorembodyfont{\normalfont}
 \newtheorem{proofoutline}{Outline of Proof}
 
+%%%% USEFUL TERMS %%%%
+\newcommand{\suchthat}{s.t.\@ }
+
 \RequirePackage[all]{onlyamsmath} % Forces amsmath
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.