/utphys

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/utphys/

« back to all changes in this revision

Viewing changes to utphys.bst

  • Committer: Jacques Distler
  • Date: 2008-04-07 07:33:26 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20080407073326-p6xjn30tkh29r49e
Preliminary DOI support

Support the "doi" field for "article" entries.

Show diffs side-by-side

added added

removed removed

1
 
% UT Physics bibliographic style, ver. 2.1. Based on:
 
1
% UT Physics bibliographic style, ver. 2.2. Based on:
2
2
%
3
3
%X     IEEE Transactions bibliography style (29-Jan-88 version)
4
4
%X       numeric labels, order-of-reference, IEEE abbreviations,
45
45
%                   ver 1.9   6/05 - eprint support for other entry types
46
46
%                   ver 2.0   4/08 - support "new-style" eprint identifiers
47
47
%                   ver 2.1   4/08 - support for "url" field
 
48
%                   ver 2.2   4/08 - support for "doi" field
48
49
%
49
50
% HyperTeX Wizardry:
50
51
%
81
82
%
82
83
%  produces
83
84
%
84
 
%     \href{http://cogprints.org/5542}{{\tt Cogprints:5542}}  
 
85
%     \href{http://cogprints.org/5542}{{\tt Cogprints:5542}}
 
86
%
 
87
%  If a "doi" field is present, then the journal reference becomes a
 
88
%  clickable hyperlink to the online journal version of the paper.
85
89
%
86
90
% The bibtex output produced by SPIRES, while far from perfect, is pretty
87
91
% suitable for use with this style. Indeed, this style was designed with
118
122
    archivePrefix
119
123
    primaryClass
120
124
    url
 
125
    doi
121
126
  }
122
127
  {}
123
128
  { label }
449
454
      if$
450
455
    }
451
456
    { month empty$
452
 
        {"(" year * ")" *}
453
 
        {"(" month * ", " * year * ")" *}
 
457
        {"(" year * ") " *}
 
458
        {"(" month * ", " * year * ") " *}
454
459
      if$
455
460
    }
456
461
  if$
577
582
FUNCTION {format.volume}
578
583
{ volume empty$
579
584
    { "" }
580
 
    { "{\bf " volume * "}" * }
 
585
    { "{\bf " volume * "} " * }
581
586
  if$
582
587
}
583
588
 
736
741
  " \cite{" * crossref * "}" *
737
742
}
738
743
 
 
744
FUNCTION {format.journal}
 
745
{ journal missing$   
 
746
    { "" }
 
747
    {journal emphasize " " *
 
748
     format.volume *
 
749
     format.date.paren *
 
750
     month empty$
 
751
             { format.number }
 
752
             'skip$
 
753
        if$ * " " *
 
754
      format.pages.nopp *
 
755
      }
 
756
    if$
 
757
}
 
758
 
739
759
FUNCTION {article}
740
760
{ output.bibitem
741
761
  format.collaboration output
745
765
  crossref missing$
746
766
  { journal missing$   
747
767
    {}
748
 
    { journal emphasize "journal" output.check
749
 
       blank.sep
750
 
      format.volume output
751
 
      blank.sep
752
 
      format.date.paren "year"  output.check
753
 
      month empty$
754
 
                { format.number output }
755
 
                'skip$
756
 
         if$
757
 
      blank.sep
758
 
      format.pages.nopp output
 
768
    { doi missing$
 
769
        {format.journal}
 
770
        { "\href{http://dx.doi.org/" doi * "}{" *
 
771
            format.journal * "}" *}
 
772
       if$ output
759
773
      }
760
774
      if$
761
775
      report missing$
762
 
            {format.eprint output}
763
 
            {blank.sep format.report output format.eprint output}
764
 
            if$
 
776
        {format.eprint output}
 
777
        {blank.sep format.report output format.eprint output}
 
778
        if$
765
779
    }
766
780
    { format.article.crossref output.nonnull
767
781
      format.pages output