diff options
author | Karl Berry <karl@freefriends.org> | 2024-09-13 20:27:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-09-13 20:27:40 +0000 |
commit | f22950449553ba7fa9adb11169b760d86c20fa43 (patch) | |
tree | fb590ff9bddf711c46f48e3f9b602cccbb9ddc2a /Master/texmf-dist/source/latex | |
parent | b9883a8c871bb8d5420fbad473aa79803c7ae53d (diff) |
mlacls (13sep24)
git-svn-id: svn://tug.org/texlive/trunk@72271 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/mlacls/mla.dtx | 76 |
1 files changed, 63 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/mlacls/mla.dtx b/Master/texmf-dist/source/latex/mlacls/mla.dtx index 807a073ed1c..b957b75bbb6 100644 --- a/Master/texmf-dist/source/latex/mlacls/mla.dtx +++ b/Master/texmf-dist/source/latex/mlacls/mla.dtx @@ -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@pageheader} % \begin{macro}{\MLA@plainheadings} % \begin{macro}{\MLA@fullpage} +% \begin{macro}{\MLA@times} % The following are true/false switches to toggle certain features. % % \begin{macrocode} @@ -254,6 +260,7 @@ \newif\ifMLA@pageheader \newif\ifMLA@plainheadings \newif\ifMLA@fullpage +\newif\ifMLA@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@sevenfalse\MLA@eightfalse\MLA@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@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@timestrue +\DeclareOption{notimes}{\MLA@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@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 -% section~\ref{sec:loading_packages}, -% and the font was set to 12pt when loading the \Dcls{article} class +% The font size 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, +% Unless the option \Dopt{notimes} was specified, +% the \Dpkg{newtxtext} package will have been loaded in +% section~\ref{sec:loading_packages}, +% 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} % |