James Tocknell avatar James Tocknell committed 0ceeac6 Merge

Merged

Comments (0)

Files changed (5)

texmf/tex/aragilar/aragilar-thesis.sty

 %% Packages
 \RequirePackage{pgfopts}
 %% Define keys
+\newif\ifmaths
+\newif\ifphysics
+\newif\ifbiblatex
+\newif\ifthesisfront
+\newif\ifappearence
+
 \pgfkeys{
   /ARAXTX/.cd,
-%  % Maths
-%  maths/.store in=\ARAXTX@maths,
-%  maths/.default=true,
-%  % Physics
-%  physics/.store in=\ARAXTX@physics,
-%  physics/.default=true,
+  % Maths
+  maths/.is if=maths,
+  maths/.default=true,
+  % Physics
+  physics/.is if=physics,
+  physics/.default=true,
+  % Biblatex
+  biblatex/.is if=biblatex,
+  biblatex/.default=true,
+  thesis-frontmatter/.is if=thesisfront,
+  thesis-frontmatter/.default=true,
   % Appearence
+  appearence/.is if=appearence,
+  appearence/.default=true,
   colour/.store in=\ARAXTX@colour,
   colour/.default=true,
 %
 
 %% Define keys if not defined
 \pgfkeysifdefined{/ARAXTX/colour}{}{\pgfkeys{/ARAXTX/colour=true}}
+\pgfkeysifdefined{/ARAXTX/maths}{}{\pgfkeys{/ARAXTX/maths=true}}
+\pgfkeysifdefined{/ARAXTX/physics}{}{\pgfkeys{/ARAXTX/physics=true}}
+\pgfkeysifdefined{/ARAXTX/biblatex}{}{\pgfkeys{/ARAXTX/biblatex=true}}
+\pgfkeysifdefined{/ARAXTX/appearence}{}{\pgfkeys{/ARAXTX/appearence=true}}
 
 \ProcessPgfOptions{/ARAXTX}
 
 %%%% LOAD MY STYLES %%%% 
-\RequirePackage{sanemath} % Sane math setup using AMSTeX
-\RequirePackage{physics} % Provides units and physics/astro macros
+\ifmaths
+  \RequirePackage{sanemath} % Sane math setup using AMSTeX
+\fi
+
+\ifphysics
+  \RequirePackage{usefulphysics} % Provides units and physics/astro macros
+\fi
+
 \RequirePackage{unicode-tex} % Provides setup for using unicode for text and math
-\RequirePackage[colour=\ARAXTX@colour,width=10cm]{appearence} % Sets page outline and style
-\RequirePackage{sane-biblatex}
+
+\ifappearence
+  \RequirePackage[colour=\ARAXTX@colour,width=10cm]{appearence} % Sets page outline and style
+\fi
+
+\ifbiblatex
+  \RequirePackage{sane-biblatex}
+\fi
+
 \RequirePackage[colour=\ARAXTX@colour]{code-formatting} % Formats code nicely
-\RequirePackage[titlewidth=\textwidth, abstractwidth=9cm]{thesis-frontmatter}
+\ifthesisfront
+  \RequirePackage[titlewidth=\textwidth, abstractwidth=9cm]{thesis-frontmatter}
+\fi
+
 \RequirePackage{pgf-matplotlib}
+
 \RequirePackage{font-settings}
 
 %\RequirePackage{classicthesis} % Thesis format
 \RequirePackage{refstyle}
 \RequirePackage[normalem]{ulem}
-\RequirePackage{bigfoot}
+%\RequirePackage{bigfoot}
+\RequirePackage{url}
+\RequirePackage{float}
+\RequirePackage{array}
 
+\ifappearence
 %%%% FONTS %%%%
 %% Heading Fonts
 %\allsectionsfont{\fontspec[SmallCapsFeatures={Letters=SmallCaps},]{Gillius ADF No2mod}\scshape} %scshape gives small caps
 \allsectionsfont{\fontspec[SmallCapsFeatures={Letters=SmallCaps},]{TeX Gyre Pagella}\scshape} %scshape gives small caps
 %\allsectionsfont{\fontspec[Letters=SmallCaps]{Latin Modern Roman Caps}} %scshape gives small caps
+\fi
 
 %% Some convenience macros
 \newcommand{\codename}[1]{\texttt{#1}}

texmf/tex/aragilar/astro-paper.sty

+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{astro-paper}
+
+\RequirePackage[utf8]{inputenx}
+\input{ix-utf8enc.dfu}
+\RequirePackage{textcomp}
+
+\RequirePackage[intlimits]{amsmath}
+\RequirePackage{amssymb}
+
+\RequirePackage{refstyle}
+
+\RequirePackage{threeparttable}
+
+\RequirePackage{url}
+
+\RequirePackage{natbib}
+
+\RequirePackage{array}
+
+\RequirePackage{caption}
+
+%% Units plus other Physics/Astro Macros
+\RequirePackage[squaren]{SIunits}
+
+\newcommand{\Msun}{\text{M}_{\odot}}
+\newcommand{\uarcsec}{\text{\,arc\,sec}}
+\newcommand{\erg}{\text{erg}}
+\newcommand{\gauss}{\text{G}}
+\newcommand{\astronomicalunit}{\text{AU}}
+\newcommand{\uyear}{\text{yr}}%conflicts with \year
+\newcommand{\parsec}{\text{pc}}
+
+\newcommand{\kms}{\kilo\metre\usk\reciprocal\second}
+\newcommand{\kpc}{\kilo\parsec}
+\newcommand{\kmskpc}{\kms\usk\reciprocal\kpc}
+\newcommand{\yrkpc}{\uyear\usk\reciprocal\kpc}
+
+\newcommand{\mathto}{\text{ to }}
+\newcommand{\mathand}{\text{ and }}
+
+\newcommand{\vect}[1]{\mathbf{#1}}
+
+
+\newcommand{\codename}[1]{\texttt{#1}}
+\newcommand{\funcname}[1]{\texttt{#1}}
+\newcommand{\diffopt}[1]{\frac{d #1}{d\tau}}

texmf/tex/aragilar/physics.sty

-\ProvidesPackage{physics}
-
-%% Units plus other Physics/Astro Macros
-\RequirePackage[squaren]{SIunits}
-
-\newcommand{\Msun}{\text{M}_{\odot}}
-\newcommand{\arcsec}{\text{\,arc\,sec}}
-\newcommand{\erg}{\text{erg}}
-\newcommand{\gauss}{\text{G}}
-\newcommand{\astronomicalunit}{\text{AU}}
-\newcommand{\uyear}{\text{yr}}%conflicts with \year
-\newcommand{\parsec}{\text{pc}}
-
-\newcommand{\mathto}{\text{ to }}
-
-\newcommand{\vect}[1]{\mathbf{#1}}

texmf/tex/aragilar/sanemath.sty

 \ProvidesPackage{sanemath}
 
+%%%% SETTING UP CONFIGURATION ENVIRONMENT %%%%
+%% Packages
+\RequirePackage{pgfopts}
+%% Define keys
+\newif\ifbraket
+\newif\iftheorems
+\pgfkeys{
+  /ARAMATH/.cd,
+  braket/.is if=braket,
+  braket/.default=false,
+  theorems/.is if=theorems,
+  theorems/.default=false,
+}
+
+%% Define keys if not defined
+\pgfkeysifdefined{/ARAMATH/braket}{}{\pgfkeys{/ARAMATH/braket=false}}
+\pgfkeysifdefined{/ARAMATH/theorems}{}{\pgfkeys{/ARAMATH/theorems=false}}
+
+\ProcessPgfOptions{/ARAMATH}
+
 %%%% MAIN PACKAGES %%%%
 \RequirePackage[intlimits]{amsmath}
 
-%% put in if
-\RequirePackage{braket} % Provides \Bra,\Ket,\Braket,\Set
+\ifbraket
+  \RequirePackage{braket} % Provides \Bra,\Ket,\Braket,\Set
+\fi
 
-%% put in if
-\RequirePackage[standard,hyperref,amsmath,thmmarks,thref]{ntheorem}
-
-%%%% THEOREM DEFINITIONS %%%%
-%% Unnumbered versions of theorem environments
-\theorembodyfont{\upshape}
-\theoremstyle{nonumberplain}
-\newtheorem{note}{Note}
-\newtheorem{Note}{Note}
-\newtheorem{unnumberedexample}{Example}
-
-%% New theorem environments
-\theoremstyle{nonumberplain}
-\theoremheaderfont{\scshape}
-\theorembodyfont{\normalfont}
-\newtheorem{proofoutline}{Outline of Proof}
-
+\iftheorems
+  \RequirePackage[standard,hyperref,amsmath,thmmarks,thref]{ntheorem}
+  
+  %%% THEOREM DEFINITIONS %%%
+  %% Unnumbered versions of theorem environments
+  \theorembodyfont{\upshape}
+  \theoremstyle{nonumberplain}
+  \newtheorem{note}{Note}
+  \newtheorem{Note}{Note}
+  \newtheorem{unnumberedexample}{Example}
+  
+  %% New theorem environments
+  \theoremstyle{nonumberplain}
+  \theoremheaderfont{\scshape}
+  \theorembodyfont{\normalfont}
+  \newtheorem{proofoutline}{Outline of Proof}
+\fi
 
 %% put in if
 %%%% USEFUL TERMS %%%%

texmf/tex/aragilar/usefulphysics.sty

+\ProvidesPackage{usefulphysics}
+
+%% Units plus other Physics/Astro Macros
+\RequirePackage[squaren]{SIunits}
+
+\newcommand{\Msun}{\text{M}_{\odot}}
+\renewcommand{\arcsec}{\text{\,arc\,sec}}
+\newcommand{\erg}{\text{erg}}
+\newcommand{\gauss}{\text{G}}
+\newcommand{\astronomicalunit}{\text{AU}}
+\newcommand{\uyear}{\text{yr}}%conflicts with \year
+\newcommand{\parsec}{\text{pc}}
+
+\newcommand{\mathto}{\text{ to }}
+
+\newcommand{\vect}[1]{\mathbf{#1}}
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.