texlive[72271] Master/texmf-dist: mlacls (13sep24)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 13 22:27:40 CEST 2024


Revision: 72271
          https://tug.org/svn/texlive?view=revision&revision=72271
Author:   karl
Date:     2024-09-13 22:27:40 +0200 (Fri, 13 Sep 2024)
Log Message:
-----------
mlacls (13sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mlacls/mla-example.pdf
    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.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx	2024-09-13 20:27:29 UTC (rev 72270)
+++ trunk/Master/texmf-dist/source/latex/mlacls/mla.dtx	2024-09-13 20:27:40 UTC (rev 72271)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright 2019 Seth Price.
+% Copyright 2019 Seth M. Price.
 % 
 % This file may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -27,7 +27,7 @@
 %<mla>\NeedsTeXFormat{LaTeX2e}
 %<mla>\ProvidesClass{mla}
 %<*mla>
-    [2021/09/14 v1.0 MLA Paper Class]
+    [2024/09/13 v1.1 MLA Paper Class]
 %</mla>
 
 %<*driver>
@@ -80,7 +80,11 @@
 \addbibresource{mla.bib}
 
 %% Just thought it'd be cool to use `acro'
-\usepackage{acro}
+%% (though v3.6 seems to have broken everything)
+\ExplSyntaxOn
+\prop_new:N \l__acro_foreign_format_prop
+\ExplSyntaxOff
+\usepackage{acro2}
 \DeclareAcronym{US}{short=US,long=United States}
 \DeclareAcronym{MLA}{short=MLA,long=Modern Language Association}
 \DeclareAcronym{CTAN}{short=CTAN,
@@ -109,11 +113,12 @@
 \usepackage{microtype}
 
 %% Fancy PDF
-\usepackage[hidelinks]{hyperref}
+\usepackage[numbered]{hypdoc}
 \hypersetup{
+    hidelinks,
     pdfinfo={
         Title=The MLA class,
-        Author=Seth Price,
+        Author=Seth M. Price,
         Creator=LaTeX
     }
 }
@@ -131,7 +136,7 @@
 %
 % \fi
 %
-% \CheckSum{401}
+% \CheckSum{430}
 %
 % \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
@@ -151,7 +156,7 @@
 %
 % \title{The \Dcls{mla} class\thanks{This document corresponds to
 %        \Dcls{mla}~\fileversion, dated \filedate.}}
-% \author{Seth Price \\ \href{mailto:\myemail}{\texttt{\myemail}}}
+% \author{Seth M.\ Price \\ \href{mailto:\myemail}{\texttt{\myemail}}}
 % \date{\today}
 %
 % \maketitle
@@ -241,6 +246,7 @@
 % \begin{macro}{\MLA at pageheader}
 % \begin{macro}{\MLA at plainheadings}
 % \begin{macro}{\MLA at fullpage}
+% \begin{macro}{\MLA at times}
 % The following are true/false switches to toggle certain features.
 %
 %    \begin{macrocode}
@@ -254,6 +260,7 @@
 \newif\ifMLA at pageheader
 \newif\ifMLA at plainheadings
 \newif\ifMLA at fullpage
+\newif\ifMLA at times
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -265,6 +272,7 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 % \section{Options}
 % \label{sec:options}
@@ -297,7 +305,7 @@
 \DeclareOption{mla8alt}{\MLA at sevenfalse\MLA at eightfalse\MLA at eightalttrue}
 %    \end{macrocode}
 %
-% For those who do not plan on using figures and/or footnotes,
+% For those who do not plan on using figures and/or endnotes,
 % some time (and dependency disk space) might be saved by using the
 % \Dopt{nofigures} and/or \Dopt{nonotes} options, as they are enabled
 % by default.
@@ -352,6 +360,16 @@
 \DeclareOption{fullpage}{\MLA at fullpagetrue}
 %    \end{macrocode}
 %
+% \changes{v1.1}{2024/02/04}{Added \Dopt{notimes} option to not set Times New
+%	Roman as the font}
+% For professors that do not require Times New Roman as the font, the
+% \Dopt{notimes} option may be used to keep the default font. This allows
+% maintaining \LaTeX{}'s default font if desired.
+% \begin{macrocode}
+\MLA at timestrue
+\DeclareOption{notimes}{\MLA at timesfalse}
+% \end{macrocode}
+%
 % \subsection{Processing}
 % \label{sec:processing}
 %
@@ -397,7 +415,6 @@
 \RequirePackage{fancyhdr}
 \RequirePackage{fullpage}
 \RequirePackage{ragged2e}
-\RequirePackage{newtxtext}
 \RequirePackage{titlesec}
 \RequirePackage{xstring}
 %    \end{macrocode}
@@ -454,6 +471,14 @@
 \fi
 %    \end{macrocode}
 %
+% And the \Dpkg{newtxtext} package can be disabled with \Dopt{notimes}.
+%
+%    \begin{macrocode}
+\ifMLA at times
+    \RequirePackage{newtxtext}
+\fi
+%    \end{macrocode}
+%
 % The \Dpkg{microtype} package is loaded if the \Dopt{microtype}
 % option is specified.
 % 
@@ -477,11 +502,12 @@
 % \subsection{Font}
 % \label{sec:font}
 %
-% The \Dpkg{newtxtext} package was already loaded in
+% The font size was set to 12pt when loading the \Dcls{article} class
+% in section~\ref{sec:initial_code}.
+% Unless the option \Dopt{notimes} was specified,
+% the \Dpkg{newtxtext} package will have been loaded in
 % section~\ref{sec:loading_packages},
-% and the font was set to 12pt when loading the \Dcls{article} class
-% in section~\ref{sec:initial_code}.
-% This should be metric-compatible with the infamous Times New Roman,
+% which should be metric-compatible with the infamous Times New Roman,
 % the \foreign{de facto} standard of the
 % \ac{MLA} format\footnote{According to the popular, oft-referenced
 % \ac{OWL}: \citeurl{owlmla}.}.
@@ -837,6 +863,28 @@
 % \end{environment}
 % \end{environment}
 %
+% \changes{v1.1}{2024/09/12}{Modify footnotes to be more in-style}
+% \subsection{Footnotes}
+% \label{sec:footnotes}
+%
+% Footnotes are styled similarly to endnotes (see section \ref{sec:endnotes}),
+% but in smaller text, and glued to the bottom of the page.
+%
+%    \begin{macrocode}
+\addtolength{\skip\footins}{1pc}
+\renewcommand{\footnoterule}{%
+    \vfill
+    \kern -3pt\hrule width 0.4\columnwidth
+    \vskip 6pt
+}
+\renewcommand{\@makefnmark}{\@thefnmark}
+\renewcommand{\@makefntext}[1]{%
+    \leftskip 0.5in
+    \parindent -0.5in
+    \@makefnmark.~#1
+}
+%    \end{macrocode}
+%
 % \subsection{Block quotation}
 % \label{sec:block_quoatation}
 %
@@ -1015,6 +1063,8 @@
 \fi
 %    \end{macrocode}
 %
+% See section \ref{sec:footnotes} for footnotes.
+%
 % \subsubsection{Bibliography}
 % \label{sec:bibliography}
 %

Modified: trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls	2024-09-13 20:27:29 UTC (rev 72270)
+++ trunk/Master/texmf-dist/tex/latex/mlacls/mla.cls	2024-09-13 20:27:40 UTC (rev 72271)
@@ -23,7 +23,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{mla}
-    [2021/09/14 v1.0 MLA Paper Class]
+    [2024/09/13 v1.1 MLA Paper Class]
 
 \LoadClass[letterpaper,12pt]{article}
 \newcommand{\mladate}{%
@@ -54,6 +54,7 @@
 \newif\ifMLA at pageheader
 \newif\ifMLA at plainheadings
 \newif\ifMLA at fullpage
+\newif\ifMLA at times
 \DeclareOption{mla7}{\MLA at seventrue\MLA at eightfalse\MLA at eightaltfalse}
 \DeclareOption{mla8}{\MLA at sevenfalse\MLA at eighttrue\MLA at eightaltfalse}
 \DeclareOption{mla8alt}{\MLA at sevenfalse\MLA at eightfalse\MLA at eightalttrue}
@@ -71,6 +72,8 @@
 \DeclareOption{plainheadings}{\MLA at plainheadingstrue}
 \MLA at fullpagefalse
 \DeclareOption{fullpage}{\MLA at fullpagetrue}
+\MLA at timestrue
+\DeclareOption{notimes}{\MLA at timesfalse}
 \DeclareOption*{%
     \ClassWarning{mla}{Unknown option `\CurrentOption'; ignoring}
 }
@@ -80,7 +83,6 @@
 \RequirePackage{fancyhdr}
 \RequirePackage{fullpage}
 \RequirePackage{ragged2e}
-\RequirePackage{newtxtext}
 \RequirePackage{titlesec}
 \RequirePackage{xstring}
 \RequirePackage[american]{babel}
@@ -106,6 +108,9 @@
 \ifMLA at notes
     \RequirePackage{enotez}
 \fi
+\ifMLA at times
+    \RequirePackage{newtxtext}
+\fi
 \ifMLA at microtype
     \RequirePackage{microtype}
 \fi
@@ -211,6 +216,18 @@
     topsep=0pt,
     leftmargin=\parindent
 }
+\addtolength{\skip\footins}{1pc}
+\renewcommand{\footnoterule}{%
+    \vfill
+    \kern -3pt\hrule width 0.4\columnwidth
+    \vskip 6pt
+}
+\renewcommand{\@makefnmark}{\@thefnmark}
+\renewcommand{\@makefntext}[1]{%
+    \leftskip 0.5in
+    \parindent -0.5in
+    \@makefnmark.~#1
+}
 \renewenvironment{blockquote}{%
     \list{}{\leftmargin 0.5in}
     \item[]



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