Cleanup and documentation

This commit is contained in:
2023-05-29 18:57:01 -07:00
parent 0f7796a0fd
commit eb42cd9435
3 changed files with 816 additions and 26 deletions

View File

@ -1,7 +1,22 @@
% Mark's math circle handout style.
% Source is at https://git.betalupi.com/Mark/ormc-handouts
%
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ormc_handout}[2023/05/25 2.0.0 ORMC Handout]
\ProvidesClass{ormc_handout}[2023/05/29 2.0.1 ORMC Handout]
@ -26,14 +41,6 @@
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{a4paper}{%
\setlength\paperheight{297mm}%
\setlength\paperwidth{210mm}%
}
\DeclareOption{letterpaper}{%
\setlength\paperheight{11in}%
\setlength\paperwidth{8.5in}%
}
% ORMC-specific options
\DeclareOption{solutions}{\@solutionstrue}
\DeclareOption{nosolutions}{\@solutionsfalse}
@ -48,7 +55,7 @@
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
\ExecuteOptions{
letterpaper,10pt,
10pt,
solutions,
multinumbering,
pagenumber,
@ -57,6 +64,12 @@
}
\ProcessOptions
% Set letterpaper by default.
% This is overridden by geometry anyway,
% so we don't need an option.
\setlength\paperheight{11in}
\setlength\paperwidth{8.5in}
\input{size1\@ptsize.clo}
% Hack to allow script option override.
@ -74,8 +87,8 @@
% ------------------------------- %
% Minimal LaTeX class %
% Based on a stripped article.cls %
% Version 2022/07/02 v1.4n %
% Based on article.cls, %
% version 2022/07/02 v1.4n %
% ------------------------------- %
% Lengths
@ -287,6 +300,7 @@
% Set up page geometry.
% MUST BE DONE FIRST!
% TODO: can we do this with plain tex?
\RequirePackage{geometry}
\geometry{
paper = letterpaper,