Integrated \NAT@citex and \NAT@parse@date
[latex-mlastyle.git] / mlastyle.bst
index 8803e799217bac81c4ad56ac37e8e75a72ebc6e1..637853d441a18e3d1d8557c10213d37f9147b0f2 100644 (file)
@@ -1,4 +1,4 @@
-% $Id: mlastyle.bst,v 1.14 2003-11-23 00:15:32 tpope Exp $
+% $Id: mlastyle.bst,v 1.16 2003-11-23 07:08:18 tpope Exp $
 % 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.
@@ -64,7 +64,7 @@ FUNCTION {init.consts}
   #0 'citealp.used :=
   #0 'url.used :=
   " \ \ \ \ \unskip\unskip\unskip\unskip\unskip " 'empty.title :=
-  %"" 'empty.title :=
+  "" 'empty.title :=
 }
 
 % I do this a lot
@@ -1182,6 +1182,7 @@ FUNCTION {mastersthesis}
   format.title "title" output.check
   new.block
   "Diss." format.thesis.type output.nonnull
+  new.block
   school "school" output.check
   address output
   format.date "year" output.check
@@ -1216,6 +1217,7 @@ FUNCTION {phdthesis}
   format.btitle "title" output.check
   new.block
   "Diss." format.thesis.type output.nonnull
+  new.block
   school "school" output.check
   address output
   format.date "year" output.check
@@ -1627,11 +1629,9 @@ FUNCTION {begin.bib}
     'skip$
   if$
   url.used
-    { "\expandafter\ifx\csname url\endcsname\relax\let\url\relax\fi"
-      write$ newline$
-      "\expandafter\ifx\csname theurldate\endcsname\relax"
+    { "\providecommand\url[1]{\texttt{#1}}"
       write$ newline$
-      "\let\theurldate\today\fi"
+      "\providecommand\theurldate{\today}"
       write$ newline$
     }
     'skip$