Documentclass edits

This commit is contained in:
Mark 2023-05-14 19:50:30 -07:00
parent 47de89c2c4
commit bb5c3bfb76

View File

@ -1,10 +1,9 @@
% Mark's handout style.
%
% Mark's math circle handout style.
% Source is at https://git.betalupi.com/Mark/ormc-handouts
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ormc_handout}[2023/05/13 1.2.0 ORMC Handout]
\ProvidesClass{ormc_handout}[2023/05/14 1.2.1 ORMC Handout]
% Boolean that determines solution behavior.
@ -101,7 +100,7 @@
\RequirePackage{fancyhdr} % Header/Footer customization
\RequirePackage{adjustbox} % Used for title
\tcbuselibrary{breakable}
\tcbuselibrary{breakable} % Allows tcolorboxes to break across pages
\RequirePackage[
left = ``,
@ -114,6 +113,8 @@
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{multicol}
\RequirePackage{tabto}
\TabPositions{1cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm}
@ -443,13 +444,23 @@
\ifsolutions
\newenvironment{solution}{
% ifdefined hack allows for nested environments.
% could be done better, this doesn't preserve inner line color.
\ifdefined\linehack
\else
\@makelinehack{red!75!black}
\fi
\begin{@shown_solution}
} {
\end{@shown_solution}
}
\newenvironment{instructornote}{
% ifdefined hack allows for nested environments.
% could be done better, this doesn't preserve inner line color.
\ifdefined\linehack
\else
\@makelinehack{cyan!75!black}
\fi
\begin{@shown_note}
} {
\end{@shown_note}