\RequirePackage{color}
%\RequirePackage{graphics}

\newcommand{\jbwhl@modifyboxdimen}[2]
  {% trashes \dimen0
   \dimen0=#1%
   \advance\dimen0 by #2%
   #1=\dimen0 % <- space is significant
  }

\newcommand{\highlightbox}[2]
  {\begingroup
     \setbox0=\hbox{(g)}% use to determine standard height and depth
     \jbwhl@modifyboxdimen{\ht0}{2pt}%
     \jbwhl@modifyboxdimen{\dp0}{2pt}%
     \setbox1=\hbox{#2}%
     \ht1=\ht0%
     \dp1=\dp0%
     \setlength{\fboxsep}{0pt}% default 3pt
     \setbox2=\hbox{%\TraceExec
                    \colorbox#1{\box1}}%
     %\bgroup
     % \tracingonline=1\relax
     % \showboxdepth=9999\relax
     % \showboxbreadth=9999\relax
     % \showbox2\relax
     %\egroup
     \jbwhl@modifyboxdimen{\ht2}{-2pt}%
     \jbwhl@modifyboxdimen{\dp2}{-2pt}%
     \box2%
   \endgroup}

\newcommand{\highlightboxgray}[1]{\highlightbox{[cmyk]{0,0,0,#1}}}
%\newcommand{\highlightboxblue}[1]{\highlightbox{[cmyk]{#1,0,0.2,0}}}
%\newcommand{\highlightboxred}[1]{\highlightbox{[cmyk]{0,#1,0.2,0}}}
