Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions authesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

\LoadClass[letterpaper,12pt,oneside]{report}

\RequirePackage{xkeyval}

\RequirePackage[english]{babel}
\RequirePackage{geometry}
\RequirePackage{setspace}
Expand All @@ -37,16 +39,21 @@
% Dissertation (default) or thesis
\newif\ifdissertation
\dissertationtrue
\DeclareOption{thesis}{\dissertationfalse}
\DeclareOptionX{thesis}{\dissertationfalse}
% Whether to print copyright notice
\newif\ifcopyright
\copyrighttrue
\DeclareOption{nocopyright}{\copyrightfalse}
\DeclareOptionX{nocopyright}{\copyrightfalse}
% Whether to make the text ragged
\newif\ifragged
\raggedfalse
\DeclareOption{ragged}{\raggedtrue}
\ProcessOptions\relax
\DeclareOptionX{ragged}{\raggedtrue}
% Bibliography style
\PassOptionsToPackage{style=phys}{biblatex}
\DeclareOptionX{bibstyle}[phys]{
\PassOptionsToPackage{style=#1}{biblatex}
}
\ProcessOptionsX\relax

% Default formatting
\newgeometry{margin=1in}
Expand Down Expand Up @@ -232,3 +239,9 @@
\renewcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.5em}}
\renewcommand*{\l@figure}{\@dottedtocline{0}{0em}{2.5em}}
\renewcommand*{\l@table}{\@dottedtocline{0}{0em}{2.5em}}

% bibliography
\RequirePackage[backend=biber, biblabel=brackets, defernumbers=true]{biblatex}
\DeclareCiteCommand{\citenum}{}{\bibhyperref{\printfield{labelnumber}}}{\multicitedelim}{}
\setlength{\bibitemsep}{\baselineskip}
\AtBeginBibliography{\singlespacing}
8 changes: 5 additions & 3 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
% * thesis: Master's thesis rather than dissertation
% * nocopyright: Disable copyright notice
% * ragged: Use ragged right edge rather than justified text (better for accessibility)
% * bibstyle: biblatex bibliography style
\documentclass{authesis}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -30,11 +31,12 @@
% \includegraphics[alt={Alt text...}]{image.png}
\usepackage{graphicx}

% Bibliography. biber must be set as the backend, style can be changed.
% Bibliography (uses biblatex with biber as backend)
% Set the bibliography style using the bibstyle option of the class.
% Most other options can be changed here using
% \ExecuteBibliographyOptions{}
\usepackage[hidelinks,pdfusetitle]{hyperref}
\urlstyle{same}
\usepackage[backend=biber,style=phys,biblabel=brackets,defernumbers=true]{biblatex}
\DeclareCiteCommand{\citenum}{}{\bibhyperref{\printfield{labelnumber}}}{\multicitedelim}{}
\addbibresource{./references.bib}

% Footnotes
Expand Down
Loading