In most bibtex styles the information about url and the date when the web page has been accessed can be stored in the howpublished
field (in free format).
A second alternative is to modify the itmalpha
style to accommodate the two fields. The styles does not support url
and lastchecked
. Thus the first step is to insert these two fields in the ENTRY
part of the style:
ENTRY
{ address
...
lastchecked
url
...
}
{}
{ label extra.label sort.label }
Then, we create a function to print the value of the fields. Thus we insert the following code in the file
FUNCTION {format.url.lastchecked}
{
url empty$
'skip$
{ "Available at: \url{" url * "}" *
lastchecked empty$
'skip$
{ "Accessed on: " lastchecked * }
if$
}
if$
}
Finally, we have to use the function at the appropriate position (in the definition of misc
). We can replace the definition of misc
with
FUNCTION {misc}
{ output.bibitem
author empty$ % added by R.Bless
{ format.editors output.nonnull } % added by R.Bless
{ format.authors "author" output.check } % added by R.Bless
if$
title howpublished new.block.checkb
format.title output
howpublished new.block.checka
howpublished output
organization output
institution output
format.date output
fin.entry
format.url.lastchecked output
new.block
note output
fin.entry
empty.misc.check
}
Instead of editing the itmalpha.sty
file, please make a copy, edit it, and rename it (e.g. myitmalpha.sty
).
PS I have used \url{}
to wrap the value of the bibtex url
field, this requires to load an appropriate style, e.g., url
or hyperref
.
unsrt
numbers citations in the order they appear in the document. The 2
in the \cite{}
command and in the .bib
file is just the "key" that's used to refer to the entry; it has nothing to do with the numbering of the citations.
I don't see how it could simplify the citations: the whole point of BibTeX is to make it so you don't have to worry about any of this stuff (see my notes below).
You can use \nocite{<keys>}
to force the order.
But first, in general, numerical keys are very confusing:
- Say you add a citation to the beginning of the document. Will you then go back through and re-name every single key and reference to it?
When writing the document, most people say,
Oh, here I need to cite Duckington's first paper from 1998!
and write \cite{duckington98a}
or whatever pattern they've chosen, not
Oh, now I'm on citation n, let me type \cite{n}
and then go add an entry to my .bib
file with exactly that number.
- Multiple cites: you'll have to constantly go back and remember what number belongs with what reference. If you use author names this is much easier to commit to memory.
Here's how you could do it if you really wanted to:
\begin{filecontents}{myrefs.bib}
@article{1,
author ={H. Durrant-Whyte, T. Bailey},
title = {Simultaneous localization and mapping: part I},
publisher = "Robotics Automation Magazine, IEEE",
year = {2006},
volume = "13",
pages = {99-110}
}
@incollection{2,
year={1996},
isbn={978-1-4471-1257-0},
booktitle={Robotics Research},
editor={Giralt, Georges and Hirzinger, Gerhard},
doi={10.1007/978-1-4471-1021-7_69},
title={Localization of Autonomous Guided Vehicles},
url={http://dx.doi.org/10.1007/978-1-4471-1021-7_69},
publisher={Springer London},
author={Durrant-Whyte, Hugh and Rye, David and Nebot, Eduardo},
pages={613-625},
language={English}
}
@book{3,
author = "Mr. X",
title = {Mr. X Knows BibTeX},
publisher = "AWOL",
YEAR = 2005,
}
@misc{ 4,
author = "Nobody Jr",
title = "My Article",
year = "2006" }
\end{filecontents}
\documentclass{article}
\begin{document}
\nocite{1,2,3,4} % force the order here
hshshhhs \cite{2} \cite{1} \cite{3} \cite{4}
\bibliographystyle{unsrt}
\bibliography{myrefs}
\end{document}
Best Answer
I updated my latex packages and found that there are no
gost71*
files (but don't know why it didn't work before update). There are new standards which should be used withgost2003*
andgost2008*
styles.