Commits

James Tocknell  committed 302a3dd

Fixed some math macros and includes

  • Participants
  • Parent commits 0450195

Comments (0)

Files changed (2)

File 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}}
+}

File 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