summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mlacls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-08 21:15:22 +0000
committerKarl Berry <karl@freefriends.org>2019-05-08 21:15:22 +0000
commit6f272323ab4ef903d4e94df73f8f35be51b1f20d (patch)
tree344bee012f7f2eb897321d300f0a537299563454 /Master/texmf-dist/tex/latex/mlacls
parent78b1605f1f5a0899ce94e74a533fe20e7a2ae747 (diff)
mlacls (8may19)
git-svn-id: svn://tug.org/texlive/trunk@51049 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mlacls')
-rw-r--r--Master/texmf-dist/tex/latex/mlacls/mla.cls34
1 files changed, 23 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/mlacls/mla.cls b/Master/texmf-dist/tex/latex/mlacls/mla.cls
index 33b8ff02b90..d8162b7f259 100644
--- a/Master/texmf-dist/tex/latex/mlacls/mla.cls
+++ b/Master/texmf-dist/tex/latex/mlacls/mla.cls
@@ -15,15 +15,16 @@
%% version 1.3 of this license or any later version.
%% The latest version of this license is in:
%%
-%% http://www.latex-project.org/lppl.txt
+%% https://www.latex-project.org/lppl/lppl-1-3c/
%%
-%% and version 1.3 or later is part of all distributions
-%% of LaTeX version 2005/12/01 or later.
+%% and version 1.3c or later is part of all distributions
+%% of LaTeX version 2008/05/04 or later.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mla}
- [2019/05/02 v0.2 MLA Paper Class]
+ [2019/05/07 v0.3 MLA Paper Class]
+
\LoadClass[letterpaper,12pt]{article}
\newcommand{\mladate}{%
\the\day\
@@ -42,11 +43,11 @@
\fi
\the\year
}
-\DeclareOption{mla7}{%
- \def\blopts{style=mla,noremoteinfo=false,showmedium=true}
-}
-\DeclareOption{mla8}{%
- \def\blopts{style=mla-new,noremoteinfo=false,showmedium=false}
+\DeclareOption{mla7}{\def\@optMlaSeven}
+\DeclareOption{mla8}{\def\@optMlaEight}
+\DeclareOption{mla8alt}{\def\@optMlaEightAlt}
+\DeclareOption*{%
+ \ClassWarning{mla}{Unknown option `\CurrentOption'; ignoring}
}
\ExecuteOptions{mla8}
\ProcessOptions\relax
@@ -55,14 +56,25 @@
\RequirePackage{fullpage}
\RequirePackage{indentfirst}
\RequirePackage{ragged2e}
-\RequirePackage{times}
+\RequirePackage{newtxtext}
\RequirePackage{titlesec}
\RequirePackage{xstring}
\RequirePackage[american]{babel}
\RequirePackage{csquotes}
\RequirePackage{hanging}
\RequirePackage[hidelinks,pdfusetitle]{hyperref}
-\RequirePackage[\blopts,backend=biber]{biblatex}
+\ifdefined\@optMlaSeven
+ \RequirePackage[style=mla,noremoteinfo=false,showmedium=true,
+ backend=biber]{biblatex}
+\else
+ \ifdefined\@optMlaEightAlt
+ \RequirePackage[style=mla,noremoteinfo=false,
+ showmedium=false,backend=biber]{biblatex}
+ \else\ifdefined\@optMlaEight
+ \RequirePackage[style=mla-new,noremoteinfo=false,
+ showmedium=false,backend=biber]{biblatex}
+ \fi\fi
+\fi
\linespread{1.99}
\hyphenpenalty 10000
\pretolerance 10000