I read the xcolor documentation and I understood that . is a placeholder for the current text color. How can I get the current background color?
ps: The final purpose of this is to temporarily hide a text; for example if .. is a placeholder for the current background color, I could use \colorlet{tmp}{.}\color{..}#1\color{tmp}.
beamer? – Joseph Wright Aug 24 '20 at 12:59beamer.I just need to sometimes hide parts of a document. I can't use\phantombecause it is incompatible with lists (itemize & enumerate). – Moïse Aug 24 '20 at 13:07phantomsimply don't work at all withitemize: a code as simple as\phantom{\begin{itemize}\item test\end{itemize}}make an error (I am beginning to think that LaTeX is mainly a tricks & hacks language ;) ).If you have another idea for a better hiding, feel free to share it, I will be happy to use it. Thanks – Moïse Aug 24 '20 at 16:38[2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO)]%, and it is also in a current miktex. If you have an outdated transparent version if can clash with tikz and so loose transparency. – Ulrike Fischer Aug 27 '20 at 08:12Loading aborted, because pdfTeX is not running in PDF modeandUndefined control sequence. \transparent: not sure if transparent package is compatible with XeLaTeX... – Moïse Aug 29 '20 at 21:56