18

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


17

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


11

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


10

You could proceed as follows: Find the file agsm.bst in your TeX distribution. Make a copy of this file and call the copy, say, agsmdoi.bst. (Don't edit the file agsm.bst directly.) Open the file agsmdoi.bst in a text editor. The editor you use to edit your .tex files will do fine. You first need to add a field type named doi. To this effect, find the ENTRY ...


9

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


8

try doing the following: Put the following in before the \begin{document}: \usepackage{natbib} \bibliographystyle{abbrvnat} \setcitestyle{authoryear,open={(},close={)}} And then... Use: \citep{key} to cite into parenthesis, like --> (Sandwith et al., 2006) OR Use: \citet{key} to cite in text, like --> Sandwith et al. (2006)


8

You've come across an unusual -- and admittedly rather severely under-documented -- feature (not a bug...) of the agsm bibliography style. Suppose two bib items labelled, say, AA and BB each have one or more authors. Crucially, suppose the total number of authors differs -- e.g., let bibitem AA have 3 authors and bibitem BB have 5 authors -- and suppose ...


8

I suggest you proceed as follows: Find the file agsm.bst in your TeX distribution. Make a copy of the file and call the copy, say, agsmemph.bst. (Don't edit an original file of your TeX distribution directly.) Open the file agsmemph.bst in your favorite text editor -- the one you use to edit your tex files will do fine. Do a global search and replacement of ...


8

Please note that "harvard style" denotes a specific formatting style for citation call-outs, viz., author-year style citation call-outs. Harvard-style citation call-outs can be either 'text style' -- Jones (2017), generated via \citet -- or 'parenthetic style' -- (Jones, 2017), generated via \citep. Importantly, "harvard style" has exactly zero implications ...


8

Your patching of \thebibliography is wrong. First you patch \renewcommand\thebibliography{\let\bf\relax\oldthebibliography} but then in the next line you do \renewcommand\thebibliography{\let\em\relax\oldthebibliography} which means that the previous redefinition of \thebibliography is going to be forgotten. Better just locally redefine \bf and \em. % ...


7

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


7

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


7

Just do both redefinitions together \newcommand{\oldthebibliography}{} \let\oldthebibliography\thebibliography \renewcommand\thebibliography{\let\bf\relax\let\em\relax\oldthebibliography} I recommend the seemingly useless top line: if some package you load does a similar trick, you'd be informed. Changing old into OLD or whatever will solve the problem. ...


6

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


6

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


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

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


6

The natbib package provides the length parameter \bibhang. If you want it to be half an inch, issue the instruction \setlength\bibhang{0.5in} in the preamble, after loading the natbib package. A full MWE (note that I suggest loading the har2nat package as well, for bibliography styles such as agsm and dcu, as they are part of the harvard package): \...


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} {} {\setunit{\addcomma\space}\printfield[noformat]{origyear}}}% ...


5

\documentclass{article} \usepackage[backend=biber,style=authoryear]{biblatex} \addbibresource{biblatex-examples.bib} \DeclareFieldFormat{postnote}{#1} \DeclareFieldFormat{multipostnote}{#1} \DeclareFieldFormat{volcitepages}{#1} \DeclareFieldFormat{volcitevolume}{#1} \renewcommand*{\postnotedelim}{\addcolon\space} \usepackage{mwepage} \begin{document} Wombat ...


5

You are using the natbib package, see its manual The indentation is under natbib controlled by \bibhang, thus \setlength\bibhang{3cm} works just fine


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


4

If I understand you correctly, you can do this with biblatex, which is a quite new LaTeX package for dealing with bibliographies. As LyX hasn't built in support for this in the GUI yet, there is some initial setup required. The information in this answer comes from two sources: The LyX wiki: http://wiki.lyx.org/BibTeX/Biblatex Sorting the bibliography by ...


4

I'm not sure if you consider this an appropriate answer, as your question is »how do I make natbib work«, and my answer involves abandoning it for something more contemporary (there haven't been any updates to natbib whatsoever for a few years). But then again, your ultimate aim is »using the harvard referencing system« -- and this is something quite easily ...


4

biblatex implements the two major versions of so-called Harvard style (author-date and author-title) in its authoryear and authortitle schemes, both of which in turn come in a variety of sub-flavours (authoryear-ibid etc.). You might want to have a look at the examples, choose the scheme that best suits your needs, and then customize as necessary. As jon ...


4

So long as you don't have special characters such as \ss or \i in the author names, this should work without requiring changing .bst files. \begin{filecontents*}{\jobname.bib} @BOOK{Campbell(1996), AUTHOR = {J. Y. Campbell and A. W. Lo and A. C. MacKinlay}, TITLE = {The econometrics of financial markets}, PUBLISHER = {Princeton University Press}...


4

You need to load the natbib package when using the bibliography style elsarticle-num-names. Separately, you shouldn't employ the @article entry type for this entry as it isn't published in a journal. Instead, use the @incollection entry type: @incollection{bielecki-etal:2007, author = "Tomasz R. Bielecki and St{\'e}phane Cr{\'e}pey and Monique Jeanblanc ...


4

You can use natbib along with a manual bibliography. See section "2.2. The Syntax of the thebibliography" in the natbib documentation. Here an example: \documentclass{article} \usepackage{natbib} \begin{document} \cite{jon90}, \citet{jon90}, \citep{jon90} \begin{thebibliography}{90} \bibitem[Jones et al.(1990)]{jon90} Jones et all, blblblbl \end{...


4

It does change because this is simply what that particular style does in the BibTeX layer. You can see easily what happens if you look into the derived .bbl: \begin{thebibliography}{xx} \harvarditem{Krebs}{1980}{krebs1980optimal} Krebs, J. \harvardyearleft 1980\harvardyearright , `Optimal foraging, predation risk and territory defence', {\em Ardea} {\bf ...


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