Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can the doi be toggled? #4

Open
zimmerst opened this issue Jul 14, 2015 · 3 comments
Open

can the doi be toggled? #4

zimmerst opened this issue Jul 14, 2015 · 3 comments

Comments

@zimmerst
Copy link

Hi -
first off, this is great. Indeed just what I was looking for. So my bib file has numerous doi entries but when running (pdf)latex with bibtex and the mentioned hyperref option, the doi is not put in my bibliography. So is there a place where I need to enable the doi field? Thanks!

@pkgw
Copy link
Owner

pkgw commented Jul 14, 2015

It depends on what you're aiming for. This style does not explicitly show the DOIs at the ends of references, if that's what you want; it only uses them to make hyperlink destinations. That choice is not going to change since that follows the ApJ style, but it wouldn't be too much work to make a hacked version that adds the DOI written out as well.

Or are you trying to accomplish something different?

@zimmerst
Copy link
Author

AH -- okay - in that case I misunderstood the intention. So for the DOI i'd need to hack the style to add another field to the usual output, correct? I've briefly looked at the yahapj.bst file but couldn't quite figure out how to add this info.

@pkgw
Copy link
Owner

pkgw commented Jul 24, 2015

Yes, the BST language is pretty unusual. It might work well to try to modify the maybe_doi_link_end function to look like this (untested code!!!):

FUNCTION {maybe.doi.link.end}
{ % Expects some citation text to be on the stack
 doi empty$ url empty$ and
  { }
  { "} [DOI:" doi * "]" * * }
 if$
}

The best documentation of the language of which I'm aware is Tame the BeaST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants