Minor cleanup
This commit is contained in:
@ -13,79 +13,15 @@
|
||||
\usepackage{afterpage}
|
||||
\usepackage[hang]{footmisc}
|
||||
|
||||
% Modify default tab positions for better stars
|
||||
|
||||
% Modify default tab positions for better stars in score decomposition
|
||||
\TabPositions{1.2cm, 2cm, 3cm, 4cm, 5cm, 6cm, 7cm, 8cm}
|
||||
|
||||
\input{chess-setup}
|
||||
\input{stars}
|
||||
|
||||
\def\nstars#1#2{%
|
||||
\ifnum #2 > 0%
|
||||
\def\starcolor{\color{#1}}%
|
||||
\count255=1%
|
||||
\loop{%
|
||||
\starcolor $\bigstar$%
|
||||
}%
|
||||
\ifnum \count255 < #2%
|
||||
\advance\count255 by 1%
|
||||
\repeat%
|
||||
\fi%
|
||||
}
|
||||
|
||||
|
||||
\def\startimes#1{
|
||||
{\color{ogrape} $\bigstar \times #1$}
|
||||
}
|
||||
|
||||
\def\starvalue#1{
|
||||
\stars{#1}{#1} \par
|
||||
\vspace{1mm}
|
||||
}
|
||||
|
||||
\def\difficulty#1#2{
|
||||
\textbf{Difficulty:} \stars{#1}{#2} \par
|
||||
\vspace{1mm}
|
||||
}
|
||||
|
||||
\def\difficultynote#1#2#3{
|
||||
\textbf{Difficulty:} \stars{#1}{#2} ~ #3\par
|
||||
\vspace{1mm}
|
||||
}
|
||||
|
||||
|
||||
\setchessboard{
|
||||
showmover=false,
|
||||
borderwidth=0.5mm,
|
||||
label=false,
|
||||
labelleft=true,
|
||||
labelbottom=true,
|
||||
normalboard,
|
||||
hlabelformat=\arabic{ranklabel},
|
||||
vlabelformat=\Alph{filelabel}
|
||||
}
|
||||
|
||||
\makeatletter
|
||||
\cbDefineNewPiece{white}{U}
|
||||
{\raisebox{1.75mm}{\cfss@whitepiececolor
|
||||
$\odot$}}
|
||||
{\BlackEmptySquare%
|
||||
\makebox[0pt][r]{\cfss@whitepiececolor
|
||||
\raisebox{1.75mm}{\makebox[1em]{$\odot$}}}}
|
||||
|
||||
\long\def\manyboards#1{
|
||||
\if@solutions
|
||||
\chessboard[setpieces = {#1}]
|
||||
\hfill
|
||||
\chessboard[setpieces = {#1}]
|
||||
\else
|
||||
\vfill
|
||||
\chessboard[setpieces = {#1}]
|
||||
\hfill
|
||||
\chessboard[setpieces = {#1}]
|
||||
\vfill
|
||||
\chessboard[setpieces = {#1}]
|
||||
\hfill
|
||||
\chessboard[setpieces = {#1}]
|
||||
\fi
|
||||
}
|
||||
|
||||
\@makeORMCbox{@hintlist}
|
||||
{Score Decomposition:}
|
||||
@ -100,34 +36,20 @@ $\odot$}}
|
||||
\end{@hintlist}
|
||||
}
|
||||
|
||||
|
||||
\def\threestars#1#2#3{
|
||||
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
||||
}
|
||||
|
||||
\def\onestars#1{
|
||||
\nstars{ogrape}{#1}
|
||||
}
|
||||
|
||||
\long\def\hintcontentnew#1{
|
||||
\long\def\hintcontent#1{
|
||||
\if@solutions
|
||||
#1 \par
|
||||
\vspace{2mm}
|
||||
\fi
|
||||
}
|
||||
|
||||
\long\def\hintcontent#1#2#3{
|
||||
\if@solutions
|
||||
\nstars{white}{#1}\nstars{ogrape}{#2} \par #3
|
||||
\vspace{2mm}
|
||||
\else
|
||||
\nstars{white}{#1}\nstars{ogrape}{#2}
|
||||
\fi\par
|
||||
}
|
||||
\makeatother
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\title{Retrograde Analysis}
|
||||
|
Reference in New Issue
Block a user