Texshop Bibliography Style Format

Your LaTeX file needs to include
  • a reference to a label in your BibTeX file whenever you want to cite an item in the file
  • a reference to the bibliography style file you want to use, which determines how the references you cite are formatted in the bibliography of your document (and possibly a LaTeX style file associated with the bibliography style)
  • a LaTeX command to generate the bibliography at the point in your document where you want it to appear.

Example using

Here is an example using the bibliography style , which produces citations in "author (year)" format. This file is available on this page (which has instructions on where to put the file once you get it). The lines related to BibTeX are highlighed. It requires the LaTeX style file to produce citations in the right style in the text (matching the format of the references produced by ). You probably have this file already (assuming you have some implementation of TeX on your computer). If you don't, you can get it on this CTAN page. Hover over orangetext to see explanations.

When you run the LaTeX file through LaTeX and BibTeX (instructions below), you'll get output for the body of the document that looks roughly like this:

This document illustrates the use of BibTeX. You may want to refer to Arrow et al. (1961) or Aliprantis and Border (1994) or Maskin (1985). Or you may want to cite a specific page in a reference, like this: see Maskin (1985, p. 199). Or perhaps you want to cite more than one paper by Maskin: Maskin (1985, 1999). Or you want to make a parenthetical reference to one or more articles, in which case the \citealt command omits the parentheses around the year (Arrow et al. 1961).
A few more options for the command are available. Here they are:
Jones et al. (1990)
Jones, Baker, and Smith (1990)
(Jones et al. 1990)
(Jones, Baker, and Smith 1990)
(Jones et al., 1990, p. 99)
(e.g. Jones et al., 1990)
(e.g. Jones et al., 1990, p. 99)
Jones et al.
Jones, Baker, and Smith
1990
*Jones et al.'s (1990)

*Assumes \citeapos is defined in your style or document like this:

(Thanks to Christopher M. Duncombe Rae for pointing out this simple way of generating a possessive citation.)

The list of references will look like this:

Aliprantis, Charalambos D. and Kim C. Border (1994), Infinite Dimensional Analysis. Springer, Berlin.

Arrow, Kenneth J., Leonid Hurwicz, and Hirofumi Uzawa (1961), "Constraint qualifications in maximization problems." Naval Research Logistics Quarterly, 8, 175–191.

Maskin, Eric S. (1985), "The theory of implementation in Nash equilibrium: a survey." In Social Goals and Social Organization (Leonid Hurwicz, David Schmeidler, and Hugo Sonnenschein, eds.), 173–204, Cambridge University Press.

Maskin, Eric S. (1999), "Nash equilibrium and welfare optimality." Review of Economic Studies, 66, 23–38.

Example using

Here is an example using the bibliography style , which in included in many LaTeX systems.

When you run the LaTeX file through LaTeX and BibTeX (instructions below), you'll get output for the body of the document that differs from the output when you use only in that the names of all three authors of Arrow, Hurwicz, and Uzawa (1961) are listed in the first citation to that work, although not in the second, parenthetical, citation.

The list of references differs more significantly from the list produced by : only authors' initials, not their full first names, are included, and "&" rather than "and" is used as a separator; numbers in page ranges are separated by hyphens, rather than the conventional en-dashes. Precisely, the list of references produced by looks like this:

Aliprantis, C. D. & K. C. Border (1994), Infinite Dimensional Analysis. Berlin: Springer.

Arrow, K. J., Hurwicz, L., & Uzawa, H. (1961), Constraint qualifications in maximization problems. Naval Research Logistics Quarterly, 8, 175-191.

Maskin, E. S. (1985), The theory of implementation in Nash equilibrium: a survey. In L. Hurwicz, D. Schmeidler, & H. Sonnenschein (Eds.), Social Goals and Social Organization (p. 173-204). Cambridge: Cambridge University Press.

Maskin, Eric S. (1999), Nash equilibrium and welfare optimality. Review of Economic Studies, 66, 23-38.

Other bibliography styles for author-year citations

A family of styles that produce author-year citations is available on this page.

Creating your own bibliography style

