summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/to-be-determined/to-be-determined.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-23 03:01:31 +0000
committerNorbert Preining <norbert@preining.info>2021-09-23 03:01:31 +0000
commita26e6aee249adb0efff5d0eecaa2dfb8794585a5 (patch)
tree61f34ace7d0bd13f43cb638820af270f34868234 /macros/latex/contrib/to-be-determined/to-be-determined.sty
parent094234b56c200ad35a041aa579c18cbcac8933ed (diff)
CTAN sync 202109230301
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