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

Handle presence/absence of eprint prefix #7

Open
nxg opened this issue Nov 25, 2013 · 5 comments
Open

Handle presence/absence of eprint prefix #7

nxg opened this issue Nov 25, 2013 · 5 comments
Assignees

Comments

@nxg
Copy link
Collaborator

nxg commented Nov 25, 2013

The BibTeX 'eprint' field may or may not include an 'arXiv:' prefix, and there may or may not be an 'archivePrefix' field.

Proposed solution:

  • If the eprint includes 'foo:', then include it
  • If not, and if there's an 'archivePrefix' field, use that
  • If not, then use 'arXiv:'

It's probably infeasible to do the string matching in bst-language, so this might be a case for another macro in mn2e.cls

@ghost ghost assigned nxg Nov 25, 2013
nxg added a commit that referenced this issue Nov 25, 2013
Addresses issue #7, but I'd like some discussion before closing it.

This makes minimal changes to the .bst file, but replaces \eprint by a
two-argument version, and \doi by a version with an optional first argument.
These two macros are removed from the .bbl output, and replaced with same-name
ones in the preamble of mn2e-example.tex; these should be considered for
migration to mn2e.cls.

These appear to work, but they do mean that the mn2e.bst output would be usable
_only_ with mn2e.cls.

I've implemented support for archivePrefix="dblp", not because I think very many
people will want to use a CS bibliography archive, but to illustrate how support
for other archives is provided.  Ie, it's not 'arXiv or bust'.
@nxg
Copy link
Collaborator Author

nxg commented Dec 15, 2013

This addresses issue #7, but I'd like Keith to comment before closing it. I don't think this functionality can be provided entirely within bst-language (well it might be possible, but it would count as extravagantly arcane if done there).

Keith: if you think this is done, feel free to close.

@nxg
Copy link
Collaborator Author

nxg commented Aug 5, 2014

@keithtsmith , if you think this is done, can you close the issue?

@timj
Copy link
Owner

timj commented Aug 5, 2014

I hope this is okay, I can't believe the number of MNRAS papers I see where the reference just says "arXiv preprint" and does not include the actual arXiv identifier (making it useless -- I am assuming all these get caught in the final production stage as I generally see the preprints).

@keithtsmith
Copy link
Collaborator

Downloaded, tested, didn't work. None of the eprint fields showed up.

I'm probably doing something stupid or have the wrong things inserted into the .cls . I would attach the minimal working example, but github only seems to allow image attachments. I'll email you both.

@timj
Copy link
Owner

timj commented Sep 26, 2014

Before 78ff943 eprint identifiers were explicitly hidden in Journal mode in commit 3b36609. The clickable links take you to the DOI or whatever. Conference proceedings now look like A&C though in that arXiv and DOI identifiers show up. The good news is that ASCL entries from ADS show up correctly with ascl: prefix.

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

3 participants