A BibTeX style file is plain text, which in principle you can edit. However, the language used is arcane, and changes that are more than trivial are tricky. A better way to proceed is to create a new style file from scratch, using the custom-bib package (that's how I created ). You run TeX on a file, which asks you a long list of questions about the features of the style you would like. You'll probably not be completely clear about your preferred answers to all the questions on your first attempt, but two or three runs should produce a format to your liking.

I wrote this guide because I had many references in EndNote that I wanted to use in my LaTeX documents. I had to figure all this out the hard way — by lots of trial and error, if you follow this guide it should be easy for you. There are a few points to make: I have used every EndNote version since 4, but when I did my thesis I used version 9. This guide should work for other versions, unless Endnote have drastically changed something. I also use MikTeX and WinEdt on Windows. I don't have a clue about other configurations but they should still work with this guide.

In LaTeX use natbib. It is by far the best referencing package. Put '''' in your header. Then in your document where you want the Bibliograpy to appear add:

\bibliographystyle{plainnat} \bibliography{name of your bib file}

I find plainnat pretty ugly so I wrote a better one bevbib4 you can use this, or write your own with custombib. Note that you don't type in the file name extension in the LaTeX document. For all this to work you need a unique ID for every paper you cite, it is best to be consistent and keep it simple, for example my unique ID for one of my papers is Weir04. This will print out as (Weir et al., 2004) [depending on the style used of course]. Your entries in your bib file should look like this:

@article{Weir04, Author = {Weir, B. S. and Turner, S. J. and Silvester, W. B. and Park, D.-C. and Young, J. M.}, Title = {Unexpectedly diverse \emph{Mesorhizobium} strains and \emph{Rhizobium leguminosarum} nodulate native legume genera of New Zealand, while introduced legume weeds are nodulated by \emph{Bradyrhizobium} species}, Journal = {Applied and Environmental Microbiology}, Volume = {70}, Number = {10}, Pages = {5980-5987}, Year = {2004} }

Now the guide begins. I assume you have an EndNote database (*.enl), back this up before continuing.

Preparing EndNote

  • To use my file "BibTeX_Export-custom.ens" you need to make these changes below. Or you can use the default file "BibTeX_Export.ens" (that I have made a couple of changes to) but you will need to use the "Label" field to type your unique ID. This may conflict with some websites that export references.
  • In EndNote go to: Edit -> Preferences -> Reference types.
  • For each type of reference you use click "modify reference types" scroll down and add "BibTeX" under the "custom 1" field. (don't do this bit if you are using the "Label" version).
  • Go to "display fields" and make Column 4 to display "Custom1" give it the title "BibTeX" (if you are using the Label version make the Column show "Label").
  • Go back to view your library. When you edit a reference by double clicking, a new field will appear (near the bottom) called "BibTeX" (or "Label"). In this field you type the unique ID (i.e. Weir04). Alternatively if you have a huge database you could use "Jabref" to automatically add these to your final BibTeX database. This software is also generally useful for managing your data once in BibTeX format.

Export the file as a BibTeX (*.bib) database

  1. Get my export filter style (Label version)or export filter style (Custom1 version) and save in the "Styles" directory of EndNote. Then select that file using the style manager in: Edit -> Output Styles. Make sure this style is selected in the main view window.
  2. Go to: File -> Export. Save the file as a text (*.txt) file. Move this file to your LaTeX directory you are working with and rename to a *.bib file.
  3. Now when you cite a reference use the command or to get a parenthesis or text citation respectively (just try it out to see what happens).
  4. Run LaTeX or pdfTeX on your file twice then run bibtex then LaTeX or pdfTeX again a few times. Repeat if required. Or just use Texify. You should only have to run BibTeX again if you make a new *.bib file.
  5. With some luck the citation should be inserted and referenced at the end.

The fiddly bit is going back to those references and using proper LaTeX commands where necessary i.e. using (type this into the EndNote field) . This will of course look like rubbish if you use the same EndNote database for MS Word documents. I keep two databases.

Notes on using the Style file

  • For electronic references I used the "book" reference type, and in the notes field add the url in this form: "" . Yes this is a hack. The note field in other reference types will not be used (see below).
  • When you add authors make sure they are in this format: "Sandberg, A. M." note the spaces, this is important. You can use full names (see below), but again: spaces.
  • Don't worry about en-dashes in the page ranges, this is taken care of automatically.
@book{Irwin05, Author = {Irwin, Geoff and Walrond, Carl}, Title = {When was New Zealand first settled?}, Publisher = {Ministry for Culture and Heritage}, Address = {Wellington}, Series = {Te Ara -- The Encyclopedia of New Zealand}, Note = {URL: \url{http://www.TeAra.govt.nz/NewZealanders/MaoriNewZealanders/WhenWasNewZealandFirstSettled/en}}, Year = {2005} }

EndNote Export was not listed on your Output Styles menu?

If "EndNote Export" is not listed in the Edit -> Output Styles menu:

  • Select Open Style Manager.
  • Find the "EndNote Export" style and check it ON. Close this window.
  • Make sure that "EndNote Export" is now checked in the Edit -> Output Styles menu.
  • Select the references you want to transfer.
  • Choose File -> Export. Make sure you are exporting the references as Text file Only, then click on OK.

Thanks to Nora Lieske for this tip.

Other Websites

The information on this page may not be exactly what you are looking for, some other websites which might be of help are:

Citation

Weir, B.S. (2012) Step-by-step guide to using EndNote with LaTeX and BibTeX. NZ Rhizobia website. http://www.rhizobia.co.nz/latex/convert

0 thoughts on “Texshop Bibliography Style Format”

    -->

Leave a Comment

Your email address will not be published. Required fields are marked *