BibTeX, biblatex and biberDoes apacite support doi?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Does apacite support doi?

Post by lalop »

The one thing I've noticed so far is that the doi number doesn't seem to come up in the references:

Code: Select all

@article{ref:pitchersadowsky,
    author  = "Pitcher, J. J., Ginter, D. R.",
    title   = "Sleep quality versus sleep quantity: Relationships between sleep and measures of health, well-being and sleepiness in college students",
    year    = "1997",
    journal = "Journal of Psychosomatic Research",
    volume  = "42",
    number  = "6",
    pages   = "583--596",
    doi     = {10.1016/S0022-3999(97)00004-4}
}
produces (attachment)
Attachments
references.jpg
references.jpg (23.29 KiB) Viewed 12242 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Re: Does apacite support doi?

Post by lalop »

Or if not, how do I add the doi field?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Does apacite support doi?

Post by localghost »

Find out by reading the apacite manual.


Best regards
Thorsten
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Re: Does apacite support doi?

Post by lalop »

The manual mentioned doi exactly once, in the bibilography, which led me to believe it is not supported.

Are there workarounds for adding a doi line at the end of an otherwise okay bib style?
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Does apacite support doi?

Post by lalop »

What I've tried:

Using both it and natbib (which supposedly supports it) on the same file, but it didn't do anything.

Modifying apacite.bst with urlbst, but the error(?), shown in attachment, came up. In the apacitetest.bst, a header would be added:

Code: Select all

%%% Modification of BibTeX style file apacite.bst
%%% ... by C:\Program Files (x86)\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl, version 0.6-1 (marked with "% C:\Program Files (x86)\MiKTeX 2.8\scripts\urlbst\perl\urlbst.pl")
%%% See <http://purl.org/nxg/dist/urlbst>
%%% Added webpage entry type, and url and lastchecked fields.
%%% Added DOI support.
%%% Original headers follow...
However, searching the file for "doi" yields nothing, and using this bst on the document gives the same result.

Edit: also attaching "apacitetest.bst", renamed to .txt
Attachments
apacitetest.txt
(148.26 KiB) Downloaded 514 times
urlbst.jpg
urlbst.jpg (32.25 KiB) Viewed 12240 times
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Does apacite support doi?

Post by lalop »

Here's something that might be easier to help with. I "hacked" the apacite.sty to replace the url trailer (in this case "Retrieved from ..") with "doi:", giving it the appearance of a doi reference at least. I commented out the old trailer. But, when I run bibtex, it still gives the old trailer.

I suspect I have to do something with this new .sty file before the my changes "take". What's the process for such modification?
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Does apacite support doi?

Post by lalop »

I found a workaround (since pages were the last bit, I would do

Code: Select all

pages={1433--1443. \mbox{doi: 10.1016/j.paid.2006.06.002}\bibnodot{.}}
I'm still interested, though, in how a bibtex style is edited: the entire time, it seemed like bibtex simply didn't notice my edits.
scheydec
Posts: 9
Joined: Sat Oct 16, 2010 10:43 pm

Re: Does apacite support doi?

Post by scheydec »

Hi all,

It's been more than a year since there was any activity on this topic, but it's the most relevant I can find for my question.

I'm using BibTeX with TeXshop for my dissertation, and calling
\usepackage[notocbib]{apacite}

My .bib file has several items in it with DOIs, which I would like to include in my Bibliography, such as

@article{de_saint_leger_2009,
title = {{Self-assessment} of Speaking Skills and Participation in a Foreign Language Class},
volume = {42},
doi = {10.1111/j.1944-9720.2009.01013.x},
number = {1},
journal = {Foreign Language Annals},
author = {Diane {de Saint L\'{e}ger}},
year = {2009},
pages = {158--178}
},

This comes out without DOI, like this:

de Saint L´eger, D. (2009). Self-assessment of speaking skills and participation in a
foreign language class. Foreign Language Annals , 42 (1), 158–178.

But according to the documentation at http://ctan.org/pkg/apacite, DOI isn't included. Since the APA 6th has been out for more than a year, and since it says, "Provide the DOI, if one has been assigned to the content. Publishers who follow best practices publish the DOI prominently on the first page of an article," I'm surprised DOIs aren't supported. I have a lot of articles with DOIs in my dissertation, which has to be APA style, and I really want to include them in my Bibliography.

So what should I do? Use something other than / in addition to apacite?

PS. I think I've included all of the relevant details, but please forgive me if I've missed something. I'm new to this! Let me know and I'll add whatever's missing.

Thanks!
morsedl
Posts: 2
Joined: Mon Feb 07, 2011 3:46 am

Re: Does apacite support doi?

Post by morsedl »

I intend to modify apacite to properly handle and print DOIs. I'm not the original author of apacite, but I'll probably send a patch to him / her when I feel confident my patch hasn't broken anything. This should be fairly straightforward, and I've made minor modifications to apacite before (for my own purposes).

That said, I'm buried with some article submissions deadlines right now, and it will be at least a week, two, or perhaps more before I can get to this. I'll post a patch or modified files here for anyone who wants to try what I come up with and help me test it thoroughly.

That said, if anyone has an input or suggestions re: how they want or think this should be done, just let me know by posting here.
footex
Posts: 2
Joined: Wed Jun 22, 2011 2:35 pm

Re: Does apacite support doi?

Post by footex »

Hi there!

I'm also desperately in need of a DOI integration in apacite. Is there any news?

@morsedl: It would be great if you could post the patch here. Perhaps I can manage to apply it myself.

Thank you!
Post Reply