diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-03 22:31:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-03 22:31:18 +0000 |
commit | 498041140bb5ef80636052ba6cec50fc5291f0a0 (patch) | |
tree | 732ab54c0adbf240e3935ae7ccab5b49817bb643 /Master/texmf-dist | |
parent | 14849b2636be5c6ff3c2800ef9e5428ce3a83722 (diff) |
mlacls (3may19)
git-svn-id: svn://tug.org/texlive/trunk@50974 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/BUGS.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/CHANGELOG.md | 17 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/LICENSE | 416 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/README.md | 74 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/example.bib | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/example.tex | 66 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mlacls/mla.pdf | bin | 0 -> 249997 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/mlacls/mla.dtx | 567 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/mlacls/mla.ins | 53 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mlacls/mla.cls | 165 |
10 files changed, 1377 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mlacls/BUGS.md b/Master/texmf-dist/doc/latex/mlacls/BUGS.md new file mode 100644 index 00000000000..bf40b4f9395 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/BUGS.md @@ -0,0 +1,10 @@ +Bugs +==== + +None currently known. + +Reporting +--------- + +Please report any bugs to the +[issue tracker](https://gitlab.com/ssterling/mlacls/issues). diff --git a/Master/texmf-dist/doc/latex/mlacls/CHANGELOG.md b/Master/texmf-dist/doc/latex/mlacls/CHANGELOG.md new file mode 100644 index 00000000000..1d391c57844 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/CHANGELOG.md @@ -0,0 +1,17 @@ +Changelog +========= + +0.2 (02 May 2019) +----------------- + +* Greatly improved documentation (incl. README) +* Added `endnotes` environment +* Corrected several minor spacing issues +* Changed section headers to small-caps +* Added support for PDF metadata +* Changed document date format to day-month-year + +0.1 (26 Apr 2019) +----------------- + +* Initial release diff --git a/Master/texmf-dist/doc/latex/mlacls/LICENSE b/Master/texmf-dist/doc/latex/mlacls/LICENSE new file mode 100644 index 00000000000..22443139013 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/LICENSE @@ -0,0 +1,416 @@ +The LaTeX Project Public License +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +LPPL Version 1.3c 2008-05-04 + +Copyright 1999 2002-2008 LaTeX3 Project + Everyone is allowed to distribute verbatim copies of this + license document, but modification of it is not allowed. + + +PREAMBLE +======== + +The LaTeX Project Public License (LPPL) is the primary license under +which the LaTeX kernel and the base LaTeX packages are distributed. + +You may use this license for any work of which you hold the copyright +and which you wish to distribute. This license may be particularly +suitable if your work is TeX-related (such as a LaTeX package), but +it is written in such a way that you can use it even if your work is +unrelated to TeX. + +The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', +below, gives instructions, examples, and recommendations for authors +who are considering distributing their works under this license. + +This license gives conditions under which a work may be distributed +and modified, as well as conditions under which modified versions of +that work may be distributed. + +We, the LaTeX3 Project, believe that the conditions below give you +the freedom to make and distribute modified versions of your work +that conform with whatever technical specifications you wish while +maintaining the availability, integrity, and reliability of +that work. If you do not see how to achieve your goal while +meeting these conditions, then read the document `cfgguide.tex' +and `modguide.tex' in the base LaTeX distribution for suggestions. + + +DEFINITIONS +=========== + +In this license document the following terms are used: + + `Work' + Any work being distributed under this License. + + `Derived Work' + Any work that under any applicable law is derived from the Work. + + `Modification' + Any procedure that produces a Derived Work under any applicable + law -- for example, the production of a file containing an + original file associated with the Work or a significant portion of + such a file, either verbatim or with modifications and/or + translated into another language. + + `Modify' + To apply any procedure that produces a Derived Work under any + applicable law. + + `Distribution' + Making copies of the Work available from one person to another, in + whole or in part. Distribution includes (but is not limited to) + making any electronic components of the Work accessible by + file transfer protocols such as FTP or HTTP or by shared file + systems such as Sun's Network File System (NFS). + + `Compiled Work' + A version of the Work that has been processed into a form where it + is directly usable on a computer system. This processing may + include using installation facilities provided by the Work, + transformations of the Work, copying of components of the Work, or + other activities. Note that modification of any installation + facilities provided by the Work constitutes modification of the Work. + + `Current Maintainer' + A person or persons nominated as such within the Work. If there is + no such explicit nomination then it is the `Copyright Holder' under + any applicable law. + + `Base Interpreter' + A program or process that is normally needed for running or + interpreting a part or the whole of the Work. + + A Base Interpreter may depend on external components but these + are not considered part of the Base Interpreter provided that each + external component clearly identifies itself whenever it is used + interactively. Unless explicitly specified when applying the + license to the Work, the only applicable Base Interpreter is a + `LaTeX-Format' or in the case of files belonging to the + `LaTeX-format' a program implementing the `TeX language'. + + + +CONDITIONS ON DISTRIBUTION AND MODIFICATION +=========================================== + +1. Activities other than distribution and/or modification of the Work +are not covered by this license; they are outside its scope. In +particular, the act of running the Work is not restricted and no +requirements are made concerning any offers of support for the Work. + +2. You may distribute a complete, unmodified copy of the Work as you +received it. Distribution of only part of the Work is considered +modification of the Work, and no right to distribute such a Derived +Work may be assumed under the terms of this clause. + +3. You may distribute a Compiled Work that has been generated from a +complete, unmodified copy of the Work as distributed under Clause 2 +above, as long as that Compiled Work is distributed in such a way that +the recipients may install the Compiled Work on their system exactly +as it would have been installed if they generated a Compiled Work +directly from the Work. + +4. If you are the Current Maintainer of the Work, you may, without +restriction, modify the Work, thus creating a Derived Work. You may +also distribute the Derived Work without restriction, including +Compiled Works generated from the Derived Work. Derived Works +distributed in this manner by the Current Maintainer are considered to +be updated versions of the Work. + +5. If you are not the Current Maintainer of the Work, you may modify +your copy of the Work, thus creating a Derived Work based on the Work, +and compile this Derived Work, thus creating a Compiled Work based on +the Derived Work. + +6. If you are not the Current Maintainer of the Work, you may +distribute a Derived Work provided the following conditions are met +for every component of the Work unless that component clearly states +in the copyright notice that it is exempt from that condition. Only +the Current Maintainer is allowed to add such statements of exemption +to a component of the Work. + + a. If a component of this Derived Work can be a direct replacement + for a component of the Work when that component is used with the + Base Interpreter, then, wherever this component of the Work + identifies itself to the user when used interactively with that + Base Interpreter, the replacement component of this Derived Work + clearly and unambiguously identifies itself as a modified version + of this component to the user when used interactively with that + Base Interpreter. + + b. Every component of the Derived Work contains prominent notices + detailing the nature of the changes to that component, or a + prominent reference to another file that is distributed as part + of the Derived Work and that contains a complete and accurate log + of the changes. + + c. No information in the Derived Work implies that any persons, + including (but not limited to) the authors of the original version + of the Work, provide any support, including (but not limited to) + the reporting and handling of errors, to recipients of the + Derived Work unless those persons have stated explicitly that + they do provide such support for the Derived Work. + + d. You distribute at least one of the following with the Derived Work: + + 1. A complete, unmodified copy of the Work; + if your distribution of a modified component is made by + offering access to copy the modified component from a + designated place, then offering equivalent access to copy + the Work from the same or some similar place meets this + condition, even though third parties are not compelled to + copy the Work along with the modified component; + + 2. Information that is sufficient to obtain a complete, + unmodified copy of the Work. + +7. If you are not the Current Maintainer of the Work, you may +distribute a Compiled Work generated from a Derived Work, as long as +the Derived Work is distributed to all recipients of the Compiled +Work, and as long as the conditions of Clause 6, above, are met with +regard to the Derived Work. + +8. The conditions above are not intended to prohibit, and hence do not +apply to, the modification, by any method, of any component so that it +becomes identical to an updated version of that component of the Work as +it is distributed by the Current Maintainer under Clause 4, above. + +9. Distribution of the Work or any Derived Work in an alternative +format, where the Work or that Derived Work (in whole or in part) is +then produced by applying some process to that format, does not relax or +nullify any sections of this license as they pertain to the results of +applying that process. + +10. a. A Derived Work may be distributed under a different license + provided that license itself honors the conditions listed in + Clause 6 above, in regard to the Work, though it does not have + to honor the rest of the conditions in this license. + + b. If a Derived Work is distributed under a different license, that + Derived Work must provide sufficient documentation as part of + itself to allow each recipient of that Derived Work to honor the + restrictions in Clause 6 above, concerning changes from the Work. + +11. This license places no restrictions on works that are unrelated to +the Work, nor does this license place any restrictions on aggregating +such works with the Work by any means. + +12. Nothing in this license is intended to, or may be used to, prevent +complete compliance by all parties with all applicable laws. + + +NO WARRANTY +=========== + +There is no warranty for the Work. Except when otherwise stated in +writing, the Copyright Holder provides the Work `as is', without +warranty of any kind, either expressed or implied, including, but not +limited to, the implied warranties of merchantability and fitness for a +particular purpose. The entire risk as to the quality and performance +of the Work is with you. Should the Work prove defective, you assume +the cost of all necessary servicing, repair, or correction. + +In no event unless required by applicable law or agreed to in writing +will The Copyright Holder, or any author named in the components of the +Work, or any other party who may distribute and/or modify the Work as +permitted above, be liable to you for damages, including any general, +special, incidental or consequential damages arising out of any use of +the Work or out of inability to use the Work (including, but not limited +to, loss of data, data being rendered inaccurate, or losses sustained by +anyone as a result of any failure of the Work to operate with any other +programs), even if the Copyright Holder or said author or said other +party has been advised of the possibility of such damages. + + +MAINTENANCE OF THE WORK +======================= + +The Work has the status `author-maintained' if the Copyright Holder +explicitly and prominently states near the primary copyright notice in +the Work that the Work can only be maintained by the Copyright Holder +or simply that it is `author-maintained'. + +The Work has the status `maintained' if there is a Current Maintainer +who has indicated in the Work that they are willing to receive error +reports for the Work (for example, by supplying a valid e-mail +address). It is not required for the Current Maintainer to acknowledge +or act upon these error reports. + +The Work changes from status `maintained' to `unmaintained' if there +is no Current Maintainer, or the person stated to be Current +Maintainer of the work cannot be reached through the indicated means +of communication for a period of six months, and there are no other +significant signs of active maintenance. + +You can become the Current Maintainer of the Work by agreement with +any existing Current Maintainer to take over this role. + +If the Work is unmaintained, you can become the Current Maintainer of +the Work through the following steps: + + 1. Make a reasonable attempt to trace the Current Maintainer (and + the Copyright Holder, if the two differ) through the means of + an Internet or similar search. + + 2. If this search is successful, then enquire whether the Work + is still maintained. + + a. If it is being maintained, then ask the Current Maintainer + to update their communication data within one month. + + b. If the search is unsuccessful or no action to resume active + maintenance is taken by the Current Maintainer, then announce + within the pertinent community your intention to take over + maintenance. (If the Work is a LaTeX work, this could be + done, for example, by posting to comp.text.tex.) + + 3a. If the Current Maintainer is reachable and agrees to pass + maintenance of the Work to you, then this takes effect + immediately upon announcement. + + b. If the Current Maintainer is not reachable and the Copyright + Holder agrees that maintenance of the Work be passed to you, + then this takes effect immediately upon announcement. + + 4. If you make an `intention announcement' as described in 2b. above + and after three months your intention is challenged neither by + the Current Maintainer nor by the Copyright Holder nor by other + people, then you may arrange for the Work to be changed so as + to name you as the (new) Current Maintainer. + + 5. If the previously unreachable Current Maintainer becomes + reachable once more within three months of a change completed + under the terms of 3b) or 4), then that Current Maintainer must + become or remain the Current Maintainer upon request provided + they then update their communication data within one month. + +A change in the Current Maintainer does not, of itself, alter the fact +that the Work is distributed under the LPPL license. + +If you become the Current Maintainer of the Work, you should +immediately provide, within the Work, a prominent and unambiguous +statement of your status as Current Maintainer. You should also +announce your new status to the same pertinent community as +in 2b) above. + + +WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE +====================================================== + +This section contains important instructions, examples, and +recommendations for authors who are considering distributing their +works under this license. These authors are addressed as `you' in +this section. + +Choosing This License or Another License +---------------------------------------- + +If for any part of your work you want or need to use *distribution* +conditions that differ significantly from those in this license, then +do not refer to this license anywhere in your work but, instead, +distribute your work under a different license. You may use the text +of this license as a model for your own license, but your license +should not refer to the LPPL or otherwise give the impression that +your work is distributed under the LPPL. + +The document `modguide.tex' in the base LaTeX distribution explains +the motivation behind the conditions of this license. It explains, +for example, why distributing LaTeX under the GNU General Public +License (GPL) was considered inappropriate. Even if your work is +unrelated to LaTeX, the discussion in `modguide.tex' may still be +relevant, and authors intending to distribute their works under any +license are encouraged to read it. + +A Recommendation on Modification Without Distribution +----------------------------------------------------- + +It is wise never to modify a component of the Work, even for your own +personal use, without also meeting the above conditions for +distributing the modified component. While you might intend that such +modifications will never be distributed, often this will happen by +accident -- you may forget that you have modified that component; or +it may not occur to you when allowing others to access the modified +version that you are thus distributing it and violating the conditions +of this license in ways that could have legal implications and, worse, +cause problems for the community. It is therefore usually in your +best interest to keep your copy of the Work identical with the public +one. Many works provide ways to control the behavior of that work +without altering any of its licensed components. + +How to Use This License +----------------------- + +To use this license, place in each of the components of your work both +an explicit copyright notice including your name and the year the work +was authored and/or last substantially modified. Include also a +statement that the distribution and/or modification of that +component is constrained by the conditions in this license. + +Here is an example of such a notice and statement: + + %% pig.dtx + %% Copyright 2005 M. Y. Name + % + % This work may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.3 + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.3 or later is part of all distributions of LaTeX + % version 2005/12/01 or later. + % + % This work has the LPPL maintenance status `maintained'. + % + % The Current Maintainer of this work is M. Y. Name. + % + % This work consists of the files pig.dtx and pig.ins + % and the derived file pig.sty. + +Given such a notice and statement in a file, the conditions +given in this license document would apply, with the `Work' referring +to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being +generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' +referring to any `LaTeX-Format', and both `Copyright Holder' and +`Current Maintainer' referring to the person `M. Y. Name'. + +If you do not want the Maintenance section of LPPL to apply to your +Work, change `maintained' above into `author-maintained'. +However, we recommend that you use `maintained', as the Maintenance +section was added in order to ensure that your Work remains useful to +the community even when you can no longer maintain and support it +yourself. + +Derived Works That Are Not Replacements +--------------------------------------- + +Several clauses of the LPPL specify means to provide reliability and +stability for the user community. They therefore concern themselves +with the case that a Derived Work is intended to be used as a +(compatible or incompatible) replacement of the original Work. If +this is not the case (e.g., if a few lines of code are reused for a +completely different task), then clauses 6b and 6d shall not apply. + + +Important Recommendations +------------------------- + + Defining What Constitutes the Work + + The LPPL requires that distributions of the Work contain all the + files of the Work. It is therefore important that you provide a + way for the licensee to determine which files constitute the Work. + This could, for example, be achieved by explicitly listing all the + files of the Work near the copyright notice of each file or by + using a line such as: + + % This work consists of all files listed in manifest.txt. + + in that place. In the absence of an unequivocal list it might be + impossible for the licensee to determine what is considered by you + to comprise the Work and, in such a case, the licensee would be + entitled to make reasonable conjectures as to which files comprise + the Work. + diff --git a/Master/texmf-dist/doc/latex/mlacls/README.md b/Master/texmf-dist/doc/latex/mlacls/README.md new file mode 100644 index 00000000000..1cc67aefc7f --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/README.md @@ -0,0 +1,74 @@ +mla.cls +======= + +LaTeX class for MLA papers. + +Abstract +-------- + +Whilst the TeX family of programs is widely used in the sciences +and academia overall, there seems to be a lack of support for +the humanities, which commonly adhere to MLA format for +student papers and reports. + +Though there *are* +[MLA-style packages available](https://ctan.org/pkg/mla-paper), +none met the expectations of the author (who was mostly +just nit-picky about elegance in code). +So *voilĂ *, there now exists a proper `mla.cls`: +a simple, straightforward class for composing papers +almost perfectly adherent to the +[MLA style guide](https://style.mla.org/). + +Documentation +------------- + +Documentation and source are combined into a +[`.dtx` file](https://texfaq.org/FAQ-dtx), +as is typical for LaTeX packages. +To read the documentation, run `mla.dtx` through LaTeX: +```console +$ pdflatex mla.dtx +$ gv mla.dtx +``` +(If you're getting this package from [CTAN](https://ctan.org), +a file called `mla.pdf` should already be provided.) + +For an example file, refer to `example.tex` and `example.bib`, +or to the appendix in the documentation. + +Installation +------------ + +Run `mla.ins` through LaTeX: +```console +$ latex mla.ins +``` +Once finished, move the output `mla.cls` to your local +[`texmf` directory](https://texfaq.org/FAQ-privinst). + +Authorship & licensing +---------------------- + +`mlacls` copyright 2019 Seth Price (ssterling AT firemail DOT cc). +Released under the +[LaTeX Project Public License v1.3c](https://www.latex-project.org/lppl/lppl-1-3c/). + +See [`CHANGELOG.md`](./CHANGELOG.md) for version history. + +Contributing +------------ + +Submit a merge request on the +[GitLab repository](https://gitlab.com/ssterling/mlacls/). +I rarely look at the GitHub mirror. + +If there's something in [`TODO.md`](./TODO.md), it's likely +a high-priority want, right under bug fixes. + +Bugs +---- + +Refer to [`BUGS.md`](./BUGS.md). +Please report any bugs to the +[issue tracker](https://gitlab.com/ssterling/mlacls/issues). diff --git a/Master/texmf-dist/doc/latex/mlacls/example.bib b/Master/texmf-dist/doc/latex/mlacls/example.bib new file mode 100644 index 00000000000..e53fca0b8c7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/example.bib @@ -0,0 +1,9 @@ +@article{que2019, + author = {Suzie Que}, + title = {Notice to all students}, + journaltitle = {Anytown High School Homepage}, + publisher = {County Board of Education}, + date = {2019-04-20}, + howpublished = {Web}, + urldate = {2019-04-21} +} diff --git a/Master/texmf-dist/doc/latex/mlacls/example.tex b/Master/texmf-dist/doc/latex/mlacls/example.tex new file mode 100644 index 00000000000..fd65b2ba31f --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/example.tex @@ -0,0 +1,66 @@ +\documentclass[mla7]{mla} + +\title{Sample MLA Document} +\author{John Doe} +\professor{Dr Suzie Que} +\course{\LaTeX\ 101} +\date{\today} + +% This will be explained later! +\addbibresource{example.bib} + +\begin{document} + +\begin{paper} + +This is an example document using ``mla.cls''. +The header is automatically printed for you when calling the +``paper'' environment, which is why we jumped straight into +writing our body. + +\section{A section} + +Our professor prefers we section our paper since it's +\emph{really} long: +\begin{blockquote} +I really hope you do this right, John. +I got tired of reading that twenty-page paper with no logical breaks! +Just divide it into sections already, even though the MLA style guide +doesn't tell you to. +It's technically not \emph{prohibited}, I guess. \cite{que2019} +\end{blockquote} +That's when the ``\textbackslash{}section'' commands come in handy. +You can even create a subsection!\endnote{It's just like in the +normal ``article'' class.} + +\subsection{Subsection} + +Notice we cited something above in the blockquote. +That's where ``workscited'' comes in handy with perfect MLA format! +(The ``example.bib'' file follows this whole example.) +But, before that\ldots didn't we specify an endnote somewhere? + +\end{paper} + +\begin{notes} + +% It's also important you use the MLA template +% provided with the class, lest it look wrong. + +\printendnotes[mla] + +\end{notes} + +\begin{workscited} + +% It's important to use ``heading=none'' here, since the +% ``workscited'' environment already prints it out for us. + +% Also, notice we had to include the bibliography file +% in the preamble. That's important! + +\printbibliography[heading=none] + +\end{workscited} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/mlacls/mla.pdf b/Master/texmf-dist/doc/latex/mlacls/mla.pdf Binary files differnew file mode 100644 index 00000000000..3e1b9ae8ee9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mlacls/mla.pdf diff --git a/Master/texmf-dist/source/latex/mlacls/mla.dtx b/Master/texmf-dist/source/latex/mlacls/mla.dtx new file mode 100644 index 00000000000..76ac4506b90 --- /dev/null +++ b/Master/texmf-dist/source/latex/mlacls/mla.dtx @@ -0,0 +1,567 @@ +% \iffalse meta-comment +% +% Copyright 2019 Seth Price. +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% 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 +% +% and version 1.3 or later is part of all distributions +% of LaTeX version 2005/12/01 or later. +% +% \fi + +% \iffalse +% +% \section{Identification} +% +% For the \textsf{driver} code: +% +%<*driver> +\ProvidesFile{mla.dtx} +%</driver> +% +% The \Dclass{mla} class has only been tested with \LaTeXe , +% so we will make sure it doesn't get included in something else: +% \begin{macrocode} +%<mla>\NeedsTeXFormat{LaTeX2e} +% \end{macrocode} +% +% Announce the class name and its version: +% \begin{macrocode} +%<mla>\ProvidesClass{mla} +%<*mla> + [2019/05/02 v0.2 MLA Paper Class] +%</mla> +% \end{macrocode} +% +% \subsection{Documentation driver} +% +% The following is a boilerplate documentation driver for \TeX{}. +% In short, it produces the documentation you're currently reading. +% +% \begin{macrocode} +%<*driver> +\documentclass{ltxdoc} +\AtBeginDocument{\RecordChanges\CodelineIndex\EnableCrossrefs} +\AtEndDocument{\PrintIndex} + +% These bits are some common shorthand I picked up +\newcommand*{\Dfile}[1]{\texttt{#1}} +\newcommand*{\Dopt}[1]{\textsf{\small #1}} +\newcommand*{\Dctr}[1]{\textsl{\small #1}} +\newcommand*{\Dclass}[1]{\textsf{#1}} +\newcommand*{\Dpkg}[1]{\textsf{#1}} +\newcommand*{\Denv}[1]{\textsf{#1}} + +% Needed for the appendix +\usepackage{verbatim} + +% I just want section headers in my PDF +\usepackage[hidelinks]{hyperref} + +% Manually specify PDF metadata +\hypersetup{ + pdfinfo={ + Title=The MLA class, + Author=Seth Price, + Creator=LaTeX + } +} + +\GetFileInfo{mla.dtx} + +\begin{document} +\DocInput{mla.dtx} +\end{document} +%</driver> +% \end{macrocode} +% \fi +% +% \CheckSum{0} +% +% \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 +% Lower-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 +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% \title{The \Dclass{mla} class\thanks{This document corresponds to +% \Dclass{mla}~\fileversion, dated \filedate.}} +% \author{Seth Price \\ \texttt{ssterling@firemail.cc}} +% \date{\filedate} +% +% \maketitle +% +% \begin{abstract} +% Whilst the \TeX\ family of programs is widely used in the sciences +% and academia overall, there seems to be a lack of support for +% the humanities, which commonly adhere to MLA format for +% student papers and reports. +% +% Though there \emph{are} MLA-style packages available, +% none met the expectations of the author (who was mostly +% just nit-picky about elegance in code). +% So \textit{voil\`a}, there now exists a proper \Dfile{mla.cls}: +% a simple, straightforward class for composing papers +% almost perfectly adherent to the MLA style guide. +% \end{abstract} +% +% \tableofcontents +% +% \StopEventually{} ^^A +% +% \section{Initial code} +% \label{sec:initial_code} +% +% The \Dclass{mla} class is based off the \Dclass{article} class, +% so common macros such as \cs{textit} or \cs{figure} are +% useable as expected. +% Not to say we won't be re-defining a lot of macros, though. +% \begin{macrocode} +\LoadClass[letterpaper,12pt]{article} +% \end{macrocode} +% +% \begin{macro}{\mladate} +% MLA requires use of \textit{day month year} dates, not \TeX's +% standard \textit{month, day year}. +% Here we'll define our own \cs{mladate} to give correct output. +% \begin{macrocode} +\newcommand{\mladate}{% + \the\day\ + \ifcase\the\month + \or January + \or February + \or March + \or April + \or May + \or June + \or July + \or September + \or October + \or November + \or December + \fi + \the\year +} +% \end{macrocode} +% \end{macro} +% +% \section{Options} +% \label{sec:options} +% +% Some instructors will still require usage of the seventh edition of MLA. +% MLA 8e is the default for this class, but either can be explicitly specified +% with the \Dopt{mla8} or \Dopt{mla7} options. +% All this actually does is change the edition specified to the +% \Dclass{biblatex} package when loaded in in +% section~\ref{sec:loading_packages}. +% +% \begin{macrocode} +\DeclareOption{mla7}{% + \def\blopts{style=mla,noremoteinfo=false,showmedium=true} +} +\DeclareOption{mla8}{% + \def\blopts{style=mla-new,noremoteinfo=false,showmedium=false} +} +% \end{macrocode} +% +% \subsection{Processing} +% \label{sec:processing} +% +% The default is to use the eighth edition of MLA. +% Just in case something changes, however, it's wise to explicitly +% specify \Dopt{mla8} in \cs{documentclass}. +% +% \begin{macrocode} +\ExecuteOptions{mla8} +\ProcessOptions\relax +% \end{macrocode} +% +% \section{Loading packages} +% \label{sec:loading_packages} +% +% The \Dclass{mla} class requires the following packages to work: +% +% \begin{macrocode} +\RequirePackage{enotez} +\RequirePackage{fancyhdr} +\RequirePackage{fullpage} +\RequirePackage{indentfirst} +\RequirePackage{ragged2e} +\RequirePackage{times} +\RequirePackage{titlesec} +\RequirePackage{xstring} +% \end{macrocode} +% +% And after all that, we finally load \Dpkg{biblatex} for the bibliography. +% The other packages here are prerequisites for \Dpkg{biblatex-mla}. +% \begin{macrocode} +\RequirePackage[american]{babel} +\RequirePackage{csquotes} +\RequirePackage{hanging} +\RequirePackage[hidelinks,pdfusetitle]{hyperref} +\RequirePackage[\blopts,backend=biber]{biblatex} +% \end{macrocode} +% +% \section{Document Layout} +% \label{sec:document_layout} +% +% Now for the difficult part. +% A lot of professors are \emph{really} strict when it comes to laying out +% the paper right, so we can't take any chances here. +% +% \subsection{Font} +% \label{sec:font} +% +% The \Dpkg{times} package was already loaded in +% section~\ref{sec:loading_packages}, and the font size was set to +% 12pt when loading the \Dclass{article} class in +% section~\ref{sec:initial_code}. +% This should be metric-compatible with the infamous Times New Roman, +% the \textit{de facto} standard of the MLA format. +% +% \subsection{Line spacing and breaking} +% \label{sec:line_breaking} +% +% The MLA prescribes perfect double-spacing, but \LaTeX\ does it +% a little \emph{too} perfect, putting one less line of text on the +% paper than expected from the ``industry standard'', Microsoft Word. +% We'll compensate by setting the line spacing to \textit{just enough}. +% \begin{macrocode} +\linespread{1.99} +% \end{macrocode} +% +% To further adhere to the MLA style guide, we'll forego all hyphenation +% and allow weird line breaks and uncanny whitespace. +% \begin{macrocode} +\hyphenpenalty 10000 +\pretolerance 10000 +% \end{macrocode} +% +% \subsection{Paragraphing} +% \label{sec:paragraphing} +% +% MLA prescribes half-inch indents on the first line of each paragraph +% with no spaces in between. +% (Some professors will request you separate sections of lengthy papers, +% however; just put a paragraph in between the two consisting of ``\cs{par}''.) +% \begin{macrocode} +\setlength{\parindent}{0.5in} +\setlength{\RaggedRightParindent}{\parindent} +\setlength{\parskip}{0em} +\setlength{\topsep}{0em} +% \end{macrocode} +% +% MLA also cares more about consistent page count than beautiful typesetting. +% So, we'll accept our fate and allow orphans and widows for the sake of +% uniform line count. +% \begin{macrocode} +\widowpenalty 0 +\clubpenalty 0 +\interlinepenalty 0 +% \end{macrocode} +% +% We also want flush-left ragged lines. +% (This is acheived with the \Dpkg{ragged2e} package.) +% \begin{macrocode} +\RaggedRight +% \end{macrocode} +% +% \begin{environment}{noindent} +% The \Denv{noindent} environment works a little wonky when working with +% the \Dpkg{ragged2e} package, so we'll re-define it. +% \begin{macrocode} +\renewenvironment{noindent}{% + \edef\tmpind{\parindent} + \setlength{\parindent}{0pt} +}{% + \setlength{\parindent}{\tmpind} + \undef{\tmpind} +} +% \end{macrocode} +% +% \end{environment} +% +% \subsection{Page layout} +% \label{sec:page_layout} +% +% The MLA uses standard ``letter-size'' paper, and that's almost +% all we have in America anyway. +% The paper size was already set to letter when loading the +% \Dclass{article} class in section~\ref{sec:initial_code}. +% +% Furthermore, +% the MLA prescribes uniform one-inch margins on said letter-size paper. +% This is taken care of with the \Dpkg{fullpage} package loaded in +% section~\ref{sec:loading_packages}. The \cs{textheight} and \cs{textwidth} +% definitions are here just for good measure. +% \begin{macrocode} +\setlength{\textheight}{9in} +\setlength{\textwidth}{6.5in} +% \end{macrocode} +% +% \subsection{Running head} +% \label{sec:running_head} +% +% The running head in MLA style is simply the author's surname +% followed by the page number, right-aligned. +% This is managed using the \Dpkg{fancyhdr} and \Dpkg{xstring} packages. +% +% \begin{macrocode} +\fancypagestyle{norule}{% + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancyhf{} +\pagestyle{headings} +\pagestyle{norule} +\fancyhead[RO]{{\StrBehind{\@author}{ }[\last]\last} \thepage} +% \end{macrocode} +% +% I have to fully admit I don't know what the following code +% actually does, but I tweaked around the variables to get it all +% in the right place. +% +% \begin{macrocode} +\setlength{\headheight}{18pt} +\setlength{\headsep}{12pt} +\setlength{\voffset}{-34pt} +% \end{macrocode} +% +% \section{Document Markup} +% \label{sec:document_markup} +% +% \subsection{The header} +% \label{sec:the_header} +% +% \begin{macro}{\title} +% \begin{macro}{\author} +% \begin{macro}{\date} +% The \cs{title}, \cs{author} and +% \cs{date} macros are already defined in \Dfile{latex.dtx}. +% Their definitions are shown here for reference. +% \begin{macrocode} +% \newcommand*{\title}[1]{\gdef\@title{#1}} +% \newcommand*{\author}[1]{\gdef\@author{#1}} +% \newcommand*{\date}[1]{\gdef\@date{#1}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% The following, however, are unique to the \Dclass{mla} class. +% +% \begin{macro}{\professor} +% The name of whoever assigned the paper, i.e. ``Dr Marjorie Stewart''. +% \begin{macrocode} +\newcommand*{\professor}[1]{\gdef\@professor{#1}} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\course} +% The course for which this paper was assigned, i.e. ``ENGL 101-02''. +% \begin{macrocode} +\newcommand*{\course}[1]{\gdef\@course{#1}} +% \end{macrocode} +% \end{macro} +% +% We make sure the internal macros used to store the above information +% are empty, lest something weird happen. \cs{date}, however, +% is generally set to the current date. +% \begin{macrocode} +\title{} +\author{} +\professor{} +\course{} +\date{\today} +% \end{macrocode} +% +% \begin{macro}{\makemlaheader} +% This command prints out the standard five-line MLA header, +% including the centered title. +% (Note the use of \cs{mladate}; see section \ref{sec:initial_code}.) +% \begin{macrocode} +\newcommand{\makemlaheader}{% + \begin{noindent} + \@author \\ + \@professor \\ + \@course \\ + \mladate \\ + \begin{center}\@title\end{center} + \end{noindent} +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\maketitle} +% And we'll just re-define \cs{maketitle} to execute \cs{makemlaheader}. +% \begin{macrocode} +\renewcommand{\maketitle}{\makemlaheader} +% \end{macrocode} +% \end{macro} +% +% \subsection{Sectioning} +% \label{sec:sectioning} +% +% \begin{macro}{\section} +% \begin{macro}{\subsection} +% \begin{macro}{\subsubsection} +% Customary section headers are rather straightforward and only consist of +% the section number in Arabic numerals, a space and the section name, +% flush left. +% However, for the sake of clarity, we'll put ours in small-caps. +% +% \begin{macrocode} +\renewcommand{\thesection}{\@arabic\c@section} +\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection} +\renewcommand{\thesubsubsection}{\thesubsection.\@arabic\c@subsubsection} +% \end{macrocode} +% +% Un-fancifying the section headers is acheived using the +% \Dpkg{titlesec} package. +% +% \begin{macrocode} +\titleformat*{\section}{\normalsize\sc} +\titleformat*{\subsection}{\normalsize\sc} +\titleformat*{\subsubsection}{\normalsize\sc} +\titlespacing*{\section}{0pt}{0pt}{0pt} +\titlespacing*{\subsection}{0pt}{0pt}{0pt} +\titlespacing*{\subsubsection}{0pt}{0pt}{0pt} +\titlelabel{\thetitle. } +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \TeX\ generally doesn't indent the first paragraph after a +% section header. +% Since this violates MLA style, we'll simply rely on the +% \Dpkg{indentfirst} package as loaded in +% section~\ref{sec:loading_packages}. +% +% \subsection{Block quotation} +% \label{sec:block_quotation} +% +% \begin{environment}{blockquote} +% MLA dictates block quotes be set flush $0.5$in from the left margin. +% We'll re-define the \Denv{blockquote} environment for this purpose. +% The following looks like a complete hack\ldots because it is, honestly. +% +% \begin{macrocode} +\renewenvironment{blockquote}{% + \list{}{\leftmargin 0.5in} + \item[] + \setlength{\parindent}{0.5in} + \vspace{-\topsep} +}{% + \endlist + \vspace{-\topsep} +} +% \end{macrocode} +% \end{environment} +% +% \subsection{Paper sections} +% +% \subsubsection{Paper} +% +% \begin{environment}{paper} +% The main content; the body. +% Most everything you write will be in here. +% \begin{macrocode} +\newenvironment{paper}{% + \makemlaheader +}{% + \newpage +} +% \end{macrocode} +% \end{environment} +% +% \subsubsection{Endnotes} +% \label{sec:endnotes} +% +% \begin{environment}{notes} +% If you have any endnotes, they can be put in the +% \Denv{notes} environment. +% \begin{macrocode} +\newenvironment{notes}{% + \begin{noindent} + \pdfbookmark[0]{Notes}{notes} + \begin{center}Notes\end{center} + \end{noindent} + \vspace{-16pt} % XXX to counter unexplained space +}{% + \newpage +} +% \end{macrocode} +% \end{environment} +% +% The MLA doesn't prescribe a strict set of rules for endnotes, +% so the following is just to clean it up and make it consistent. +% We're assuming the required \Dpkg{enotez} package is used; +% refer to its documetation for an explanation of the following. +% \begin{macrocode} +\setenotez{list-name={}} +\DeclareInstance{enotez-list}{mla}{list}{% + heading = {}, + format = \normalsize\normalfont, + list-type = description +} +% \end{macrocode} +% +% \subsubsection{Bibliography} +% \label{sec:bibliography} +% +% \begin{environment}{workscited} +% This environment creates the bibliography, starting on +% the next counted page number. +% \begin{macrocode} +\newenvironment{workscited}{% + \begin{noindent} + \pdfbookmark[0]{Works Cited}{workscited} + \begin{center}Works Cited\end{center} + \end{noindent} + \vspace{-16pt} % XXX to counter unexplained space +}{% + \newpage +} +% \end{macrocode} +% \end{environment} +% +% MLA prescribes a half-inch hanging indent on all +% bibliography entries. +% This is acheived by setting the \cs{bibhang} macro +% defined in the \Dpkg{biblatex} package. +% \begin{macrocode} +\setlength{\bibhang}{\parindent} +% \end{macrocode} +% +% \appendix +% \section{Example usage} +% \label{sec:example_usage} +% +% Following is a basic \LaTeXe\ document using \Dfile{mla.cls} +% and its corresponding bibliography. +% +% \subsection{\texttt{example.tex}} +% +% \verbatiminput{example.tex} +% +% \subsection{\texttt{example.bib}} +% +% \verbatiminput{example.bib} +% +% \Finale +\endinput diff --git a/Master/texmf-dist/source/latex/mlacls/mla.ins b/Master/texmf-dist/source/latex/mlacls/mla.ins new file mode 100644 index 00000000000..8afb5099c34 --- /dev/null +++ b/Master/texmf-dist/source/latex/mlacls/mla.ins @@ -0,0 +1,53 @@ +%% vim: set ft=tex: +%% +%% Copyright 2019 Seth Price. +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% 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 +%% +%% and version 1.3 or later is part of all distributions +%% of LaTeX version 2005/12/01 or later. +%% + +\input docstrip.tex + +%\usedir{tex/latex/mla} + +\preamble + +This is a generated file. + +Copyright 2019 Seth Price + +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +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 + +and version 1.3 or later is part of all distributions +of LaTeX version 2005/12/01 or later. + +\endpreamble + +\generate{\file{mla.cls}{\from{mla.dtx}{mla}}} + +\obeyspaces +\Msg{****************************************************} +\Msg{* *} +\Msg{* To finish installation, move the file `mla.cls` *} +\Msg{* into a directory searchable by LaTeX. *} +\Msg{* *} +\Msg{* To produce documentation, run the file `mla.dtx' *} +\Msg{* through LaTeX. *} +\Msg{* *} +\Msg{* Happy TeXing! *} +\Msg{* *} +\Msg{****************************************************} + +\endbatchfile diff --git a/Master/texmf-dist/tex/latex/mlacls/mla.cls b/Master/texmf-dist/tex/latex/mlacls/mla.cls new file mode 100644 index 00000000000..33b8ff02b90 --- /dev/null +++ b/Master/texmf-dist/tex/latex/mlacls/mla.cls @@ -0,0 +1,165 @@ +%% +%% This is file `mla.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mla.dtx (with options: `mla') +%% +%% This is a generated file. +%% +%% Copyright 2019 Seth Price +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% 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 +%% +%% and version 1.3 or later is part of all distributions +%% of LaTeX version 2005/12/01 or later. +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{mla} + [2019/05/02 v0.2 MLA Paper Class] +\LoadClass[letterpaper,12pt]{article} +\newcommand{\mladate}{% + \the\day\ + \ifcase\the\month + \or January + \or February + \or March + \or April + \or May + \or June + \or July + \or September + \or October + \or November + \or December + \fi + \the\year +} +\DeclareOption{mla7}{% + \def\blopts{style=mla,noremoteinfo=false,showmedium=true} +} +\DeclareOption{mla8}{% + \def\blopts{style=mla-new,noremoteinfo=false,showmedium=false} +} +\ExecuteOptions{mla8} +\ProcessOptions\relax +\RequirePackage{enotez} +\RequirePackage{fancyhdr} +\RequirePackage{fullpage} +\RequirePackage{indentfirst} +\RequirePackage{ragged2e} +\RequirePackage{times} +\RequirePackage{titlesec} +\RequirePackage{xstring} +\RequirePackage[american]{babel} +\RequirePackage{csquotes} +\RequirePackage{hanging} +\RequirePackage[hidelinks,pdfusetitle]{hyperref} +\RequirePackage[\blopts,backend=biber]{biblatex} +\linespread{1.99} +\hyphenpenalty 10000 +\pretolerance 10000 +\setlength{\parindent}{0.5in} +\setlength{\RaggedRightParindent}{\parindent} +\setlength{\parskip}{0em} +\setlength{\topsep}{0em} +\widowpenalty 0 +\clubpenalty 0 +\interlinepenalty 0 +\RaggedRight +\renewenvironment{noindent}{% + \edef\tmpind{\parindent} + \setlength{\parindent}{0pt} +}{% + \setlength{\parindent}{\tmpind} + \undef{\tmpind} +} +\setlength{\textheight}{9in} +\setlength{\textwidth}{6.5in} +\fancypagestyle{norule}{% + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancyhf{} +\pagestyle{headings} +\pagestyle{norule} +\fancyhead[RO]{{\StrBehind{\@author}{ }[\last]\last} \thepage} +\setlength{\headheight}{18pt} +\setlength{\headsep}{12pt} +\setlength{\voffset}{-34pt} +\newcommand*{\professor}[1]{\gdef\@professor{#1}} +\newcommand*{\course}[1]{\gdef\@course{#1}} +\title{} +\author{} +\professor{} +\course{} +\date{\today} +\newcommand{\makemlaheader}{% + \begin{noindent} + \@author \\ + \@professor \\ + \@course \\ + \mladate \\ + \begin{center}\@title\end{center} + \end{noindent} +} +\renewcommand{\maketitle}{\makemlaheader} +\renewcommand{\thesection}{\@arabic\c@section} +\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection} +\renewcommand{\thesubsubsection}{\thesubsection.\@arabic\c@subsubsection} +\titleformat*{\section}{\normalsize\sc} +\titleformat*{\subsection}{\normalsize\sc} +\titleformat*{\subsubsection}{\normalsize\sc} +\titlespacing*{\section}{0pt}{0pt}{0pt} +\titlespacing*{\subsection}{0pt}{0pt}{0pt} +\titlespacing*{\subsubsection}{0pt}{0pt}{0pt} +\titlelabel{\thetitle. } +\renewenvironment{blockquote}{% + \list{}{\leftmargin 0.5in} + \item[] + \setlength{\parindent}{0.5in} + \vspace{-\topsep} +}{% + \endlist + \vspace{-\topsep} +} +\newenvironment{paper}{% + \makemlaheader +}{% + \newpage +} +\newenvironment{notes}{% + \begin{noindent} + \pdfbookmark[0]{Notes}{notes} + \begin{center}Notes\end{center} + \end{noindent} + \vspace{-16pt} % XXX to counter unexplained space +}{% + \newpage +} +\setenotez{list-name={}} +\DeclareInstance{enotez-list}{mla}{list}{% + heading = {}, + format = \normalsize\normalfont, + list-type = description +} +\newenvironment{workscited}{% + \begin{noindent} + \pdfbookmark[0]{Works Cited}{workscited} + \begin{center}Works Cited\end{center} + \end{noindent} + \vspace{-16pt} % XXX to counter unexplained space +}{% + \newpage +} +\setlength{\bibhang}{\parindent} +\endinput +%% +%% End of file `mla.cls'. |