X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=mlastyle.dtx;h=7033be8b0ee6686b7709c27bb15416c90055c73d;hp=fe268362b8a1ed27c2bc2a2509b6851ea7a811cc;hb=4bc6748190e5ece5a05f969febf7f3ec2468c337;hpb=4ea90e89570c59d50dcbb70f26bbdcd2f807b92b diff --git a/mlastyle.dtx b/mlastyle.dtx index fe26836..7033be8 100644 --- a/mlastyle.dtx +++ b/mlastyle.dtx @@ -826,6 +826,9 @@ Schlegl", % The definition of |\thebibliography| varies depending on the document % class. % \begin{macrocode} +\ifx\@undefined\url + \def\url#1{{\catcode`/=13\let/=\mlastyle@slash#1}} +\fi \ifx\@undefined\citet \@ifundefined{chapter} % \end{macrocode} @@ -839,7 +842,6 @@ Schlegl", \itemindent-\leftmargin \def\newblock{} \usecounter{enumiv} - %\catcode`/=13\global\let/=\mlastyle@slash \sloppy%\sfcode`\.=\@m }} % \end{macrocode} @@ -853,7 +855,6 @@ Schlegl", \itemindent-\leftmargin \def\newblock{} \usecounter{enumiv} - %\catcode`/=13\let/=\mlastyle@slash \sloppy%\sfcode`\.=\@m }} % \end{macrocode} @@ -874,7 +875,9 @@ Schlegl", % This first block is the beginnings of an implementation for % \package{natbib}. % \begin{macrocode} -\newcommand{\bibstyle@mlastyle}{\bibpunct[ ]{(}{)}{;}{a}{,}{;} +\newcommand{\bibstyle@mlastyle}% +{\bibpunct[ ]{(}{)}{;}{a}{\mlastyle@comma}{,} +\gdef\mlastyle@comma{\ifx\NAT@date\space\def\NAT@date{\unskip}\else,\fi} \@ifundefined{chapter} {\gdef\refname{Works Cited}} {\gdef\bibname{Works Cited}}} @@ -983,7 +986,7 @@ Schlegl", {\renewcommand\bibname{Works Cited}} \else \let\cite\citep - \newcommand\citepage[2][]{\citetext{#2}} + \newcommand\citepage[2][]{\citeyearpar[\unskip #1]{#2}} \newcommand\citepageM[2][]{ \citetext{#2}} \newcommand\citeindirect[2][]{\citep[#1][qtd. in]{#2}} \newcommand\citeindirectM[2][]{ \citep[#1][qtd. in]{#2}}