/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 utcaps.bst

  • Committer: Jacques Distler
  • Date: 2009-08-05 21:36:13 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20090805213613-73hx1d63ey499pjn
Fix Month Formatting

Fix bug in month formatting, reported by Florian Goth.

Show diffs side-by-side

added added

removed removed

1
 
% UT Physics bibliographic style, ver. 2.4. Based on:
 
1
% UT Physics bibliographic style, ver. 2.3. 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,
47
47
%                   ver 2.1   4/08 - support for "url" field
48
48
%                   ver 2.2   4/08 - support for "doi" field
49
49
%                   ver 2.3   8/09 - fix month formatting
50
 
%                   ver 2.4   7/10 - remove some deprecated font-constructws.
51
 
%                                    fix journal number formatting.
52
50
%
53
51
% HyperTeX Wizardry:
54
52
%
59
57
%   eprint   = "hep-th/9605023"
60
58
% both produce 
61
59
%
62
 
%    \href{http://arxiv.org/abs/hep-th/9605023}{{\ttfamily hep-th/9605023}}
 
60
%    \href{http://arxiv.org/abs/hep-th/9605023}{{\tt hep-th/9605023}}
63
61
%
64
62
% in the bibliographic output at the appropriate point. More generally,
65
63
% if the archive field is present, we produce a URL of the form
70
68
%
71
69
% "New-style" arXiv identifiers are also supported.
72
70
%
73
 
%     archivePrefix = "arXiv",
74
 
%     eprint    = "0707.3168",
 
71
%     archivePrefix = "arXiv",
 
 
'%     eprint    = "0707.3168",'
75
72
%     primaryClass = "hep-th",
76
73
%
77
74
% produces
78
75
%
79
 
%     \href{http://arxiv.org/abs/0707.3168}{{\ttfamily arXiv:0707.3168 [hep-th]}}
 
76
%     \href{http://arxiv.org/abs/0707.3168}{{\tt arXiv:0707.3168 [hep-th]}}
80
77
%
81
78
% Another (non-arXiv) example:
82
79
%
86
83
%
87
84
%  produces
88
85
%
89
 
%     \href{http://cogprints.org/5542}{{\ttfamily Cogprints:5542}}  
 
86
%     \href{http://cogprints.org/5542}{{\tt Cogprints:5542}}  
90
87
%
91
88
%  If a
92
89
%
93
90
%       doi = "10.xxxx"
94
91
%
95
92
%  field is present, then the journal reference becomes a
96
 
%  clickable hyperlink to the online journal version of the paper.
 
93
%  clickable hyperlink to the online journal version of the paper.
97
94
%
98
95
% The bibtex output produced by SPIRES, while far from perfect, is pretty
99
96
% suitable for use with this style. Indeed, this style was designed with
358
355
     { ""}
359
356
     { archive empty$
360
357
          {"\href{http://arxiv.org/abs/" eprint * "}" * 
361
 
             "{{\ttfamily " * format.archive * eprint *
 
358
             "{{\tt " * format.archive * eprint *
362
359
              format.primaryClass * "}}" *}
363
360
          {"\href{" archive *  "/" * eprint * "}" * 
364
 
             "{{\ttfamily " * format.archive * eprint *
 
361
             "{{\tt " * format.archive * eprint *
365
362
              format.primaryClass * "}}" *}
366
363
       if$
367
364
     }
481
478
FUNCTION {format.collaboration}
482
479
{ collaboration empty$
483
480
    { "" }
484
 
    { "{\bfseries " collaboration * "} " * "Collaboration" * }
 
481
    { "{\bf " collaboration * "} " * "Collaboration" * }
485
482
  if$
486
483
}
487
484
 
586
583
 
587
584
FUNCTION {format.pages.nopp}
588
585
{ pages empty$
589
 
    { "empty pages in " cite$ * warning$
590
 
      ""
591
 
    }
 
586
    { "" }
592
587
    { pages multi.page.check
593
588
        { pages n.dashify  }
594
589
        { pages }
601
596
FUNCTION {format.volume}
602
597
{ volume empty$
603
598
    { "" }
604
 
    { "{\bfseries " volume * "} " * }
 
599
    { "{\bf " volume * "} " * }
605
600
  if$
606
601
}
607
602
 
608
603
FUNCTION {format.number}
609
604
{ number empty$
610
605
    { "" }
611
 
    { "no.~" number * ", " *}
 
606
    { "no.~" number * "," *}
612
607
  if$
613
608
}
614
609
 
765
760
    { "" }
766
761
    {journal emphasize " " *
767
762
     format.volume *
768
 
     format.number *
769
763
     format.date.paren *
770
764
     format.pages.nopp *
771
765
      }