Use the key
field:
@misc{RT12,
key={some string reflecting how you wish the entry alphabetized},
Publisher={RT TV Network},
Title = {Anti-ACTA day: Angry crowds take action},
url = {http://rt.com/news/acta-protests-rallies-europe-089/}
}
Assuming you want the entry to be sorted as "RT TV Network", then use
key={RT TV Network}
The url
field is used only if the bibliography style knows about it. For example, with
\usepackage[numeric]{natbib}
\bibliographystyle{plainnat}
then URLs are showed. And the contents of key
will be used in place of the author.
Example
\begin{filecontents*}{\jobname.bib}
@misc{Madlena11,
Author={Chavala Madlena},
Publisher={Guardian},
Title = {Telecomix: tech support for the {Arab} spring},
url = {http://www.guardian.co.uk/technology/2011/jul/07/telecomix-arab-spring}
}
@misc{RT12,
key={aaaa},
Publisher={RT TV Network},
Title = {{Anti}-{ACTA} day: {Angry} crowds take action},
url = {http://rt.com/news/acta-protests-rallies-europe-089/}
}
\end{filecontents*}
\documentclass{article}
\usepackage[numbers]{natbib}
\usepackage{url}
\begin{document}
\cite{Madlena11}, \cite{RT12}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
The filecontents*
is just for having the .bib
file inside the source. Note also the braces to force capitalization.
When BibTex sees a sequence like {\"O}
or {\O}
, for sorting purposes these special characters are reduced to O
. The task is therefore to trick BibTex into thinking that the first example looks like Oe
, while the second should look like ZZZZZO
. For that, we introduce two macros, \donothing
and \printsecond
.
{\donothing{text}}
will show nothing in the final bibliography, but "text" will be taken into account for sorting, so {\"O}{\donothing{e}}
will print as "Ö", and sorted as "Oe".
{\printsecond{foo}{bar}}
will print "bar", and be sorted as "foobar".
Example:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{SM.bib}
@misc{a, author={{\printsecond{ZZZZZ}{\O}}stersund, A}, title={a}, year=1000}
@misc{b, author={{\"O\donothing{e}}zkarag{\"o}z, {\.I}nci}, title={b}, year=1001}
@misc{c, author={Oezl, A}, title={c}, year=1002}
@misc{d, author={Oezj, A}, title={d}, year=1003}
@misc{e, author={Ofa, A}, title={e}, year=1004}
@misc{f, author={Zzz, A}, title={f}, year=1005}
\end{filecontents}
\begin{document}
\nocite{*}
\providecommand*{\donothing}[1]{}
\providecommand*{\printsecond}[2]{#2}
\bibliographystyle{plain} % works
% \bibliographystyle{alpha} % works ...
% \bibliographystyle{apalike} % works
\bibliography{SM}
\end{document}
Using the plain
style, the sorting keys for these entries are: zzzzzostersund1000, oezkaragoz1001, oezl1002, oezj1003, ofa1004, zzz1005, which gives the correct order:
Using the alpha
style, the entries are sorted by label, which consists of three letters of the author name, and the last two digits of the year for single author references. The sorting keys are therefore: zzzzzost1000, oezk1001, oez1002, oez1003, ofa1004, zzz1005. You can see here that the special characters are treated as one character by BibTeX, even when several plain characters are extracted when generating the sorting key. The output is therefore:
and indeed "Oez03" < "Özk01", as oez1003 < oezk1001, since 1 < k. If you would like it the other way round, the Özk01 has to be shortened to Öz01, which can be achieved in the database by changing the second entry to
@misc{b, author={{\"O}{\donothing{e}}zkarag{\"o}z, {\.I}nci}, title={b}, year=1001}
(Note how the "invisible" e is now a special character of its own, and counted as such, as it jumped out of the first special character.)
Best Answer
Preface: Even though the locution "with contributions from" is used in the reference on
R
's website, you shouldn't feel compelled to use it for a bib entry in your document. Using the simpleand
connector between the first and subsequent authors is perfectly legitimate in the present case -- and doing so avoids all kinds of tricky complications.However, if you really, truly, absolutely prefer to provide the string "with contributions from" in the bibliography (while, of course, still keeping the entry sorted under
H
for Hyndman!), you can do so with the following, admittedly somewhat kludgy method: Use both theand
connector and the string{\relax with contributions from}
, as in the following entry:Observe that I'd make two further changes to the bib entry. First, I'dencase the final author (
R Core Team
) in curly braces to inform BibTeX that it's a "corporate" author -- for which no parts should be abbreviated (say, as "R.C. Team"...) even if the bibliography style in use is set to abbreviate first and middle names down to their first initials. Second, I'd encase the wordForecasting
in the title field in curly braces; doing so prevents theF
from being converted tof
if "sentence- style" typesetting of entries oftitle
fields is practiced by the bibliography style you use.Assuming this entry is contained in a file named
hyndman.bib
, the following MWE, which uses theplainnat
bibliography style,generates this output:
A caveat: This method won't work perfectly if you use a bibliography style (such as
chicago
) that abbreviates first and middle names down to their initials. For instance, if you used the bibliography stylechicago
, you'd get Hyndman, R. J., with contributions from Heather Booth, L. Tickle, ...; note that Ms. Booth's first name wouldn't be truncated. I guess you could fix this minor issue by entering her name as "H. Booth".Postscript: Once the additional keyword
and
has been inserted after the first author's name, why bother encasing the stringwith contributions from
in a{\relax ...}
construct? The\relax
directive "hides" the rest of the stuff in curly braces from BibTeX (though not from LaTeX). This is useful just in case you have two entries, one with a name field such as "Rob J. Hyndman and {\relax with contributions from} Heather Booth and Leonie Tickle" and another with a name field such as "Rob J. Hyndman and Homer Buster and Leonard Trinket" (i.e., with Messrs Buster and Trinket being listed as "full-fledged" authors). If you didn't hide the "with contributions from" string from BibTeX, the former entry would be listed after the latter, even though "Heather Booth" would normally be considered to come before "Homer Buster"...