From bb5c3bfb76d35e8b220dba8f72c1088a5342ab01 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 14 May 2023 19:50:30 -0700 Subject: [PATCH] Documentclass edits --- resources/ormc_handout.cls | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index 669bd7e..de84334 100644 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -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}