Added "extras" mode

This commit is contained in:
2023-12-06 21:52:05 -08:00
parent 361f9e694f
commit a5362a2eb9
6 changed files with 123 additions and 112 deletions

View File

@ -1,12 +1,32 @@
% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
solutions,
shortwarning
solutions
]{../../resources/ormc_handout}
\usepackage{../../resources/macros}
% If true, this will be an "extras" handout
% (minimal, extra copies of chessboards.)
%
% This assumes nosolutions.
\newif\ifextras
\extrasfalse
\ifextras
% Force-disable page numbers
% and leave bit more room for the six chessboards.
\pagestyle{empty}
\geometry{
bottom = 20mm,
footskip = 5mm,
}
\fi
\usepackage{chessfss}
\usepackage{chessboard}
\usepackage{anyfontsize} % Silences some chess warnings
@ -14,6 +34,9 @@
\usepackage[hang]{footmisc}
% Modify default tab positions for better stars in score decomposition
\TabPositions{1.2cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm}
@ -28,6 +51,10 @@
{black!12!white}
{black!80!white}
\ifextras
\excludecomment{hintlist}
\else
\newenvironment{hintlist}{
\begin{@hintlist}
}{
@ -35,6 +62,8 @@
\if@solutions\vspace{-2mm}\fi
\end{@hintlist}
}
\fi
\long\def\hintcontent#1{
\if@solutions
@ -60,21 +89,25 @@
\begin{document}
\maketitle
\ifextras\else
\maketitle
\footnotetext[1]{
Most of the easy problems in this handout are from \textit{The Chess Mysteries of Sherlock Holmes}.\\
The rest are from \textit{The Chess Mysteries of the Arabian Knights}.
}
\footnotetext[1]{
Most of the easy problems in this handout are from \textit{The Chess Mysteries of Sherlock Holmes}.\\
The rest are from \textit{The Chess Mysteries of the Arabian Knights}.
}
\input{parts/00 rules}
\input{parts/01 intro}
\input{parts/00 rules}
\input{parts/01 intro}
\fi
\input{parts/02 easy}
\input{parts/03 medium}
%\input{parts/04 hard}
\chessboard \hfill \chessboard \par
\chessboard \hfill \chessboard \par
\chessboard \hfill \chessboard \par
\ifextras
\sixboards{}
\vfill\pagebreak
\fi
\end{document}