X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=mlastyle.dtx;h=8c3cc7a6d21466f64443c98b8ad683aea1a83b96;hp=9710bc276af501d5c7293672e7cc4e1806ebd6f4;hb=8b0e102a7a640af307c4f539b856bd05cf9d023b;hpb=49d6ef900d8cbc6f20f25d2abf2b9b2df4c9e00e diff --git a/mlastyle.dtx b/mlastyle.dtx index 9710bc2..8c3cc7a 100644 --- a/mlastyle.dtx +++ b/mlastyle.dtx @@ -123,26 +123,22 @@ Schlegl", % % \GetFileInfo{mlastyle.sty} % -% \DoNotIndex{\ } -% \DoNotIndex{\.} +% \DoNotIndex{\ ,\:,\/} % \DoNotIndex{\@afterindentfalse,\@afterindenttrue} % \DoNotIndex{\@arabic} % \DoNotIndex{\@author} % \DoNotIndex{\@auxout} -% \DoNotIndex{\@citea,\@citeb} +% \DoNotIndex{\@citea,\@citeb,\@citex} % \DoNotIndex{\@date} % \DoNotIndex{\@empty} % \DoNotIndex{\@for} % \DoNotIndex{\@ifnextchar,\@ifstar,\@ifundefined} % \DoNotIndex{\@latex@warning} % \DoNotIndex{\@listI} -% \DoNotIndex{\@listi} -% \DoNotIndex{\@listii} -% \DoNotIndex{\@listiii} -% \DoNotIndex{\@listiv} -% \DoNotIndex{\@listv} -% \DoNotIndex{\@listvi} +% \DoNotIndex{\@listi,\@listii,\@listiii} +% \DoNotIndex{\@listiv,\@listv,\@listvi} % \DoNotIndex{\@m} +% \DoNotIndex{\@noitemerr} % \DoNotIndex{\@startsection} % \DoNotIndex{\@tempswafalse} % \DoNotIndex{\@title} @@ -151,9 +147,12 @@ Schlegl", % \DoNotIndex{\ExecuteOptions} % \DoNotIndex{\G@refundefinedtrue} % \DoNotIndex{\NAT@@citetp,\NAT@citetp,\NAT@ctype,\NAT@date,\NAT@sep} +% \DoNotIndex{\ifNAT@par,\ifNAT@swa} % \DoNotIndex{\ProcessOptions} % \DoNotIndex{\RequirePackage} % \DoNotIndex{\UL@start,\UL@stop} +% \DoNotIndex{\url@samestyle,\urlstyle,\UrlBigBreaks,\UrlBreakPenalty} +% \DoNotIndex{\do@url@hyp} % \DoNotIndex{\addtolength} % \DoNotIndex{\advance} % \DoNotIndex{\baselineskip} @@ -192,7 +191,7 @@ Schlegl", % \DoNotIndex{\headrulewidth} % \DoNotIndex{\if@filesw} % \DoNotIndex{\if@tempswa} -% \DoNotIndex{\ifcase} +% \DoNotIndex{\ifcase,\ifhmode,\ifnum} % \DoNotIndex{\ifmlastyle@bibstyle} % \DoNotIndex{\ifmlastyle@format} % \DoNotIndex{\ifmlastyle@pages} @@ -215,6 +214,7 @@ Schlegl", % \DoNotIndex{\linespread} % \DoNotIndex{\list} % \DoNotIndex{\listparindent} +% \DoNotIndex{\mathchardef} % \DoNotIndex{\makeenmark} % \DoNotIndex{\mbox} % \DoNotIndex{\ml@} @@ -280,6 +280,7 @@ Schlegl", % \DoNotIndex{\usecounter} % \DoNotIndex{\unskip} % \DoNotIndex{\vskip} +% \DoNotIndex{\xdef} % \DoNotIndex{\write} % \DoNotIndex{\year} % \DoNotIndex{\z@} @@ -795,7 +796,7 @@ Schlegl", % No penalty for |\slash|. % ^^A\let\mlastyle@sl@sh=/ % \begin{macrocode} - \def\slash{/\penalty\z@} + \edef\slash{/\penalty\z@} % \end{macrocode} % ^^A \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx} % ^^A \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else @@ -920,9 +921,9 @@ Schlegl", % Only one space after colons, unless someone else has already tinkered % with its space factor. % \begin{macrocode} -\let\nonfrenchspacing\mlstyle@intnfs -\def\nonfrenchspacing{\mlastyle@intnfs - \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi} + \let\mlastyle@intnfs\nonfrenchspacing + \def\nonfrenchspacing{\mlastyle@intnfs + \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi} \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi % \end{macrocode} % \end{macro} @@ -955,6 +956,9 @@ Schlegl", \def\footnotesize{\normalsize} % \end{macrocode} % ^^A\let\footnoterule\relax +% \begin{macro}{\enoteformat} +% \begin{macro}{\enoteheading} +% \begin{macro}{\enotesize} % Endnotes are supported, but only if the \package{endnotes} package is % loaded {\em before\/} this package. % \begin{macrocode} @@ -964,16 +968,28 @@ Schlegl", \def\enotesize{\normalsize} \fi % \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} % \subsubsection{Bibliography} -% \textsc{To Do}: Switch to the \package{url} package. +% \begin{macro}{\url@mlastyle} +% |\url| is needed to format urls in the bibliography. +% Are |\UrlBreakPenalty| and |\UrlBigBreakPenalty| reversed? % \begin{macrocode} -\ifx\@undefined\url{ - \catcode`/=13 - \gdef\url{\bgroup\catcode`/=13 - \let/\slash\mlastyle@url} - \gdef\mlastyle@url#1{#1\egroup} -}\fi +\RequirePackage{url} +\def\url@mlastyle{\url@samestyle + \mathchardef\UrlBreakPenalty 0 + \def\UrlBigBreaks{\do\/\do@url@hyp} + } +\urlstyle{mla} % \end{macrocode} +% \end{macro} +% ^^A\ifx\@undefined\url{ +% ^^A \catcode`/=13 +% ^^A \gdef\url{\bgroup\catcode`/=13 +% ^^A \let/\slash\mlastyle@url} +% ^^A \gdef\mlastyle@url#1{#1\egroup}} +% ^^A}\fi % \begin{environment}{thebibliography} % The definition of |thebibliography| varies depending on the document % class.