# Tag Info

17

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

16

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

12

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

11

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

11

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.) While it's true that the user guide to the hyperref package notes that the harvard package is "supported", the next sentence in the same paragraph of the user guide states ...

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

9

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.

9

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

7

\documentclass{article} \usepackage{harvard} \citationmode{abbr} \citationstyle{dcu} \bibliographystyle{xdcu} \newcommand\HARVARDAND{\harvardand} \begin{document} A \citeasnoun{Campbell(1996)} B \cite{Hamilton(1994)} \bibliography{tst} \end{document} xdcu.bst is a copy of dcu.bst with "u" change.case\$ added in some likely looking places (I ...

7

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

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

6

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

6

What should I do to show a comma between name and year in citation? A: Load the natbib package with the option comma -- \usepackage[comma]{natbib} -- and use the command \citep to cite the piece in question. The second question, which bibliography style to use to get the formatting the way you say you want it, is quite a bit harder to answer. As shown ...

6

If you let biblatex handle pagination on its own, what you want is very easy. Postnotes containing numbers (and a few other special symbols) are automatically recognised as page (ranges) and formatted as such by biblatex. So it is a good idea to drop the page prefix entirely when citing, as in \parencite[24]{worman} and \parencite[cf.][17--19]{geer} ...

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

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

5

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

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

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.

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.

4

The harvard package defines a command \harvardand which, depending on the style, is set to '&'. This can be changed to 'and' with: \renewcommand*{\harvardand}{and}

4


4

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

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

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

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

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

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

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