I'm using LaTeX to write confidential documents, for those document I use the traffic light protocol (https://www.us-cert.gov/tlp) manage by 4 different custom classes used to add color and sharing instruction in header and footnote.
Those documents are used for many purpose and I would like to be able to censor some informations of the document based on the current traffic light.
I've found multiple solutions on different forum but nothing who fit my needs for now.
My main problem is, the content to protect can be in a middle of a paragraph or in a table cell, It can be regular text,
\verb||text, or even
My main idea was to use my custom classes to create and renew custom commands (like
\RedSecret) to specify when a block of text must be redacted or not.
What do you think? What would be the best solution and implementation?
I'm new to this level of LaTeX customization so I don't really know what to look as a good source of inspiration. I've only written custom classes for custom look, nothing more.