/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: 2010-09-07 22:21:47 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20100907222147-fnvl8fr8tcrjggr0
Utphys 2.5: Internationalization and some more journal MACROs

Thanks to Mateus Araujo.

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.5. 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,
49
49
%                   ver 2.3   8/09 - fix month formatting
50
50
%                   ver 2.4   7/10 - remove some deprecated font-constructws.
51
51
%                                    fix journal number formatting.
 
52
%                   ver 2.5   9/10 - Internationalization and some more journal
 
53
%                                    MACROs (thanks to Mateus Araujo)
52
54
%
53
55
% HyperTeX Wizardry:
54
56
%
99
101
% suitable for use with this style. Indeed, this style was designed with
100
102
% SPIRES in mind.
101
103
 
 
104
FUNCTION {string.and} {" and "}
 
105
FUNCTION {string.editors} {", eds."}
 
106
FUNCTION {string.editor} {", ed."}
 
107
FUNCTION {string.edition} {"~ed."}
 
108
FUNCTION {string.volume} {"vol.~"}
 
109
FUNCTION {string.capsvolume} {"Vol.~"}
 
110
FUNCTION {string.of} {" of "}
 
111
FUNCTION {string.number} {"no.~"}
 
112
FUNCTION {string.capsnumber} {"No.~"}
 
113
FUNCTION {string.in} {"in "}
 
114
FUNCTION {string.spacein} {" in "}
 
115
FUNCTION {string.capsin} {"In "}
 
116
FUNCTION {string.multipages} {"pp.~"}
 
117
FUNCTION {string.pages} {"p.~"}
 
118
FUNCTION {string.chapter} {"ch.~"}
 
119
FUNCTION {string.techrep} {"Tech. Rep."}
 
120
FUNCTION {string.mastersthesis} {"Master's thesis"}
 
121
FUNCTION {string.phdthesis} {"PhD thesis"}
 
122
 
 
123
MACRO {jan} {"Jan."}
 
124
MACRO {feb} {"Feb."}
 
125
MACRO {mar} {"Mar."}
 
126
MACRO {apr} {"Apr."}
 
127
MACRO {may} {"May"}
 
128
MACRO {jun} {"June"}
 
129
MACRO {jul} {"July"}
 
130
MACRO {aug} {"Aug."}
 
131
MACRO {sep} {"Sept."}
 
132
MACRO {oct} {"Oct."}
 
133
MACRO {nov} {"Nov."}
 
134
MACRO {dec} {"Dec."}
 
135
MACRO {am} {"Acta Math."}
 
136
MACRO {amj} {"Am. J. Phys."}
 
137
MACRO {ap} {"Ann. Phys."}
 
138
MACRO {cmp} {"Comm. Math. Phys."}
 
139
MACRO {ijmp} {"Int. Jour. Mod. Phys."}
 
140
MACRO {mpl} {"Mod. Phys. Lett."}
 
141
MACRO {njp} {"New J. Phys"}
 
142
MACRO {nup} {"Nucl. Phys."}
 
143
MACRO {pl} {"Phys. Lett."}
 
144
MACRO {pla} {"Phys. Lett. A"}
 
145
MACRO {pr} {"Phys. Rev."}
 
146
MACRO {pra} {"Phys. Rev. A"}
 
147
MACRO {prl} {"Phys. Rev. Lett."}
 
148
MACRO {repmp} {"Rep. Math. Phys"}
 
149
MACRO {rmp} {"Rev. Mod. Phys."}
 
150
 
 
151
MACRO {arXiv}     {"http://arxiv.org/abs"}
 
152
MACRO {cogprints} {"http://cogprints.org"}
 
153
MACRO {pubmed}    {"http://www.ncbi.nlm.nih.gov/pubmed"}
 
154
 
102
155
ENTRY
103
156
  { address
104
157
    author
317
370
              if$
318
371
              t "others" =
319
372
                { " {\em et al.}" * }
320
 
                { " and " * t * }
 
373
                { string.and * t * }
321
374
              if$
322
375
            }
