/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: 2011-08-03 18:20:06 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20110803182006-vhhzc21gga2th9oj
Tags: 2.7
utphys.bst 2.7: Fix "et~al." in format.crossref.editor, too.
(Reported by Blake Stacey)

Show diffs side-by-side

added added

removed removed

1
 
% UT Physics bibliographic style, ver. 2.5. Based on:
 
1
% UT Physics bibliographic style, ver. 2.7. 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,
51
51
%                                    fix journal number formatting.
52
52
%                   ver 2.5   9/10 - Internationalization and some more journal
53
53
%                                    MACROs (thanks to Mateus Araujo)
54
 
%                   ver 2.7  12/18 - Fix format.title and format.title.p for when the
55
 
%                                    title contains trailing punctuation.
 
54
%                   ver 2.7   8/11 - Fix "et~al." in format.crossref.editor, too.
 
55
%                                    (Reported by Blake Stacey)
56
56
%
57
57
% HyperTeX Wizardry:
58
58
%
371
371
                'skip$
372
372
              if$
373
373
              t "others" =
374
 
                { " {\em et al.}" * }
 
374
                { " {\em et~al.}" * }
375
375
                { string.and * t * }
376
376
              if$
377
377
            }
471
471
FUNCTION {format.title}
472
472
{ title empty$
473
473
    { "" }
474
 
    {title title text.length$ #1 substring$ "?" =
475
 
     title title text.length$ #1 substring$ "!" =
476
 
     title title text.length$ #1 substring$ "." =
477
 
     or or
478
 
      { "``" title * "''" * }
479
 
      { "``" title * ",''" * }
480
 
    if$
481
 
   }
 
474
    { "``" title * ",''" * }
482
475
  if$
483
476
}
484
477
 
485
478
FUNCTION {format.title.p}
486
479
{ title empty$
487
480
    { "" }
488
 
    { "``" title * add.period$ "''" * }
 
481
    { "``" title * ".''" * }
489
482
  if$
490
483
}
491
484
 
767
760
{ editor #1 "{vv~}{ll}" format.name$
768
761
  editor num.names$ duplicate$
769
762
  #2 >
770
 
    { pop$ " {\em et.~al.}" * }
 
763
    { pop$ " {\em et~al.}" * }
771
764
    { #2 <
772
765
        'skip$
773
766
        { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
774
 
            { " {\em et.~al.}" * }
 
767
            { " {\em et~al.}" * }
775
768
            { string.and * editor #2 "{vv~}{ll}" format.name$ * }
776
769
          if$
777
770
        }