timj / mn2e-bst

Monthly Notices of the Royal Astronomical Society bibtex style file
13 stars 5 forks source link

Change the way that eprint repository prefixes are processed. #15

Open nxg opened 9 years ago

nxg commented 9 years ago

The previous technique was smart, but did not match the stipulations in http://arxiv.org/help/faq/references -- these require that the specific string arXiv:yyyy.nnnn, with a leading space, and warn not to have a '{' just before the 'arXiv:' (who knows...). The previous version did have a close-up '{'.

This technique is slightly clumsier in some ways, but is more straightforward in the .bst file, and requires no LaTeX magic in the style file.

Incidentally changed the test framework in the test/ directory, to support multiple independent tests rather than a compendium test-everything one..

timj commented 9 years ago

That ref is talking about inline arXiv references not those in bib files. You aren't going to be able to insist that the bib entry has a leading space in the eprint field. We really need to be matching ADS common usage here. That's where most astronomers get their bib entries.

nxg commented 9 years ago

Indeed: this is about how the arXiv:yyyy.nnnn appears in the bibliography -- in the .bbl file, not the .bib file. And the point is so that no-one has to insist on anything in the .bib file. And this is written so that if there's no arxiv: prefix in the .bib entry (which is the common case, and in particular the case for references that appear from ADS), then it presumes arXiv.

This is so that authors can in principle indicate different eprint repositories (such as ASCL).

keithtsmith commented 9 years ago

Hi both

If it works and doesn’t break anything else then there appears to be little harm in following arXiv’s request.

I note that mn2e is already adding \eprint to all of these, which inserts a clickable link already whenever possible.

Keith

From: Norman Gray [mailto:notifications@github.com] Sent: Tuesday, December 02, 2014 3:14 PM To: timj/mn2e-bst Subject: Re: [mn2e-bst] Change the way that eprint repository prefixes are processed. (#15)

Indeed: this is about how the arXiv:yyyy.nnnn appears in the bibliography -- in the .bbl file, not the .bib file. And the point is so that no-one has to insist on anything in the .bib file. And this is written so that if there's no arxiv: prefix in the .bib entry (which is the common case, and in particular the case for references that appear from ADS), then it presumes arXiv.

This is so that authors can in principle indicate different eprint repositories (such as ASCL).

— Reply to this email directly or view it on GitHubhttps://github.com/timj/mn2e-bst/pull/15#issuecomment-65245112.

timj commented 9 years ago

@keithtsmith the paper I submitted the other day (I see that you are the receiving editor!) uses the current bib style and your latest class file.

keithtsmith commented 9 years ago

Yes, I noticed! It made me smile, thanks. Good to see it works for a real paper!

Remind me in a week and I’ll send you some further updates.

Keith

From: Tim Jenness [mailto:notifications@github.com] Sent: Thursday, December 04, 2014 7:10 PM To: timj/mn2e-bst Cc: Keith T. Smith Subject: Re: [mn2e-bst] Change the way that eprint repository prefixes are processed. (#15)

@keithtsmithhttps://github.com/keithtsmith the paper I submitted the other day (I see that you are the receiving editor!) uses the current bib style and your latest class file.

— Reply to this email directly or view it on GitHubhttps://github.com/timj/mn2e-bst/pull/15#issuecomment-65685077.