\documentclass[10pt]{article}
\pagestyle{empty}               % no page numbers, thanks.
%\usepackage{hyperref}
\usepackage{tabularx}
\usepackage{ifthen}
\usepackage[tiny]{titlesec}
\usepackage[backend=biber,style=numeric-comp,sorting=none,giveninits=true,maxnames=20,eprint=false,isbn=false,defernumbers=true]{biblatex}
\usepackage{xstring}
\usepackage{textalpha} % <--- Greek letters in text

% Add bib file to make bibliography information
\addbibresource{../../Scholarship/scholarship.bib}


% Set page size
\textwidth = 6.5 in
\textheight = 9 in
\oddsidemargin = 0.0 in
\evensidemargin = 0.0 in
\topmargin = 0.0 in
\headheight = 0.0 in
\headsep = 0.0 in
\parindent= 0 in  

% This puts a little extra space in the  tables
\setlength{\extrarowheight}{2.5pt}
% Add counter for rows of tables
\newcounter{rowcnt}
\newcommand\rownum{\ifnumequal{\value{rowcnt}}{0}{}{\therowcnt.}\stepcounter{rowcnt}}
\AtEndEnvironment{tabularx}{\setcounter{rowcnt}{0}}



% Allow text to be rough at the bottom for better page splits
\raggedbottom

% Change the section spacing for better headings
%\titlespacing*{⟨command ⟩}{⟨left ⟩}{⟨before-sep ⟩}{⟨after-sep ⟩}
\titlespacing*{\section}{0cm}{*2.5}{*0.5}

% Commands to label graduate and undergraduate students
\providecommand{\us}{\textsuperscript{*}}
\providecommand{\gs}{\textsuperscript{+}}

\newcommand{\printhead}[1]{#1}
\newcommand{\conthead}[1]{#1 (continued)}
%\defbibheading{contbibnumbered}{{\bf #1\label{#1}}}
\defbibheading{contbibnumbered}{\section{#1\label{#1}}}
\newcommand{\tablecontinue}[1]{}
\newcommand{\tablehead}{\\}

 % Implement the colored circle in the bibliography
\newcounter{bibitem}
\AtBeginBibliography{\setcounter{bibitem}{1}}
\iffieldformatundef{labelnumberwidth}{%
  % if author-year style
  \AtEveryBibitem{\thebibitem. \stepcounter{bibitem}}%
}{%
  % if numeric style
  \DeclareFieldFormat{labelnumberwidth}{\thebibitem.}%
  \AtEveryBibitem{\stepcounter{bibitem}}%
}

% Remove some fields from journal articles
\AtEveryCitekey{\ifentrytype{article}{\clearfield{url}\clearfield{issn}\clearfield{review}\clearfield{series}\clearfield{eprint}}{}}
\AtEveryCitekey{\ifentrytype{misc}{\clearfield{url}\clearfield{issn}\clearfield{review}\clearfield{series}\clearfield{eprint}}{}}
\renewbibmacro*{url+urldate}{}
\renewbibmacro*{eprint}{}

% This adds the field citations to the bibliography data so I can add the number of citaitons
\begin{filecontents}{biblatex-dm.cfg}
\DeclareDatamodelFields[type=field, datatype=integer, nullok=true]{citations}
\DeclareDatamodelEntryfields{citations}
\end{filecontents}

% Remove the "In" from journal citations
\renewbibmacro*{in:}{%
  \setunit{\addcomma\space}%
  \ifentrytype{article}
    {}
    {\printtext{%
       \bibstring{in}\intitlepunct}}}

% Change volume, number format
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \setunit*{\addcomma\addspace}%
  \iffieldundef{number}{}{%
  \printtext{no\adddot\addspace}%
  }%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}
 
 % This adds the number of citations in brackets 
\renewbibmacro*{finentry}{
\printfield{citations}%
\finentry}
\DeclareFieldFormat{citations}{\mkbibbrackets{#1}}

% Change enumerate environment so that item's don't break across pages
\let\saveenumerate\enumerate
\let\saveendenumerate\endenumerate

\renewenvironment{enumerate}{%
    \saveenumerate
    \let\olditem\item
    \newcommand{\closestep}{}%
    \renewcommand{\item}{%
        \closestep
        \olditem
        \minipage[t]{\linewidth}%
        \renewcommand{\closestep}{\endminipage}%
    }%
}{%
    \closestep\saveendenumerate%
}

% Define the cvsection command
% optional argument is name of boolean and filename (defaults to second argument)
% second argument is the text to put in the pdf table of contents
% Third argument is the content to include  
\NewDocumentCommand\includeCheck{O{#2} m m}{
\ifthenelse{\boolean{#1}}{%
  \IfFileExists{#2.tex}{%
        #3%
  }%
  }{}%
 }


\newboolean{Journal}
\newboolean{Refereed}
\newboolean{Book}
\newboolean{Conference}
\newboolean{Patent}
\newboolean{Invited}
\newboolean{PersonalAwards}
\newboolean{StudentAwards}
\newboolean{Service}
\newboolean{Reviews}
\newboolean{GradAdvisees}
\newboolean{UndergradResearch}
\newboolean{Teaching}
\newboolean{Grants}
\newboolean{Proposals}

\setboolean{Journal}{true}
\setboolean{Refereed}{true}
\setboolean{Book}{true}
\setboolean{Conference}{true}
\setboolean{Patent}{true}
\setboolean{Invited}{true}
\setboolean{PersonalAwards}{true}
\setboolean{StudentAwards}{true}
\setboolean{Service}{true}
\setboolean{Reviews}{true}
\setboolean{GradAdvisees}{true}
\setboolean{UndergradResearch}{true}
\setboolean{Teaching}{true}
\setboolean{Grants}{true}
\setboolean{Proposals}{true}

\IfFileExists{exclusions.tex} {
\input{exclusions.tex}
}

\def\makenamesetup{%
  \def\bibnamedelima{~}%
  \def\bibnamedelimb{ }%
  \def\bibnamedelimc{ }%
  \def\bibnamedelimd{ }%
  \def\bibnamedelimi{ }%
  \def\bibinitperiod{.}%
  \def\bibinitdelim{~}%
  \def\bibinithyphendelim{.-}}    
\newcommand*{\makename}[2]{\begingroup\makenamesetup\xdef#1{#2}\endgroup}

\newcommand*{\boldname}[2]{%
  \def\lastname{#1}%
  \def\firstinit{#2}}
\boldname{}{}{}

% Patch new definitions
\renewcommand{\mkbibnamegiven}[1]{%
  \ifboolexpr{ test {\ifdefequal{\lastname}{\namepartfamily}} and test {\IfBeginWith{\namepartgiven}{\firstinit}}     }
  {\mkbibbold{#1}}{#1}%
}

\renewcommand{\mkbibnamefamily}[1]{%
  \ifboolexpr{ test {\ifdefequal{\lastname}{\namepartfamily}} and test {\IfBeginWith{\namepartgiven}{\firstinit}} }
  {\mkbibbold{#1}}{#1}%
}

