>From 58a0655ab2b5c555bd19a6d7624a9d4413cf1360 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sun, 29 Jan 2017 00:57:29 +0900 Subject: [PATCH 5/5] alphapf.bst: Make use of 'location' field in 'inproceedings' entry In early "inproceedings" entries, "address" fields are used to indicate the location of conferences (by Paul's convention). In recent entries such as those copied from e.g. ACM BiBTeX templates, "address" fields are used for publisher's addresses. In such entries, "location" fields are used to show where those events were held. This commit therefore adds awareness of "location" field in alphapf.bst for "inproceedings" entry, and lets the field have a higher precedence than an "address" field. This commit also adds comment in the header describing changes made for perfbook. Note: It is easier to see the diff with white-space changes ignored. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- alphapf.bst | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/alphapf.bst b/alphapf.bst index 6a9ec4d..468d01a 100644 --- a/alphapf.bst +++ b/alphapf.bst @@ -6,6 +6,15 @@ %%% Added DOI support. %%% Added PUBMED support. %%% Added hyperref support. +%%% +%%% Also modified by Akira Yokosawa <akiyks@xxxxxxxxx> for perfbook. +%%% (marked with "% ay") +%%% Brought date field of unpublished entry in front of note field. +%%% (In perfbook, note field is mostly used for URL info.) +%%% Added support of location field in inproceedings entry. +%%% If "location" is available, it is used instead of "address". +%%% Copyright (C) 2016, 2017 Akira Yokosawa. +%%% %%% Original headers follow... % BibTeX standard bibliography style `alpha' @@ -46,6 +55,7 @@ ENTRY pubmed % urlbst url % urlbst lastchecked % urlbst + location %ay } {} { label extra.label sort.label } @@ -1022,19 +1032,28 @@ FUNCTION {inproceedings} format.bvolume output format.number.series output format.pages output - address empty$ - { organization publisher new.sentence.checkb - organization output - publisher output - format.date "year" output.check - } - { address output.nonnull - format.date "year" output.check - new.sentence - organization output - publisher output - } - if$ + location empty$ %ay + { address empty$ %ay + { organization publisher new.sentence.checkb + organization output + publisher output + format.date "year" output.check + } + { address output.nonnull + format.date "year" output.check + new.sentence + organization output + publisher output + } + if$ + } % ay + { location output.nonnull % ay + format.date "year" output.check % ay + new.sentence % ay + organization output % ay + publisher output % ay + } % ay + if$ % ay } { format.incoll.inproc.crossref output.nonnull format.pages output @@ -1187,7 +1206,7 @@ FUNCTION {unpublished} new.block title empty$ 'skip$ 'possibly.setup.inlinelink if$ % urlbst format.title "title" output.check - format.date output + format.date output % ay new.block note "note" output.check fin.entry -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html