additions and updates

This commit is contained in:
khannurien
2026-10-21 14:56:15 +00:00
parent a8426be8bd
commit 296b08e420
8 changed files with 155 additions and 83 deletions

View File

@@ -126,35 +126,18 @@
\newcommand{\cmark}{{\color{YellowGreen}\ding{51}}}
\newcommand{\xmark}{{\color{BrickRed}\ding{55}}}
\newcommand{\imark}{{\color{Orange}\ding{109}}}
% pills
\RequirePackage{xparse}
\NewDocumentCommand{\DONE}{g}{%
\IfNoValueTF{#1}{%
\CircledParamOpts{inner color=black, outer color=LimeGreen, fill color=LimeGreen}
{1}{\textbf{DONE}}%
}{%
\CircledParamOpts{inner color=black, outer color=LimeGreen, fill color=LimeGreen}
{1}{\textbf{DONE --} #1}%
}%
}
\NewDocumentCommand{\TODO}{g}{%
\IfNoValueTF{#1}{%
\CircledParamOpts{inner color=black, outer color=Goldenrod, fill color=Goldenrod}
{1}{\textbf{TODO}}%
}{%
\CircledParamOpts{inner color=black, outer color=Goldenrod, fill color=Goldenrod}
{1}{\textbf{TODO --} #1}%
}%
}
\NewDocumentCommand{\FIXME}{g}{%
\IfNoValueTF{#1}{%
\CircledParamOpts{inner color=white, outer color=Red, fill color=Red}
{1}{\textbf{FIXME}}%
}{%
\CircledParamOpts{inner color=white, outer color=Red, fill color=Red}
{1}{\textbf{FIXME --} #1}%
% status pills: \TODO, \TODO{text}, likewise \FIXME and \DONE
\RequirePackage{xparse} % for the optional {text} argument
\RequirePackage{xspace}
\NewDocumentCommand{\pill}{m m m g}{%
\CircledParamOpts{inner color=#1, outer color=#2, fill color=#2}{1}{%
\textbf{#3}\IfValueT{#4}{ \textbf{--} #4}%
}%
\IfNoValueT{#4}{\xspace}% keep the space in "\TODO bla"
}
\newcommand{\DONE}{\pill{black}{LimeGreen}{DONE}}
\newcommand{\TODO}{\pill{black}{Goldenrod}{TODO}}
\newcommand{\FIXME}{\pill{white}{Red}{FIXME}}
% custom font size for a slide (cf. https://tex.stackexchange.com/a/401409)
\RequirePackage{environ}
\newcommand{\customframefont}[1]{