Replace "ORMC" with generic "handout"
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{../../../lib/tex/ormc_handout}[2023/05/29 2.0.2 ORMC Handout]
|
||||
\ProvidesClass{../../../lib/tex/handout}[2025/03/02 2.0.2 Mark's handout class]
|
||||
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
\@twocolumnfalse
|
||||
\@twosidefalse
|
||||
\@mparswitchfalse
|
||||
% ORMC-specific
|
||||
% Handout-specific
|
||||
\newif{\if@solutions} % If false, solutions and instructor notes are hidden.
|
||||
\newif{\if@singlenumbering} % If true, the same counter is used for all objects.
|
||||
\newif{\if@nopagenumber} % If true, don't number pages.
|
||||
@ -25,7 +25,7 @@
|
||||
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
|
||||
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
|
||||
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
|
||||
% ORMC-specific options
|
||||
% Handout-specific options
|
||||
\DeclareOption{solutions}{\@solutionstrue}
|
||||
\DeclareOption{nosolutions}{\@solutionsfalse}
|
||||
\DeclareOption{multinumbering}{\@singlenumberingfalse}
|
||||
@ -37,7 +37,7 @@
|
||||
\DeclareOption{showwarning}{\@nowarningfalse}
|
||||
\DeclareOption{hidewarning}{\@nowarningtrue}
|
||||
\DeclareOption{unfinished}{\@unfinishedtrue}
|
||||
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
|
||||
\DeclareOption*{\ClassWarning{handout}{\CurrentOption ignored}}
|
||||
|
||||
\@unfinishedfalse
|
||||
\ExecuteOptions{
|
||||
@ -629,12 +629,12 @@
|
||||
|
||||
% Keep track of the current background color.
|
||||
% Useful for transparent tikz drawings.
|
||||
\def\ORMCbgcolor{white}
|
||||
\def\bgcolor{white}
|
||||
|
||||
% Make a box environment.
|
||||
% These can safely be nested.
|
||||
% Args: title, back color, frame color.
|
||||
\newenvironment{ORMCbox}[3]{
|
||||
\newenvironment{hobox}[3]{
|
||||
% \linehack draws a line across a tcolorbox.
|
||||
% tcolorbox only supports two sections, but
|
||||
% this hack allows us to have more.
|
||||
@ -653,7 +653,7 @@
|
||||
|
||||
% Keep track of the current background color.
|
||||
% Useful for transparent tikz drawings.
|
||||
\def\ORMCbgcolor{#2}
|
||||
\def\bgcolor{#2}
|
||||
|
||||
\begin{tcolorbox}[
|
||||
enhanced,
|
||||
@ -675,21 +675,21 @@
|
||||
}
|
||||
|
||||
\newenvironment{examplesolution}{
|
||||
\begin{ORMCbox}{Example Solution}{black!10!white}{black!65!white}
|
||||
\begin{hobox}{Example Solution}{black!10!white}{black!65!white}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
|
||||
\if@solutions
|
||||
\newenvironment{solution}{
|
||||
\begin{ORMCbox}{Solution}{ored!10!white}{ored}
|
||||
\begin{hobox}{Solution}{ored!10!white}{ored}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
\newenvironment{instructornote}{
|
||||
\begin{ORMCbox}{Note for Instructors}{ocyan!10!white}{ocyan}
|
||||
\begin{hobox}{Note for Instructors}{ocyan!10!white}{ocyan}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
\else
|
||||
\excludecomment{solution}
|
@ -1,5 +1,5 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{../../../lib/tex/macros}[2023/10/16 ORMC Macros]
|
||||
\ProvidesPackage{../../../lib/tex/macros}[2025/03/02 Handout macros]
|
||||
|
||||
\RequirePackage{hyperref}
|
||||
\RequirePackage{pgf}
|
||||
|
Reference in New Issue
Block a user