| 1 |
\documentclass{article} |
| 2 |
\usepackage[numbers]{natbib} |
| 3 |
\usepackage{hyperref,alltt} |
| 4 |
\usepackage[resetlabels]{multibib} |
| 5 |
\newcommand{\BibTeX}{\textsc{Bib}\TeX} |
| 6 |
\newcites{tex}{Books and articles about \TeX} |
| 7 |
\newcites{typography}{Books and articles about typography} |
| 8 |
\begin{document} |
| 9 |
|
| 10 |
\title{User Guide for \texttt{bestpapers.bst} Bibliography Style} |
| 11 |
\author{Boris Veytsman\thanks{This work was commissioned by Consumer |
| 12 |
Financial Protection Bureau, United States Treasury. This file |
| 13 |
and the package are in the public domain}} |
| 14 |
\date{October 2014} |
| 15 |
\maketitle |
| 16 |
|
| 17 |
\section{Introduction} |
| 18 |
\label{sec:intro} |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
Many people preparing their r\'esum\'es find the requirement ``please |
| 23 |
list five (or six, or ten) papers authored by you''. The same |
| 24 |
requirement is often stated for reports prepared by professional |
| 25 |
teams. The creation of such lists may be a cumbersome task. Even more |
| 26 |
difficult is to support the lists over the time, when one adds new |
| 27 |
papers. The style \texttt{bestpapers.bst} is intended to make this task |
| 28 |
simpler. It is based on the idea that it is easier to score than to |
| 29 |
sort: we can assign a score to a paper, and then let the computer to |
| 30 |
select the papers with highest scores. |
| 31 |
|
| 32 |
\section{Simple Usage} |
| 33 |
\label{sec:simple} |
| 34 |
|
| 35 |
The use of the package is simple. We assume that you keep all your |
| 36 |
publications in a \BibTeX\ file (or files). Then, |
| 37 |
\begin{enumerate} |
| 38 |
\item Add to each bibliographic entry in the file the field |
| 39 |
\begin{alltt} |
| 40 |
score = \itshape SCORE |
| 41 |
\end{alltt} |
| 42 |
where \texttt{\itshape SCORE} is an non-negative integer. The |
| 43 |
higher the score is, the more you think about the paper. Since only |
| 44 |
the relation between scores matter, you may limit yourself to scores |
| 45 |
between, say, $0$ and $100$. An absent score is equivalent to |
| 46 |
\texttt{score=0}. |
| 47 |
\item Add to the preamble of your r\'esum\'e |
| 48 |
\begin{verbatim} |
| 49 |
\usepackage[numbers]{natbib} |
| 50 |
\end{verbatim} |
| 51 |
and to the document itself |
| 52 |
\begin{verbatim} |
| 53 |
\renewcommand{\refname}{My Best Works} |
| 54 |
\nocite{*} |
| 55 |
\bibliography{myworks} |
| 56 |
\bibliographystyle{bestpapers} |
| 57 |
\end{verbatim} |
| 58 |
\item You document will get the list of five~best works, sorted by |
| 59 |
decreasing scores. |
| 60 |
\end{enumerate} |
| 61 |
|
| 62 |
|
| 63 |
\section{Customization} |
| 64 |
\label{sec:custom} |
| 65 |
|
| 66 |
|
| 67 |
Sometimes you need to change the number of best papers displayed. |
| 68 |
The package introduces a new entry type \verb|@SETUP| with the |
| 69 |
field \verb|max.best.papers|, for example, |
| 70 |
\begin{verbatim} |
| 71 |
@SETUP{setup, |
| 72 |
max.best.papers = 6, |
| 73 |
} |
| 74 |
\end{verbatim} |
| 75 |
|
| 76 |
Normally the score of the papers is not printed. However, for debug |
| 77 |
purposes you can change this: just define the command |
| 78 |
\verb|\PrintScore|, for example |
| 79 |
\begin{verbatim} |
| 80 |
\newcommand{\PrintScore}[1]{Score: #1} |
| 81 |
\end{verbatim} |
| 82 |
|
| 83 |
\section{Bibexport} |
| 84 |
\label{sec:bibexport} |
| 85 |
|
| 86 |
Sometimes you need to extract your best works from \texttt{.bib} files |
| 87 |
rather than typeset the list of them. You can use for this the |
| 88 |
program \textsl{bibexport} (\url{http://www.ctan.org/pkg/bibexport}), a |
| 89 |
handy tool for the manipulation of \BibTeX\ databases. The package |
| 90 |
provides the style \texttt{bestpapers-export.bst} intended for this |
| 91 |
task. |
| 92 |
|
| 93 |
To extract the best works from the files \texttt{myworks.bib} and |
| 94 |
\texttt{ourworks.bib} into the file \texttt{result.bib}, |
| 95 |
\begin{enumerate} |
| 96 |
\item Create the file \texttt{extract.aux} with the following content: |
| 97 |
\begin{verbatim} |
| 98 |
\citation{*} |
| 99 |
\bibdata{myworks,ourworks} |
| 100 |
\bibstyle{bestpapers-export} |
| 101 |
\end{verbatim} |
| 102 |
|
| 103 |
\item If necessary, add to any of these files \texttt{@SETUP} entry as |
| 104 |
described in Section~\ref{sec:custom}. |
| 105 |
\item Run |
| 106 |
\begin{verbatim} |
| 107 |
bibexport -b bestpapers-export -o result.bib export.aux |
| 108 |
\end{verbatim} |
| 109 |
|
| 110 |
\end{enumerate} |
| 111 |
|
| 112 |
|
| 113 |
\section{Multiple Bibliographies} |
| 114 |
\label{sec:multiple} |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
Sometimes you need to have collective report and provide several |
| 119 |
best papers for each person in the group. The package |
| 120 |
\texttt{multibib} allows you to do this: |
| 121 |
\begin{verbatim} |
| 122 |
\usepackage{multibib} |
| 123 |
\newcites{chico,harpo,groucho,zeppo}{Chico's Papers,% |
| 124 |
Harpo's Papers,% |
| 125 |
Groucho's Papers,% |
| 126 |
Zeppo's Papers} |
| 127 |
... |
| 128 |
\nocitechico{*} |
| 129 |
\bibliographychico{chico.bib} |
| 130 |
\bibliographystylechico{bestpapers} |
| 131 |
|
| 132 |
\nociteharpo{*} |
| 133 |
\bibliographyharpo{harpo.bib} |
| 134 |
\bibliographystyleharpo{bestpapers} |
| 135 |
|
| 136 |
\nocitegroucho{*} |
| 137 |
\bibliographygroucho{groucho.bib} |
| 138 |
\bibliographystylegroucho{bestpapers} |
| 139 |
|
| 140 |
\nocitezeppo{*} |
| 141 |
\bibliographyzeppo{zeppo.bib} |
| 142 |
\bibliographystylezeppo{bestpapers} |
| 143 |
\end{verbatim} |
| 144 |
|
| 145 |
Note that you may want to use \texttt{resetlabels} option of the |
| 146 |
\texttt{multibib} package if you want all the lists to start from~1. |
| 147 |
|
| 148 |
An example of this usage is the source code of this file, which lists |
| 149 |
6~books about \TeX\ and 5~books about typography separately. |
| 150 |
|
| 151 |
\nocitetex{*} |
| 152 |
\nocitetypography{*} |
| 153 |
\bibliographytex{tex} |
| 154 |
\bibliographystyletex{bestpapers} |
| 155 |
\bibliographytypography{typography} |
| 156 |
\bibliographystyletypography{bestpapers} |
| 157 |
|
| 158 |
\end{document} |