summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/to-be-determined/to-be-determined.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/to-be-determined/to-be-determined.sty')
-rw-r--r--macros/latex/contrib/to-be-determined/to-be-determined.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/macros/latex/contrib/to-be-determined/to-be-determined.sty b/macros/latex/contrib/to-be-determined/to-be-determined.sty
index ffc106eb97..b5e343b1cd 100644
--- a/macros/latex/contrib/to-be-determined/to-be-determined.sty
+++ b/macros/latex/contrib/to-be-determined/to-be-determined.sty
@@ -21,27 +21,29 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{to-be-determined}[2021/07/21 0.1.1 Highlighting places requiring future work]
+\ProvidesPackage{to-be-determined}[2021/09/22 0.1.2 Highlighting places requiring future work]
\RequirePackage{xkeyval}
-\newif\iftbdhide
-\DeclareOptionX{hide}{\tbdhidetrue}
-\newif\iftbdoff
-\DeclareOptionX{off}{\tbdofftrue}
+\makeatletter
+\newif\iftbd@hide
+\DeclareOptionX{hide}{\tbd@hidetrue}
+\newif\iftbd@off
+\DeclareOptionX{off}{\tbd@offtrue}
+\makeatother
\ProcessOptionsX\relax
\RequirePackage{xcolor}
\RequirePackage{soul}
-\newcommand\tbd[1]{{%
- \iftbdoff\else%
+\makeatletter\newcommand\tbd[1]{{%
+ \iftbd@off\else%
\sethlcolor{yellow}%
- \iftbdhide%
+ \iftbd@hide%
\hl{TBD}%
\else%
\hl{#1}%
\fi%
\fi%
-}}
+}}\makeatother
\endinput