X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=mlastyle.dtx;h=35188b349d89fece0f42e0ca802b6eaff605ea14;hp=82440355b59b89db630ba9270952dff0a42b484c;hb=HEAD;hpb=f17295a51b15411c6b392444efb0b7944e35c572 diff --git a/mlastyle.dtx b/mlastyle.dtx index 8244035..35188b3 100644 --- a/mlastyle.dtx +++ b/mlastyle.dtx @@ -175,7 +175,7 @@ Schlegl", % \DoNotIndex{\belowdisplayshortskip,\belowdisplayskip} % \DoNotIndex{\addtolength} % \DoNotIndex{\advance} -% \DoNotIndex{\baselineskip} +% \DoNotIndex{\baselineskip,\lineskip,\lineskiplimit} % \DoNotIndex{\bibpreamble,\bibpunct,\bibsep} % \DoNotIndex{\begin} % \DoNotIndex{\bfseries} @@ -592,7 +592,8 @@ Schlegl", \mlastyle@formatfalse \mlastyle@underlinefalse} \DeclareOption{singlespacequotes}{ - \def\mlastyle@qspread{\linespread{1}\selectfont\vskip\baselineskip}} + \def\mlastyle@qspread{\lineskip=.1\baselineskip% + \lineskiplimit=\lineskip\linespread{1}\selectfont\vskip\baselineskip}} \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax} \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes} \ProcessOptions @@ -674,7 +675,7 @@ Schlegl", \newcommand{\bibstyle@mlastyle}{% \bibpunct[ ]{(}{)}{;}{a}{,}{,} \@ifundefined{chapter} - {\gdef\refname{Works Cited}} + {\gdef\refname{\newpage Works Cited}} {\gdef\bibname{Works Cited}}} % \end{macrocode} % \end{macro} @@ -990,12 +991,12 @@ Schlegl", % Sections are formatted by centering the section name and beginning a new % page. Subsections simply center the section name. % \begin{macrocode} - \renewcommand{\section}{\clearpage\@startsection{section}{1}{\z@ + \renewcommand{\section}{\@startsection{section}{1}{\z@ }{0pt}{1sp}{\centering}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@ - }{0pt}{1sp}{\centering}} + }{0pt}{1sp}{\noindent}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@ - }{0pt}{1sp}{\centering}} + }{0pt}{1sp}{\noindent}} % \end{macrocode} % ^^A\let\mlastyle@vfont\verbatim@font % ^^A\def\verbatim@font{\mlastyle@qspread\mlastyle@vfont} @@ -1092,6 +1093,12 @@ Schlegl", \let\@listi\@listI}\normalsize \fi \linespread{2} + \ifx\relax\mlastyle@qspread + \lineskiplimit=.5\baselineskip + \else + \lineskiplimit=.2\baselineskip + \fi + \lineskip=\lineskiplimit \leftmargini\parindent \def\@listi{\leftmargin\leftmargini \parsep\z@\itemsep\z@\topsep -3\p@\relax}