Is it possible to create a key handler with the pgfkeys package that removes a key from a style?

Here's a minimal working example:

\pgfkeys{/my style/.style = {/a=1, /b=2, /c=3}}
\pgfkeys{/my style}\par
%\pgfkeys{/my style/.remove from style = {b}}
\pgfkeys{/my style}

The output is


The desired output, if the commented line were to be uncommented, would be


Here are a couple of closely related questions. They are not duplicates of this one, but the answers to the second one might be useful in devising an answer to this question.

Unsetting a PGF/TikZ key

How to extract the value from a pgfkeys style element

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.