%% Everything inspirehep.sty does, in one page.
%%
%% Build it either way:
%%   pdflatex -shell-escape example.tex   (twice; the package fetches for you)
%%   python3 ../inspirehep-fetch.py example.tex && pdflatex example.tex

\documentclass[11pt]{article}
\usepackage[hidelinks]{hyperref}
\usepackage[plots]{inspirehep}

\usepackage{xcolor}
\definecolor{citegrey}{gray}{0.40}
\renewcommand{\inspirecitesformat}[1]{\nobreakspace{\small\color{citegrey}[#1]}}

\pagestyle{empty}
\setlength{\parindent}{0pt}

\begin{document}

\section*{Publications}

Hand each entry an INSPIRE id; the title and the count come back.

\begin{enumerate}\itemsep0.5em
  \item \inspirepub{2642414}
  \item \inspirepub[year]{1701002}
  \item \inspirepub[title={A title in my own words}]{1298030}
\end{enumerate}

The full reference, as INSPIRE itself formats it:

\inspireref[cites=false]{1701002}

\section*{A person}

Author-level figures take the id they ask about, so a document can discuss
several people:

\inspirepapers[round=100]{1071846} papers, over
\inspirecitations[round=1000]{1071846} citations, $h$-index
\inspirehindex{1071846}.

\section*{Over time}

Citations of one paper, per year:

\inspireplot{2642414}

Papers by one person, per year:

\inspireauthorplot{1071846}{papers}

\end{document}
