Hot answers tagged harvard-style
11
The Harvard style is basically an author-year style; there are various versions of the general style. You have two routes that you can use:
natbib
The standard way to do bibliographies with author-year citations is to use the natbib package and any one of the many bibliography styles available for it. A basic Harvard style is the agsm style. Other ...
10
The hyperref package is known for not being entirely compatible with many citation manager packages, with the main exception of natbib. (I.e., hyperref is fully compatible with natbib.) It is true that the user guide to the hyperref package notes that the harvard package is "supported"; however, the very next sentence in the same paragraph of the hyperref ...
9
There are six styles provided by harvard which are compatible with natbib.
The command \harvardurl only format the style of the url. The output of the url is defined in the used bst file.
As an example of one of the six styles I use the file agsm.bst to demonstrate the behavior.
The file agsm.bst has the following code:
FUNCTION {write.url}
{ URL ...
8
The Harvard style covers a wide range of choices of exactly how to do things. Using the natbib package has already been mentioned, while you could also consider biblatex.
5
The package you want is here: CTAN/harvard
Instructions for installing packages are here: CTAN, packages, and online help
It depends on your tex distribution. If you are using MiKTex, or another distribution with a package manager you just need to call the bib style as per usual and the package manager will handle installation.
5
This is the standard with biblatex’s style alphabetic, as long as you have one author. With multiple authors, this style takes the first letter of every author – up to three, as a default. If there are more than three authors, it takes the first three letters of the first name, then a + and the year, e.g.
Kemper 2009 > [Kem09]
Goossens, Mittelbach ...
5
I can't answer your question directly, but I can suggest a workaround that is just about fail-safe: Instead of loading the harvard bibliography citation manager, load both the natbib and har2nat packages. Natbib is known to work very well with hyperref, and the har2nat package "translates" all harvard-type citation commands into equivalent natbib-type ...
5
There are almost as many flavours of author-year bibliography and citation style as there are of Christianity.
Depending on what you need, you should just be able to use \autocite, \parencite, or \textcite rather than \cite. Just to give a flavour:
In 1988 C was totally awesome \parencite{KandR},
while according to \textcite{CUEDCplusplus} C++ was even ...
4
make yourself a copy of agsm.bst, and call it agsm-nq.bst (in the same
directory as your document).
edit agsm-nq.bst, and search for the line with "FUNCTION {article}"
the start of the function is:
FUNCTION {article}
{ output.bibitem
list.label.output
" \harvardyearleft " list.year * "\harvardyearright " * output.nonnull
author "author" item.check
...
4
The "chapter" keyword is hardwired in the bibliography style file. If you want to change it, assuming you're using
\bibliographystyle{agsm}
then make a copy of agsm.bst that you find on your system and call it, say, xagsm.bst, keeping it next to your main document. Edit the copy finding where it has the string
"chapter"
(quotes included) and change it ...
4
An option as been mentioned: \usepackage{harvard}
You can then use it like this:
\citeasnoun[p.42]{knuth} writes that TeX is great...
In \citepossesive[p.43]{knuth} book we can also see something else.
Which would become:
Knuth (1901, p.42) writes that TeX is great...
In Knuth's (1901, p.43) book we can also see something else.
4
EDIT: The OP uses TeX Live 2009 which was installed by synaptic. In the wiki of ubuntu community you can read the following note:
As of October 2011 the texlive package that ships with Ubuntu (TeX
Live 2009) is lagging more than two years behind the current TeX Live
release (TeX Live 2011). If you don't have big space constraints and
want the ...
4
The harvard citation management package does two things rather nicely. First, it provides several authoryear-style citation commands, including \citeasnoun and \possessivecite, that aren't provided by the core LaTeX system. Second, the harvard package provides several predefined bibliography styles. These are, in alphabetical order: agsm, aspr, dcu, jmr, ...
3
Your bibliography file entry should be simply
@InBook{Renewal,
author = {Breuer, L. and Baum, D.},
title = {An Introduction to Queueing Theory and Matrix-Analytic Methods},
chapter = 6,
publisher = {Springer},
year = 2005,
}
All prefixes ALT and OPT should be removed. They are inserted by bibtex-mode in emacs and can be removed in one fell swoop ...
3
Put the following after having loaded natbib
\renewcommand\harvardyearleft{\unskip, }
\renewcommand\harvardyearright[1]{.}
The first usually inserts a (, while the second inserts a ). We redefine the former to backspace and insert a comma and a space, the latter to gobble the comma and insert the period.
3
Seamus appears to be correct. If you're not using hyperref, just add this to your preamble:
\usepackage{backref}
(Probably this should go after the harvard-related stuff.)
If you are using hyperref, then just pass the pagebackref option to it somehow; either through package options, or using \hypersetup.
The hyperref manual specifically states that ...
3
The harvard package loads the html package, if it exists, which loads hyperref. From harvard.sty:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{harvard}
\RequirePackage{ifthen}
\IfFileExists{html.sty}{\RequirePackage{html}
...
Possible solutions:
Instead of loading hyperref with options yourself, you could use \hypersetup. This is recommended.
In this and ...
3
The problem is similar to the one raised in the question Why do hyperref and harvard not work together properly?
The biggest problem is that harvard.sty is quite old and it's unclear what html.sty it refers to. Currently TeX Live doesn't have an html.sty file, but you probably have one as part of latex2html (as stated in the ...
3
With natbib many aspects can be easily configured: you need to set citesep (separation between two citations in the same place) and aysep (separation between author and year in a citation):
\documentclass{article}
\usepackage{natbib}
\setcitestyle{citesep={;}, aysep={,}}
\begin{document}
\citep{Goossens:1994:LCb}
\citep{Knuth:1986:MB,Lamport:1994:LDP}
...
2
The possessive 's is hard-coded into harvard.sty. You could modify the code, including the appropriate tests for the text, but I suspect this is more effort than it is worth. As Audrey has commented, switching to biblatex is probably the best long-term solution here.
2
If none of the answers here help, there is always the harvard style on CTAN.
Otherwise I suggest you look into using makebst to generate a .bst that behaves as you would like.
2
If you are just trying to get the name of the organisation not to be broken down and "scrambled" maybe you can try writing the name between curly brackets in your bibtex file (an extra pair of {} enclosing the name of the company). This will tell TeX to write the name exactly as it is.
This trick also works when you don't want TeX to put upper cases or do ...
2
(Answer updated with full MWE)
Not having access to your image files or the bib file that sets up the entry with key ferstl_grundlagen_2008, I can't be entirely sure what's going on. Here's a suggested solution:
\documentclass{article}
\usepackage{german,harvard,ifthen}
\usepackage[demo]{graphicx} % get rid of 'demo' option in real document
...
2
to do the things mentioned in your question do the following:
open econometrica.bst (or better use a copy first for security reasons). Then search for "FUNCTION {format.lab.names}".
Now add the bolt part:
FUNCTION {format.lab.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
numnames #3 >
{ s #1 "{vv~}{ll}{, jj}{, f.}" ...
2
There are a couple ways to suppress labelname in citations. The hook
\AtEveryCitekey{\clearname{labelname}}
will delete the labelname list in every citation, but styles typically resort to printing fallback values. The authoryear style, for example prints the labeltitle field when labelname is unavailable. Suppressing all fallback values often results in ...
1
Concerning losing \possessivecite
This worked for me.
Rough syntax:
\usepackage{natbib}
\usepackage{har2nat}
\newcommand{\possessivecite}[1]{\citeauthor{#1}'s \citeyearpar{#1}}
\usepackage{hyperref}
1
According to section 2.4 of the harvard manual, the double-starred (!) macro version \citeasnoun** overrides the default citation style and always uses the abbreviated form. It seems, however, that this feature is available for the six styles "currently available within the harvard family" (manual, section 3.1), but not for the econometrica style which, ...
1
(This answer incorporates the OP's comments that the natbib package, rather than the harvard package, is used. Furthermore, it assumes that a bibliography style such as plainnat or unsrtnat is used.)
You're dealing with two separate problems. If I understand your first issue correctly, you run into problems if you eliminate the chapter field from the entry ...
1
Not really an answer but too long for a coment. Just use the following MWE to show us your problem. It includes a bib file and loads package natbib.
%http://tex.stackexchange.com/questions/66941/problem-with-bibliography
% creates file mybib.bib
\begin{filecontents}{mybib.bib}
@booklet{mwe,
author = {{S}charrer, {M}artin},
year = {2012},
...
1
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:
{ volume embolden field.or.null
(It's on l. 357 in my copy of the file.) Change this line to
{ volume field.or.null
i.e., tell BibTeX not to render the volume number in bold.
Third, look for the line
...
Only top voted, non community-wiki answers of a minimum length are eligible