From 74f4c06f6b6d775d26201f1f86ca5ac4638d100b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 22 Nov 2003 08:15:19 +0000 Subject: [PATCH] Required url package More indexing --- mlastyle.dtx | 52 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/mlastyle.dtx b/mlastyle.dtx index bdcb18f..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 @@ -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. -- 2.30.2