X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=mlastyle.bst;h=15e90d09fa889752d02adc566cd8eedd151b3330;hp=6055ac2adb4d23e2b4e34bec686741b614f01f43;hb=83bae224ee37b9f4c40f596dac6a9bb3ba962a5c;hpb=bf44439596cc2255a442b423bfbb57d7c84909b7 diff --git a/mlastyle.bst b/mlastyle.bst index 6055ac2..15e90d0 100644 --- a/mlastyle.bst +++ b/mlastyle.bst @@ -1,4 +1,5 @@ -% BibTeX standard bibliography style `plain' +% BibTeX bibliography style `mlastyle' +% Based on BibTeX standard bibliography style `plain' % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09. % Copyright (C) 1985, all rights reserved. % Copying of this file is authorized only if either @@ -40,7 +41,7 @@ ENTRY { author.duplicate author.shared } { label } -INTEGERS { output.state before.all mid.sentence after.sentence after.block after.title author.different author.last author.flast citen.used url.used } +INTEGERS { output.state before.all mid.sentence after.sentence after.block after.title author.different author.last author.flast citealt.used url.used } % Rearranged such that true values require capital letters FUNCTION {init.consts} @@ -55,7 +56,7 @@ FUNCTION {init.consts} #2 'author.flast := %#3 'author.firstlast := - #0 'citen.used := + #0 'citealt.used := #0 'url.used := } @@ -640,9 +641,8 @@ FUNCTION {format.article.crossref} %} %{ "In " key * } %if$ - pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ + pages empty$ { " \citealt" } { " \citealt[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * - citen.used #1 + 'citen.used := } FUNCTION {format.crossref.editor} @@ -687,9 +687,8 @@ FUNCTION {format.book.crossref} % } % { format.crossref.editor * } % if$ - pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ + pages empty$ { " \citealt" } { " \citealt[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * - citen.used #1 + 'citen.used := } FUNCTION {format.incoll.inproc.crossref} @@ -710,9 +709,8 @@ FUNCTION {format.incoll.inproc.crossref} % } % { "In " format.crossref.editor * } % if$ - pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ + pages empty$ { " \citealt" } { " \citealt[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * - citen.used #1 + 'citen.used := } FUNCTION {cite.title} @@ -1369,7 +1367,7 @@ FUNCTION {init.vars} FUNCTION {forward.author.dup.check} { url empty$ 'skip$ { url.used #1 + 'url.used := } if$ - crossref empty$ 'skip$ { citen.used #1 + 'citen.used := } if$ + crossref empty$ 'skip$ { citealt.used #1 + 'citealt.used := } if$ author empty$ { editor empty$ { organization field.or.null 'a := }{ editor 'a :=} if$} { author 'a := } @@ -1463,8 +1461,8 @@ REVERSE {reverse.author} FUNCTION {begin.bib} { - citen.used - { "\ifx\undefined\citeN\let\citeN\cite\fi" write$ newline$ } + citealt.used + { "\ifx\undefined\citealt\let\citealt\cite\fi" write$ newline$ } 'skip$ if$ url.used