projects
/
latex-mlastyle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4e03a23
)
Added url and version
author
Tim Pope
<code@tpope.net>
Sun, 16 Nov 2003 18:40:18 +0000
(18:40 +0000)
committer
Tim Pope
<code@tpope.net>
Sun, 16 Nov 2003 18:40:18 +0000
(18:40 +0000)
mlastyle.bst
patch
|
blob
|
history
diff --git
a/mlastyle.bst
b/mlastyle.bst
index c7b9598e3507156a52e13b834892e7433e31b3ae..52c6404fa2c06a5296b6cb680f816e697938ad9c 100644
(file)
--- a/
mlastyle.bst
+++ b/
mlastyle.bst
@@
-31,6
+31,11
@@
ENTRY
type
volume
year
type
volume
year
+ % New fields
+ url
+ accessdate
+ urlpath
+ version
}
{ author.duplicate author.shared }
{ label }
}
{ author.duplicate author.shared }
{ label }
@@
-447,16
+452,19
@@
FUNCTION {format.number.series}
% Changed edition to MLA abbreviation
FUNCTION {format.edition}
{ edition empty$
% Changed edition to MLA abbreviation
FUNCTION {format.edition}
{ edition empty$
- { "" }
+ { version empty$
+ { "" }
+ { "Vers.~" version *}
+ if$
+ }
{ edition "l" change.case$ 's := edition 't :=
{ edition "l" change.case$ 's := edition 't :=
- "" "9th" "ninth" "8th" "eighth" "7th" "seventh" "6th" "sixth" "5th" "fifth" "4th" "fourth" "3rd" "third" "2nd" "second" "1st" "first"
+ ""
+ "10th" "tenth" "9th" "ninth" "8th" "eighth" "7th" "seventh" "6th" "sixth"
+ "5th" "fifth" "4th" "fourth" "3rd" "third" "2nd" "second" "1st" "first"
{duplicate$ empty$ { pop$ #0 }{ #1 } if$ }{ s = { 't := }{ pop$ } if$ }
while$
{duplicate$ empty$ { pop$ #0 }{ #1 } if$ }{ s = { 't := }{ pop$ } if$ }
while$
-% output.state mid.sentence =
-% { edition "l" change.case$ " ed." * }
-% { edition "t" change.case$ " ed." * }
-% if$
- t " ed." *
+ t " ed." *
+ "edition and version" version either.or.check
}
if$
}
}
if$
}
@@
-601,6
+609,22
@@
FUNCTION {format.tr.number}
if$
}
if$
}
+FUNCTION {format.url}
+{ url empty$
+ { "" }
+ { accessdate empty$
+ { "There's a url but no accessdate in " cite$ * warning$ "" }
+ { accessdate " " * }
+ if$
+ "$<$" * url * "$>$" *
+ urlpath empty$
+ 'skip$
+ { do.period " Path: " * urlpath * }
+ if$
+ }
+ if$
+}
+
FUNCTION {format.article.crossref}
{ %key empty$
%{ journal empty$
FUNCTION {format.article.crossref}
{ %key empty$
%{ journal empty$
@@
-790,6
+814,8
@@
FUNCTION {article}
}
if$
new.block
}
if$
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-818,6
+844,8
@@
FUNCTION {book}
}
if$
new.block
}
if$
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-862,6
+890,8
@@
FUNCTION {inbook}
format.book.crossref output.nonnull
}
if$
format.book.crossref output.nonnull
}
if$
+ new.block
+ format.url output
note output
fin.entry
}
note output
fin.entry
}
@@
-897,6
+927,8
@@
FUNCTION {incollection}
}
if$
new.block
}
if$
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-942,6
+974,8
@@
FUNCTION {inproceedings}
}
if$
new.block
}
if$
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-980,6
+1014,8
@@
FUNCTION {manual}
if$
format.date output
new.block
if$
format.date output
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-996,6
+1032,8
@@
FUNCTION {mastersthesis}
address output
format.date "year" output.check
new.block
address output
format.date "year" output.check
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-1004,11
+1042,14
@@
FUNCTION {misc}
{ output.bibitem
format.authors output
title howpublished new.block.checkb
{ output.bibitem
format.authors output
title howpublished new.block.checkb
- format.title output after.sentence 'output.state :=
- howpublished new.block.checka
+ format.title output
+ new.block
+ %howpublished new.block.checka
howpublished output
format.date output
new.block
howpublished output
format.date output
new.block
+ format.url output
+ new.block
note output
fin.entry
empty.misc.check
note output
fin.entry
empty.misc.check
@@
-1026,6
+1067,8
@@
FUNCTION {phdthesis}
address output
format.date "year" output.check
new.block
address output
format.date "year" output.check
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-1061,6
+1104,8
@@
FUNCTION {proceedings}
}
if$
new.block
}
if$
new.block
+ format.url output
+ new.block
note output
fin.entry
}
note output
fin.entry
}
@@
-1086,6
+1131,8
@@
FUNCTION {unpublished}
new.block
format.title "title" output.check
new.block
new.block
format.title "title" output.check
new.block
+ format.url output
+ new.block
note "note" output.check
format.date output
fin.entry
note "note" output.check
format.date output
fin.entry