texlive[56126] Master/texmf-dist: mlacls (17aug20)

commits+karl at tug.org commits+karl at tug.org
Mon Aug 17 22:58:59 CEST 2020


Revision: 56126
          http://tug.org/svn/texlive?view=revision&revision=56126
Author:   karl
Date:     2020-08-17 22:58:59 +0200 (Mon, 17 Aug 2020)
Log Message:
-----------
mlacls (17aug20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.pdf
    trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.tex
    trunk/Master/texmf-dist/doc/latex/mlacls/mla.pdf
    trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx
    trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls

Modified: trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.tex	2020-08-17 20:58:45 UTC (rev 56125)
+++ trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.tex	2020-08-17 20:58:59 UTC (rev 56126)
@@ -1,4 +1,4 @@
-\documentclass[mla7,microtype]{mla}
+\documentclass[mla8]{mla}
 
 \title{Sample MLA Document}
 \author{John Doe}

Modified: trunk/Master/texmf-dist/doc/latex/mlacls/mla.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx	2020-08-17 20:58:45 UTC (rev 56125)
+++ trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx	2020-08-17 20:58:59 UTC (rev 56126)
@@ -27,7 +27,7 @@
 %<mla>\NeedsTeXFormat{LaTeX2e}
 %<mla>\ProvidesClass{mla}
 %<*mla>
-    [2019/05/29 v0.6 MLA Paper Class]
+    [2020/08/16 v0.8 MLA Paper Class]
 %</mla>
 
 %<*driver>
@@ -137,7 +137,7 @@
 %
 % \fi
 %
-% \CheckSum{291}
+% \CheckSum{299}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -214,6 +214,7 @@
 % (see section~\ref{sec:the_header}).
 %
 % \changes{v0.2}{2019/05/02}{Added macro}
+% \changes{v0.7}{2019/08/30}{Added August to month list}
 %    \begin{macrocode}
 \newcommand{\mladate}{%
     \the\day\ 
@@ -225,6 +226,7 @@
         \or May
         \or June
         \or July
+        \or August
         \or September
         \or October
         \or November
@@ -452,23 +454,10 @@
 % The \citetitle{mlahb} specifies half-inch first-line indentation
 % for every paragraph and no extra spacing in between.
 %
-% \begin{macro}{\MLA at indent}
-% \changes{v0.7}{2019/06/05}{Added macro}
-% In case the indent should be changed, several other macros relying
-% on it might be broken.
-% Using an internal like \cs{MLA at indent} prevents this.
-%
-%    \begin{macrocode}
-\newlength{\MLA at indent}
-\setlength{\MLA at indent}{0.5in}
-%    \end{macrocode}
-% \end{macro}
-%
-%
 % \changes{v0.6}{2019-05-29}{Explicitly set \cs{partopset} to 0pt}
 %    \begin{macrocode}
-\setlength{\parindent}{\MLA at indent}
-\setlength{\RaggedRightParindent}{\MLA at indent}
+\setlength{\parindent}{0.5in}
+\setlength{\RaggedRightParindent}{\parindent}
 \setlength{\parskip}{0em}
 \setlength{\topsep}{0em}
 \setlength{\partopsep}{0em}
@@ -652,6 +641,8 @@
 % \subsection{Sectioning}
 % \label{sec:sectioning}
 %
+% \changes{v0.7}{2019/08/30}{Replaced regular space after dot
+%	in section headings with \cs{enspace}}
 % \begin{macro}{\section}
 % \changes{v0.2}{2019/05/02}{Changed heading to small-caps}
 % \begin{macro}{\subsection}
@@ -679,14 +670,19 @@
 % Un-fancifying the headings is acheived using
 % the \Dpkg{titlesec} package.
 %
+% \changes{v0.8}{2020/08/16}{Removed extraneous spacing and newlines
+%	in section headings}
 %    \begin{macrocode}
-\titleformat*{\section}{\normalsize\sc}
-\titleformat*{\subsection}{\normalsize\sc}
-\titleformat*{\subsubsection}{\normalsize\sc}
+\titleformat{\section}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
+\titleformat{\subsection}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
+\titleformat{\subsubsection}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
 \titlespacing*{\section}{0pt}{0pt}{0pt}
 \titlespacing*{\subsection}{0pt}{0pt}{0pt}
 \titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
-\titlelabel{\thetitle. }
+\titlelabel{}
+\patchcmd{\ttl at select}{\strut}{}{}{}
+\patchcmd{\ttlh at hang}{\strut}{}{}{}
+\patchcmd{\ttlh at hang}{\strut}{}{}{}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -699,7 +695,6 @@
 % \changes{v0.4}{2019/05/12}{Added list type}
 % \begin{environment}{enumerate}
 % \changes{v0.4}{2019/05/12}{Added list type}
-% \changes{v0.7}{2019/06/05}{Changed length to use \cs{MLA at indent}}
 % To the user, \Dlst{itemize} and \Dlst{enumerate} lists
 % will function exactly as expected.
 % However, the formatting of the lists must be modified as to
@@ -713,13 +708,13 @@
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 \setlist[enumerate]{%
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 %    \end{macrocode}
 % \end{environment}
@@ -736,12 +731,11 @@
 %
 % \changes{v0.2}{2019/04/28}{Countered unexplained vertical space
 %	after environment}
-% \changes{v0.7}{2019/06/05}{Changed length to use \cs{MLA at indent}}
 %    \begin{macrocode}
 \renewenvironment{blockquote}{%
-    \list{}{\leftmargin \MLA at indent}
+    \list{}{\leftmargin 0.5in}
     \item[]
-    \setlength{\parindent}{\MLA at indent}
+    \setlength{\parindent}{0.5in}
     \vspace{-\topsep}
 }{%
     \endlist
@@ -854,7 +848,6 @@
 %	to \Dlst{mla}}
 % \changes{v0.4}{2019/05/12}{Removed extra \cs{vspace}}
 % \changes{v0.5}{2019/05/18}{Moved \cs{newpage} to beginning of environment}
-% \changes{v0.7}{2019/06/05}{Changed length to use \cs{MLA at indent}}
 %    \begin{macrocode}
 \newenvironment{notes}{%
     \newpage
@@ -877,7 +870,7 @@
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 %    \end{macrocode}
 %
@@ -904,7 +897,7 @@
 % \changes{v0.2}{2019/04/28}{Countered unexplained vertical space
 %	after heading}
 % \changes{v0.5}{2019/05/18}{Moved \cs{newpage} to beginning of environment}
-% \changes{v0.7}{2019/06/05}{Changed length to use \cs{MLA at indent}}
+% \changes{v0.7}{2019/08/30}{Changed correction spacing from 16pt to 10pt}
 %    \begin{macrocode}
 \newenvironment{workscited}{%
     \newpage
@@ -912,7 +905,7 @@
         \pdfbookmark[0]{Works Cited}{workscited}
         \begin{center}Works Cited\end{center}
     \end{noindent}
-    \vspace{-16pt} % XXX to counter unexplained space
+    \vspace{-10pt} % XXX to counter unexplained space
 }{}
 %    \end{macrocode}
 % \end{environment}
@@ -923,7 +916,7 @@
 % defined by the \Dpkg{biblatex} package.
 %
 %    \begin{macrocode}
-\setlength{\bibhang}{\MLA at indent}
+\setlength{\bibhang}{\parindent}
 %    \end{macrocode}
 %
 % \appendix

Modified: trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls	2020-08-17 20:58:45 UTC (rev 56125)
+++ trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls	2020-08-17 20:58:59 UTC (rev 56126)
@@ -23,7 +23,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{mla}
-    [2019/05/29 v0.6 MLA Paper Class]
+    [2020/08/16 v0.8 MLA Paper Class]
 
 \LoadClass[letterpaper,12pt]{article}
 \newcommand{\mladate}{%
@@ -36,6 +36,7 @@
         \or May
         \or June
         \or July
+        \or August
         \or September
         \or October
         \or November
@@ -93,10 +94,8 @@
 \linespread{1.905}
 \hyphenpenalty=10000
 \pretolerance=10000
-\newlength{\MLA at indent}
-\setlength{\MLA at indent}{0.5in}
-\setlength{\parindent}{\MLA at indent}
-\setlength{\RaggedRightParindent}{\MLA at indent}
+\setlength{\parindent}{0.5in}
+\setlength{\RaggedRightParindent}{\parindent}
 \setlength{\parskip}{0em}
 \setlength{\topsep}{0em}
 \setlength{\partopsep}{0em}
@@ -147,29 +146,32 @@
 \renewcommand{\thesection}{\@arabic\c at section}
 \renewcommand{\thesubsection}{\thesection.\@arabic\c at subsection}
 \renewcommand{\thesubsubsection}{\thesubsection.\@arabic\c at subsubsection}
-\titleformat*{\section}{\normalsize\sc}
-\titleformat*{\subsection}{\normalsize\sc}
-\titleformat*{\subsubsection}{\normalsize\sc}
+\titleformat{\section}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
+\titleformat{\subsection}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
+\titleformat{\subsubsection}[block]{\normalsize\sc}{\thetitle.\enspace}{0pt}{}[]
 \titlespacing*{\section}{0pt}{0pt}{0pt}
 \titlespacing*{\subsection}{0pt}{0pt}{0pt}
 \titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
-\titlelabel{\thetitle. }
+\titlelabel{}
+\patchcmd{\ttl at select}{\strut}{}{}{}
+\patchcmd{\ttlh at hang}{\strut}{}{}{}
+\patchcmd{\ttlh at hang}{\strut}{}{}{}
 \setlist[itemize]{%
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 \setlist[enumerate]{%
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 \renewenvironment{blockquote}{%
-    \list{}{\leftmargin \MLA at indent}
+    \list{}{\leftmargin 0.5in}
     \item[]
-    \setlength{\parindent}{\MLA at indent}
+    \setlength{\parindent}{0.5in}
     \vspace{-\topsep}
 }{%
     \endlist
@@ -207,7 +209,7 @@
     parsep=0pt,
     itemsep=0pt,
     topsep=0pt,
-    leftmargin=\MLA at indent
+    leftmargin=\parindent
 }
 \DeclareInstance{enotez-list}{mla}{list}{%
     heading = {},
@@ -221,9 +223,9 @@
         \pdfbookmark[0]{Works Cited}{workscited}
         \begin{center}Works Cited\end{center}
     \end{noindent}
-    \vspace{-16pt} % XXX to counter unexplained space
+    \vspace{-10pt} % XXX to counter unexplained space
 }{}
-\setlength{\bibhang}{\MLA at indent}
+\setlength{\bibhang}{\parindent}
 \endinput
 %%
 %% End of file `mla.cls'.



More information about the tex-live-commits mailing list.