\documentclass[11pt]{moderncv}
\RequirePackage{ifxetex}

% moderncv styles
%\moderncvstyle{casual}
%\moderncvstyle[nocolor]{casual}
%\moderncvstyle{classic}
%\moderncvstyle[roman]{classic}
\moderncvtheme[blue]{classic}

\ifxetex%
  \RequirePackage{fontspec}% font selecting commands
  \RequirePackage{xunicode}% unicode character macros
  \RequirePackage{xltxtra}% a few fixes and extras
  \setmainfont{Times New Roman}%The IEEE Slovenia conference wants Times
  \PassOptionsToPackage{warn}{textcomp}%
  %% Turn substitutions from errors into warnings on
  %% the textcomp package.
  %% This is needed because some fonts do not have a \textohm for siunitx
  \RequirePackage{textcomp}% special glyphs
\else
  \RequirePackage[T1]{fontenc}
  \RequirePackage[utf8]{inputenc}  % allows UTF encoding, needed for Icelandic characters

\fi

% character encoding
%\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}  % allows UTF encoding, needed for Icelandic characters
% But not needed if we are using XeLaTeX

% biblatex/biber citations
%% We set when etal is used in maxnames=XX
\usepackage[backend=biber, bibencoding=utf8, style=ieee, maxnames=99]{biblatex}
%\usepackage[backend=biber, bibencoding=utf8, style=apa]{biblatex}
%\usepackage[american]{babel}
%\DeclareLanguageMapping{american}{american-apa}  % after biblatex and babel
\usepackage[margin=20mm]{geometry}
\addbibresource{references.bib}
\addbibresource{references-collections.bib}


% resize margins if needed, mostly for A4
%\usepackage[scale=0.8]{geometry}
\hyphenpenalty=5000
\tolerance=500

% personal data
\firstname{Dr.\ Joseph T.}
\familyname{Foley}
\title{Assistant Professor, Reykjavík University}
%\address{12 somestreet}{3456 somecity} % for classic style
%\address{11 Ticklefancy Lane}{Salem, NH 03079 USA} % for casual style
%\phone{(617)395-0383} %Vonage
%\mobile{(617)233-4590} %Cellphone
%\email{foley@alum.mit.edu}
\address{Menntavegur 1}{101 Reykjavík, Iceland} % for casual style
%\address{Álakvísl 39}{110 Reykjavík, Iceland} % for casual style
%\phone{+1(617)395--0383} %Vonage°
\phone{+354--599--6569} %RU
%\mobile{+354--661--7658} %Cellphone
%\email{foley@ru.is}
\email{foley@ru.is}
%\photo{foley-crop-lowres}
%\extrainfo{{\small married with childrens}}
%\quote{}

%\renewcommand{\listsymbol}{{\fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}}}
%\definecolor{see}{rgb}{0.5,0.5,0.5}