323
376
          if$
393
446
     if$
394
447
}
395
448
 
 
449
FUNCTION {format.howpublished}
 
450
{ howpublished empty$
 
451
    { "" }
 
452
    { howpublished capitalize
 
453
    }
 
454
  if$
 
455
}
 
456
 
396
457
FUNCTION {format.editors}
397
458
{ editor empty$
398
459
    { "" }
399
460
    { editor format.names
400
461
      editor num.names$ #1 >
401
 
        { ", eds." * }
402
 
        { ", ed." * }
 
462
        { string.editors * }
 
463
        { string.editor * }
403
464
      if$
404
465
    }
405
466
  if$
514
575
FUNCTION {format.bvolume}
515
576
{ volume empty$
516
577
    { "" }
517
 
    { "vol.~" volume *
 
578
    { string.volume volume *
518
579
      series empty$
519
580
        'skip$
520
 
        { " of " * series emphasize * }
 
581
        { string.of * series emphasize * }
521
582
      if$
522
583
      "volume and number" number either.or.check
523
584
    }
529
590
    { number empty$
530
591
        { series field.or.null }
531
592
        { output.state mid.sentence =
532
 
            { "no.~" }
533
 
            { "No.~" }
 
593
            { string.number }
 
594
            { string.capsnumber }
534
595
          if$
535
596
          number *
536
597
          series empty$
537
598
            { "there's a number but no series in " cite$ * warning$ }
538
 
            { " in " * series * }
 
599
            { string.spacein * series * }
539
600
          if$
540
601
        }
541
602
      if$
547
608
FUNCTION {format.edition}
548
609
{ edition empty$
549
610
    { "" }
550
 
    { edition "l" change.case$ "~ed." * }
 
611
    { edition "l" change.case$ string.edition * }
551
612
  if$
552
613
}
553
614
 
577
638
{ pages empty$
578
639
    { "" }
579
640
    { pages multi.page.check
580
 
        { "pp.~" pages n.dashify * }
581
 
        { "p.~" pages * }
 
641
        { string.multipages pages n.dashify * }
 
642
        { string.pages pages * }
582
643
      if$
583
644
    }
584
645
  if$
616
677
{ chapter empty$
617
678
    'format.pages
618
679
    { type empty$
619
 
        { "ch.~" chapter * }
 
680
        { string.chapter chapter * }
620
681
        { type "l" change.case$ chapter tie.or.space.connect }
621
682
      if$
622
683
      pages empty$
630
691
FUNCTION {format.in.ed.booktitle}
631
692
{ booktitle empty$
632
693
    { "" }
633
 
    { "in " booktitle emphasize *
 
694
    { string.in booktitle emphasize *
634
695
      editor empty$
635
696
        'skip$
636
697
        { ", " * format.editors *  }
662
723
 
663
724
FUNCTION {format.tr.number}
664
725
{ type empty$
665
 
    { "Tech. Rep." }
 
726
    { string.techrep }
666
727
    'type
667
728
  if$
668
729
  number empty$
685
746
          warning$
686
747
          ""
687
748
        }
688
 
        { "in {\em " journal * "\/}" * }
 
749
        { string.in "{\em " * journal * "\/}" * }
689
750
      if$
690
751
    }
691
 
    { "in " key * }
 
752
    { string.in key * }
692
753
  if$
693
754
  " \cite{" * crossref * "}" *
694
755
}
702
763
        'skip$
703
764
        { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
704
765
            { " {\em et.~al.}" * }
705
 
            { " and " * editor #2 "{vv~}{ll}" format.name$ * }
 
766
            { string.and * editor #2 "{vv~}{ll}" format.name$ * }
706
767
          if$
707
768
        }
708
769
      if$
713
774
FUNCTION {format.book.crossref}
714
775
{ volume empty$
715
776
    { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
716
 
      "In "
 
777
      string.capsin
717
778
    }
718
 
    { "Vol.~" volume *
719
 
      " of " *
 
779
    { string.capsvolume volume *
 
780
      string.of *
720
781
    }
721
782
  if$
722
783
  editor empty$
749
810
              crossref * warning$
750
811
              ""
751
812
            }
752
 
            { "in {\em " booktitle * "\/}" * }
 
813
            { string.in "{\em " * booktitle * "\/}" * }
753
814
          if$
754
815
        }
755
 
        { "in " key * }
 
816
        { string.in key * }
756
817
      if$
757
818
    }
758
 
    { "in " format.crossref.editor * }
 
819
    { string.in format.crossref.editor * }
759
820
  if$
760
821
  " \cite{" * crossref * "}" *
761
822
}
857
918
      blank.sep
858
919
    }
859
920
  if$
860
 
  howpublished capitalize output
 
921
  format.howpublished output
861
922
  address output
862
923
  format.date output
863
924
  new.block
1020
1081
  format.authors "author" output.check
1021
1082
  format.title add.doi "title" output.check
1022
1083
  blank.sep
1023
 
  "Master's thesis" format.thesis.type output.nonnull
 
1084
  string.mastersthesis format.thesis.type output.nonnull
1024
1085
  school "school" output.check
1025
1086
  address output
1026
1087
  format.date "year" output.check
1046
1107
      blank.sep
1047
1108
    }
1048
1109
  if$
1049
 
  howpublished capitalize output
 
1110
  format.howpublished output
1050
1111
  format.date output
1051
1112
  new.block
1052
1113
  format.url output
1062
1123
  format.authors "author" output.check
1063
1124
  format.btitle add.doi "title" output.check
1064
1125
  new.block
1065
 
  "PhD thesis" format.thesis.type output.nonnull
 
1126
  string.phdthesis format.thesis.type output.nonnull
1066
1127
  school "school" output.check
1067
1128
  address output
1068
1129
  format.date "year" output.check
1139
1200
 
1140
1201
FUNCTION {default.type} { misc }
1141
1202
 
1142
 
MACRO {jan} {"Jan."}
1143
 
 
1144
 
MACRO {feb} {"Feb."}
1145
 
 
1146
 
MACRO {mar} {"Mar."}
1147
 
 
1148
 
MACRO {apr} {"Apr."}
1149
 
 
1150
 
MACRO {may} {"May"}
1151
 
 
1152
 
MACRO {jun} {"June"}
1153
 
 
1154
 
MACRO {jul} {"July"}
1155
 
 
1156
 
MACRO {aug} {"Aug."}
1157
 
 
1158
 
MACRO {sep} {"Sept."}
1159
 
 
1160
 
MACRO {oct} {"Oct."}
1161
 
 
1162
 
MACRO {nov} {"Nov."}
1163
 
 
1164
 
MACRO {dec} {"Dec."}
1165
 
 
1166
 
MACRO {nup} {"Nucl. Phys."}
1167
 
 
1168
 
MACRO {cmp} {"Comm. Math. Phys."}
1169
 
 
1170
 
MACRO {prl} {"Phys. Rev. Lett."}
1171
 
 
1172
 
MACRO {pl} {"Phys. Lett."}
1173
 
 
1174
 
MACRO {rmp} {"Rev. Mod. Phys."}
1175
 
 
1176
 
MACRO {ijmp} {"Int. Jour. Mod. Phys."}
1177
 
 
1178
 
MACRO {mpl} {"Mod. Phys. Lett."}
1179
 
 
1180
 
MACRO {pr} {"Phys. Rev."}
1181
 
 
1182
 
MACRO {arXiv}     {"http://arxiv.org/abs"}
1183
 
MACRO {cogprints} {"http://cogprints.org"}
1184
 
MACRO {pubmed}    {"http://www.ncbi.nlm.nih.gov/pubmed"}
1185
 
 
1186
1203
READ
1187
1204
 
1188
1205
STRINGS { longest.label }