Tag Info

Hot answers tagged

14

Ad 1: \renewcommand*{\bibinitdelim}{} works for me. EDIT: Note that \bibinitdelim requires Biber instead of BibTeX. As this command was added in biblatex 1.3, there's a chance that it works with your distribution (try the backend=biber option); nevertheless consider to upgrade to the current versions of biblatex and Biber. Ad 2: Use the package option ...


13

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 ...


11

that is hardcoded in the bst file, Copy it to myapj.bst and replace FUNCTION {bbl.and} { "and"} with FUNCTION {bbl.and} { "\&"} and use in your document \bibliographystyle{myapj.bst}. The file myapj.bst can be saved in the documents directory or in your local bibtex/bst path, if available. As an alternative use another harvard style like ...


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.


7

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 ...


7

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 ...


5

The dcu bibliography style cannot be used “alone”, but it must be supplemented by the call to the harvard package: \documentclass[12pt]{article} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{harvard} \begin{document} \nocite{*} \bibliography{Docs/latex/books.bib} \bibliographystyle{dcu} \end{document} You may be willing to look ...


5

If you like what biblatex-apa does and just want to change last name, initials first name. (year). to last name, initials first name, year. add the following lines to your preamble. \newbibmacro*{labelyear+extrayear}{% \iffieldundef{labelyear} {\iffieldundef{origyear} {} ...


5

the original poster actually solved the problem him/herself, with some help, but we try not to leave questions unanswered. so here goes. the appearance of \citep in the original question suggested that the author-year style was wanted. although some other bib styles support this, the most likely is natbib. natbib has "additional" requirements for its ...


5

The final effect of \newline, when used in horizontal mode (which is the case here) is to issue \nobreak\hfil\break Since \nobreak and \break are \penalty10000 and \penalty-10000 respectively, you should be able to remove the three items by \renewcommand{\harvardurl}[1]{\unpenalty\unskip\unpenalty} At least this works in the example you gave. How ...


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

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 ...


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

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.


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

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

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 ...


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, ...


4

Here's a way (code courtesy of Alan Munn). \begin{filecontents}{\jobname.bib} @book{Labov1972, Address = {Philadelphia}, Author = {William Labov}, Publisher = {University of Pennsylvania Press}, Title = {Sociolinguistic Patterns}, Year = {1972}} @book{Chomsky1957, Address = {The Hague}, Author = {Noam Chomsky}, Publisher = ...


3

I'm not sure if I fully understand the problem you're looking to solve. Part of the issue may be that the term "harvard" is both a synonym for a certain style of citing pieces -- the "author-year citation style" -- as well as a specific LaTeX package that consists of a main style file called, you guessed it, harvard.sty, and more than a half dozen specific ...


3

In addition to considering the harvard citation management package, as already suggested by @egreg in his answer, you may want to look into using the har2nat and natbib packages. As the package's name suggests, the har2nat package "translates" the commands provided by the harvard package (and used by the bibliography styles that come with the harvard ...


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} ...


3

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.


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 ...


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.



Only top voted, non community-wiki answers of a minimum length are eligible