% command for text subscripts
%\newcommand{\up}[1]{\ensuremath{^\textrm{\scriptsize#1}}}


% slanted small caps (only with roman family; the sans serif font doesn't exists :-()
%\usepackage{slantsc}
%\DeclareFontFamily{T1}{myfont}{}
%\DeclareFontShape{T1}{myfont}{m}{scsl}{ <-> cork-lmssqbo8}{}
%\usefont{T1}{myfont}{m}{scsl}Testing the font


%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\hyphenpenalty=5000
\tolerance=500
\begin{document}
%\maketitle
%\makequote
\textbf{Dr.\ Joseph T. Foley <foley AT ru.is>, Assistant Professor\\Reykjavík University Science and Engineering Department}
\section{Education}
% june 21, 2007
\cventry{2000--2007}{Ph.D.\ in Mechanical
  Engineering}{Massachusetts Institute of Technology~(MIT)}{}{}{} 
% june 1, 1999
\cventry{1998--1999}{M.Eng.\ in Computer Science and
  Electrical Engineering}{MIT}{}{}{} 
\cventry{1994--1999}{B.Sc.\ in Computer Science and
  Electrical Engineering}{MIT}{}{}{} 

% \section{Doctor of Philosophy Dissertation}
% \cvitem{title}{\emph{Security Approaches for Radio Frequency
%     Identification Systems}} 
% \cvitem{supervisor}{Professor Sanjay Sarma}
% \cvitem{description}{\small Describes preventative measures
% and protection from the privacy invasion potential associated with
% ubiquitous Radio Frequency Identification (RFID) while still
% maintaining capabilities to track items and prevent theft.  The unified RFID protection system is called TinFoil.}

% \section{Master Thesis}
% \cvitem{title}{\emph{An Infrastructure for Electromechanical
% Appliances on the Internet}} 
% \cvitem{supervisor}{Professor Sanjay Sarma}
% \cvitem{description}{\small Design and implementation of an Radio
% Frequency Identification(RFID) and Internet enabled appliance.  The
% design focused on general methods applicable to a wide variety of
% intelligent devices.  Fundamental development of ONS and EPC technologies.}

\setlength{\parskip}{0.7\baselineskip}
%\newcommand{\cvbibentry}[1]{\cventry{\citeyear{#1}}{\citetitle{#1}}{\fullcite{#1}}{}{}{}}
\newcommand{\cvbibentry}[1]{\fullcite{#1}\par}

\section{Published Work}
\cvbibentry{foley2017antenna}%01015
\cvbibentry{foley2017faucet}%01009
%\cvbibentry{foley2017motorcyclelift}%01008
%\cvbibentry{foley2017adjustadesk}%01002
\cvbibentry{breznik2017collaborative}
\cvbibentry{foley2017msddontology}
\cvbibentry{petursson2017smaspring}
%\cvbibentry{erlingsson2016roboclaw}
\cvbibentry{foley2016desirable}
\cvbibentry{guls2016auvlight}
%\cvbibentry{gerhard2016suretrack}
%\cvbibentry{omarsdottir2016chessmate}
\cvbibentry{puik2016ignorance}
%\cvbibentry{foley2016evaluating}
\cvbibentry{foley2016creative}
\cvbibentry{cochran2016hospital}
\cvbibentry{cochran2016msdd}

\end{document}
\section{Invited Talks and Presentations}
%\cventry{2018}{Axiomatic Design and Desirable Complexity}{Joe
%Foley}{IWSSIP 2018 --- 25th International Conference on Systems, Signals, and Image Processing}{Maribor, Slovenia, June 20}{}{}

\cventry{2017}{Axiomatic Design for Everyone}{Joe
Foley}{International Conference on Axiomatic Design Tutorial}{
Iasi, Romania, September 11}{}{}
\cventry{2014}{Raspberry Pi: Affordable Embedded Linux}{Joe
Foley}{Félag rafeindavirkja  (Icelandic Electronics Association) Keynote}{Stórhöfði 29,
Reykjavík 110, May 29}{}{}

\section{Intellectual Property}
\cventry{2014}{iPad Video Control}{Joe
  Foley}{}{}{Modular cgi-based iPad Video control system for use with
  Raspberry Pi.  Developed for the Reykjavík Art Museum.}
\cventry{2013}{DVD and Blue-ray Art Installation Synchronizer}{Joe
  Foley}{}{}{Arduino system for video synchronization.  Developed for
  the Reykjavík Art Museum}
\cventry{2013}{US Patent 8,384,546 ``Tag Anti-Countefeit
  Systems''}{Joseph T. Foley, Sanjay E. Sarma, and Steve Weis}{}{}{}
\cventry{2011}{US Patent 20110083325 A ``Method of Manufacturing a
  Nickel Titanium Coil Actuator''}{M. Jolda and J. Foley, iRobot Patent }{}{}{}
\cventry{2011}{Google Code ``arduino-roomba''}{Joe Foley}{}{}{Library
  for interfacing an Arduino and iRobot Create/Roomba.  GPL2.}
\cventry{2000}{US Patent 7,765,253 ``Object Name Service''}{Joseph
  Foley, Erik Nygren, \& Sanjay Sarma.  MIT TLO 9789}{}{}{}

  
\section{Research Grants}
\cventry{September 2012-January 2013}{Advisor}{RANNIS Technology Fund
  (Tækjniróunarsjóður)}{Menntavegur 1,
  Reykjavík 101, Iceland}{}{Grant: Automated Pinbone Removal in Cod
  and Whitefish (APRICOT).  PI:~Kristinn Andersen (Marel)}
\cventry{June 2011-September 2011}{Advisor}{RANNIS Student Innovation
  Fund (Nýsköpunarsjóður námsmanna)}{Menntavegur 1,
  Reykjavík 101, Iceland}{}{Grant: ``CNC foam-cutter for micro air
  vehicle wings'' for student research salary during summer.  Advised software and mechanical
  undergraduates in the design and construction of a high-precision,
  low-cost computer-controlled (CNC) hot-wire foam cutter for the prototyping of small-scale
  foam-composite aircraft wings.  Materials funded from RANNIS ``Flapping-wing
  Unmanned Air Vehicle''.  } 
   

%\section{Section with a list}
%\cvlistitem{lol}
%\cvlistitem{lol}
%\cvlistdoubleitem{lol}{relol}
%\cvlistdoubleitem{lol}{relol}

%\section{Section wit h your own content}\closesection
%Your content here,\\
%inside the normal \LaTeX{} environment.

%\emptysection{}
%\cvitem{Now}{Back to moderncv layout, without making a new section :-)}

%\hyphenpenalty=50
%\tolerance=100
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% End:
