Lovely day. I am quite new to LaTeX but picking things up fast. One area which is confusing me greatly is getting my bibliography to work just how I like it.
I have settled on the agsm
style and the natbib
citation management issue, but there are still some issues.
-
The volume number of a journal is set in bold. (blue in pic)
I want it to just be plain (un-bolded). -
The journal titles have apostrophes around them. (red in pic)
I want to get rid of the apostrophes.
This image added highlights these problems.
Lastly, for the electronic copy, I would like it so the journal identifiers (DOIs) are highlighted blue, so you can click on them and it takes you to the website of the journal article. (green in pic)
Help on any / all of the above would be greatly appreciated. I have searched online for about 8 hours and finally need to ask the lords of TeX.
Edit: This is my bibliography code so far I forgot to add:
\documentclass[11pt,a4paper]{report}
\usepackage[numbers]{natbib}
\renewcommand\harvardyearleft{\unskip, }
\renewcommand\harvardyearright[1]{.}
\bibliographystyle{agsm}
\usepackage{hyperref}
\begin{document}
\cite{ref1}
\bibliography{bibFile}
\end{document}
Note – that \renewcommand
I found from this forum; it gets rid of brackets around the year
field which I didn't want.
Best Answer
Find the file
agsm.bst
and make a copy, say,myagsm.bst
. Next, open the new file in a text editor of your choice and search for the following line:(It's on l. 357 in my copy of the file.) Change this line to
i.e., tell BibTeX not to render the volume number in bold.
Third, look for the line
inside the function named
article
. (It's on l. 698 in my copy of the file.) Change it toi.e., tell BibTeX not to place (single) quotes around the title. Finally, save the new file, update the TeX filename database if necesssary (say, by running
texhash
if you use TeXLive or MacTeX), and start using the new bibliography style by issuing the commandfrom now on.
I should note that this is all extremely hack-ish. What you really ought to do is to run the utility program
makebst
, which will pose lots and lots of questions on just how you want to set up your custom.bst
file. This utility will then create a brand-new bibliography style file that is based on the answers you provided. To run this utility, at a command prompt typelatex makebst
and follow the prompts.An important additional advantage of using the
makebst
utility is that it will let you set up exactly what you think should happen with the contents of a field calleddoi
. This is something you simply can't do by hacking the fileagsm.bst
-- short of a complete rewrite of the entire file, of course -- because theagsm
bibliography style is quite old and doesn't even recognize the contents of a field nameddoi
.