I worte this topic in a german forum http://mrunix.de/forums/showthread.php?t=72770 and the given answer there is not exactly what I want.
In the example below the text after \geheim{…} is erased but I want in addition that the now created free space is marked black. How can I do that? With or without big changes!
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{soul}
\makeatletter
\DeclareRobustCommand{\geheim}{%
\def\SOUL@everytoken{\phantom{\the\SOUL@token}}\SOUL@}
\makeatother
\begin{document}
ein Text mit einem geheimen Inhalt.
ein Text mit einem \geheim{geheimen Inhalt}.
\end{document}
Regards, letscho