Added short warning
This commit is contained in:
parent
b7115e124d
commit
3ed40abc11
@ -1,3 +1,8 @@
|
|||||||
|
% Mark's handout style.
|
||||||
|
%
|
||||||
|
% Source is at https://git.betalupi.com/Mark/ormc-handouts
|
||||||
|
|
||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesClass{ormc_handout}[2022/05/07 1.1.0 ORMC Handout]
|
\ProvidesClass{ormc_handout}[2022/05/07 1.1.0 ORMC Handout]
|
||||||
|
|
||||||
@ -16,11 +21,16 @@
|
|||||||
\newif{\ifnopagenumber}
|
\newif{\ifnopagenumber}
|
||||||
\nopagenumberfalse
|
\nopagenumberfalse
|
||||||
|
|
||||||
|
% Boolean. If true, show a smaller solutions warning
|
||||||
|
\newif{\ifshortwarning}
|
||||||
|
\shortwarningfalse
|
||||||
|
|
||||||
% Declare and parse arguments
|
% Declare and parse arguments
|
||||||
\DeclareOption{solutions}{\solutionstrue}
|
\DeclareOption{solutions}{\solutionstrue}
|
||||||
\DeclareOption{nosolutions}{\solutionsfalse}
|
\DeclareOption{nosolutions}{\solutionsfalse}
|
||||||
\DeclareOption{singlenumbering}{\singlenumberingtrue}
|
\DeclareOption{singlenumbering}{\singlenumberingtrue}
|
||||||
\DeclareOption{nopagenumber}{\nopagenumbertrue}
|
\DeclareOption{nopagenumber}{\nopagenumbertrue}
|
||||||
|
\DeclareOption{shortwarning}{\shortwarningtrue}
|
||||||
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
|
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
|
||||||
\ProcessOptions\relax
|
\ProcessOptions\relax
|
||||||
|
|
||||||
@ -160,24 +170,41 @@
|
|||||||
|
|
||||||
% Instructor's handout warning
|
% Instructor's handout warning
|
||||||
\ifsolutions
|
\ifsolutions
|
||||||
\begin{tcolorbox}[
|
% Short warning
|
||||||
colback=white,
|
\ifshortwarning
|
||||||
colframe=red
|
\begin{tcolorbox}[
|
||||||
]
|
colback=white,
|
||||||
\begin{center}
|
colframe=red
|
||||||
\large
|
]
|
||||||
\textcolor{red}{
|
\begin{center}
|
||||||
\textbf{Instructor's Handout}
|
\large
|
||||||
} \\
|
\textcolor{red}{
|
||||||
\normalsize
|
\textbf{Instructor's Handout}
|
||||||
\end{center}
|
} \\
|
||||||
|
\normalsize
|
||||||
|
\end{center}
|
||||||
|
\end{tcolorbox}
|
||||||
|
\else
|
||||||
|
% Regular warning
|
||||||
|
\begin{tcolorbox}[
|
||||||
|
colback=white,
|
||||||
|
colframe=red
|
||||||
|
]
|
||||||
|
\begin{center}
|
||||||
|
\large
|
||||||
|
\textcolor{red}{
|
||||||
|
\textbf{Instructor's Handout}
|
||||||
|
} \\
|
||||||
|
\normalsize
|
||||||
|
\end{center}
|
||||||
|
|
||||||
\vspace{1ex}
|
\vspace{1ex}
|
||||||
|
|
||||||
\textcolor{red}{This file contains solutions and notes.}
|
\textcolor{red}{This file contains solutions and notes.}
|
||||||
|
|
||||||
\textcolor{red}{Compile with the ``nosolutions'' flag before distributing.}
|
\textcolor{red}{Compile with the ``nosolutions'' flag before distributing.}
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
|
\fi
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
\end{center}
|
\end{center}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user