I have a simple LaTeX document that has some BibTeX references:
\documentclass[12pt]{article}
\begin{document}
\section{First section}
This document is an example of \texttt{thebibliography} environment using
in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion}
book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the
Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are
\cite{latexcompanion,knuthwebsite}.
\medskip
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
The output of this is as follows.
I would like to change the numbering of the reference in the text and in the References section with some set of specific numbers of my choice. How can I do this?
Let us say I would like to have something like this:
1 First section
This document is an example of thebibliography environment using in
bibliography management. Three items are cited: The LATEX Companion
book [11], the Einstein journal paper [22], and the Donald Knuth's website [33].
The LATEX related items are [11, 33].
References
[11] Michel Goossens, Frank Mittelbach, and Alexander Samarin. The LATEX
Companion. Addison-Wesley, Reading, Massachusetts, 1993.
[22] Albert Einstein. Zur Elektrodynamik bewegter Korper. (German) [On the
electrodynamics of moving bodies]. Annalen der Physik, 322(10):891{921,
1905.
[33] Donald Knuth. Knuth: Computers and typesetting.
Can I do this with LaTeX and BibTeX?
Best Answer
You can first prepare your bibliography in the usual way. Then you can set the numbers you prefer in the way shown below, by adding the code between
%%START
and%%END
.The
filecontents
environment is used just for the example, use your own database.I used the same data as Alan Munn just for laziness.