1. James Tocknell
  2. Tex settings

Commits

James Tocknell  committed f701941

Added stuff for tufte-latex usage, and fixed \year issue

  • Participants
  • Parent commits 77b0e76
  • Branches default

Comments (0)

Files changed (5)

File texmf/tex/aragilar/aragilar-beamer.sty

View file
  • Ignore whitespace
 \usefonttheme{professionalfonts}
 
 %%%% LOAD MY STYLES %%%% 
-\RequirePackage{sanemath} % Sane math setup using AMSTeX
+%\RequirePackage{sanemath} % Sane math setup using AMSTeX
 \RequirePackage{physics} % Provides units and physics/astro macros
 \RequirePackage{unicode-tex} % Provides setup for using unicode for text and math
 %\RequirePackage[colour=\ARABEM@colour]{pdfappearence} % Sets page outline and style

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

View file
  • Ignore whitespace
 \RequirePackage{references} % Sets up cross-references and bibliography
 %\RequirePackage[colour=\ARAXTX@colour]{code-formatting} % Formats code nicely
 
-
 %%%% FONTS %%%%
 %% Text Fonts
 %\setmainfont{Linux Libertine O}
 %\setmathfont{STIXGeneral}
 %\setmathfont{XITS Math}  %% NOT WORKING YET
 
+%%%% SPECIAL PAGES %%%%
+\newcommand{\coverpage}{
+  \newpage
+  \thispagestyle{empty}
+  {\Huge Needs a cover page}
+}
+
+\newcommand{\colophon}{
+  \newpage
+  \begin{fullwidth}
+  ~\vfill
+  \thispagestyle{empty}
+  \setlength{\parindent}{0pt}
+  \setlength{\parskip}{\baselineskip}
+  %Copyright \copyright\ \the\year\ \thanklessauthor
+
+  \par\textsc{{\TeX}ed by \thanklesspublisher}
+
+  %\par Licensed under the Apache License, Version 2.0 (the ``License''); you may not
+  %use this file except in compliance with the License. You may obtain a copy
+  %of the License at \url{http://www.apache.org/licenses/LICENSE-2.0}. Unless
+  %required by applicable law or agreed to in writing, software distributed
+  %under the License is distributed on an \smallcaps{``AS IS'' BASIS, WITHOUT
+  %WARRANTIES OR CONDITIONS OF ANY KIND}, either express or implied. See the
+  %License for the specific language governing permissions and limitations
+  %under the License.\index{license}
+
+  \par\textit{Last updated: \today}
+  \end{fullwidth}
+}
+
+%%%% 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.\@ }
+

File texmf/tex/aragilar/physics.sty

View file
  • Ignore whitespace
 \newcommand{\erg}{\text{erg}}
 \newcommand{\gauss}{\text{G}}
 \newcommand{\astronomicalunit}{\text{AU}}
-\renewcommand{\year}{\text{yr}}
+\newcommand{\uyear}{\text{yr}}%conflicts with \year
 
 \newcommand{\mathto}{\text{ to }}

File texmf/tex/aragilar/sanemath.sty

View file
  • Ignore whitespace
 \RequirePackage{amssymb}
 \RequirePackage{amsfonts}
 \RequirePackage{amsmath}
-\RequirePackage{amsthm}
 \RequirePackage[retainorgcmds]{IEEEtrantools} % For IEEEeqnarray
-\RequirePackage{textcomp}
+
+\RequirePackage[standard,hyperref,amsmath,thmmarks,thref]{ntheorem}
+
+\theorembodyfont{\upshape}
+\theoremstyle{nonumberplain}
+\newtheorem{note}{Note}
+\newtheorem{Note}{Note}
+\newtheorem{unnumberedexample}{Example}
+
 
 \RequirePackage[all]{onlyamsmath} % Forces amsmath

File texmf/tex/tufte-latex/tufte-book-local.tex

View file
  • Ignore whitespace
+  \titlecontents{part}% FIXME
+    [0em] % distance from left margin
+    {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
+    {\contentslabel{2em}} % before w/label (label = ``II'')
+    {} % before w/o label
+    {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
+    [\end{fullwidth}] % after
+  \titlecontents{chapter}%
+    [5em] % distance from left margin
+    {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
+    {\hspace*{0em}\contentslabel{2em}} % before w/label (label = ``2'')
+    {\hspace*{0em}} % before w/o label
+    {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
+    [\end{fullwidth}] % after
+  \titlecontents{section}% FIXME
+    [0em] % distance from left margin
+    {\vspace{1.5\baselineskip}\begin{fullwidth}\Large\rmfamily\itshape} % above (global formatting of entry)
+    {\hspace*{2em}\contentslabel{2em}} % before w/label (label = ``2.6'')
+    {\hspace*{2em}} % before w/o label
+    {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
+    [\end{fullwidth}] % after
+  \titlecontents{subsection}% FIXME
+    [0em] % distance from left margin
+    {\vspace{0\baselineskip}\begin{fullwidth}\large\rmfamily\itshape} % above (global formatting of entry)
+    {\hspace*{4em}\contentslabel{4em}} % before w/label (label = ``2.6.1'')
+    {\hspace*{4em}} % before w/o label
+    {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
+    [\end{fullwidth}] % after
+  \titlecontents{paragraph}% FIXME
+    [0em] % distance from left margin
+    {\vspace{0\baselineskip}\begin{fullwidth}\normalsize\rmfamily\itshape} % above (global formatting of entry)
+    {\hspace*{6em}\contentslabel{2em}} % before w/label (label = ``2.6.0.0.1'')
+    {\hspace*{6em}} % before w/o label
+    {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
+    [\end{fullwidth}] % after
+
+\setcounter{tocdepth}{2}