4

Is there a way to list all known pgfkeys (i.e., those that are currently set)?

Concretely, I'm looking for a way to get the value of the tikz scale option. I was hoping there would be a pgfkey for that. But it seems more useful to ask the general question of listing all pgfkeys.

Keelan
  • 5,425
  • \pgfkeysvalueof? – Manuel Jan 15 '16 at 23:46
  • @Manuel the problem is that I don't know the key I'm looking for. I'd like to list all keys and their values. The idea was to set scale=5, list all keys and search for 5, to see if there's a key set to the scale. – Keelan Jan 15 '16 at 23:47
  • Concretely, I'm looking for a way to get the value of the tikz scale option… I thought you knew :) I don't understand what you want. – Manuel Jan 15 '16 at 23:51
  • @Manuel I want to get a list of all pgfkeys that are currently in the tree. Sorry for the confusion. – Keelan Jan 15 '16 at 23:52
  • I don't know that, but may be you could hack at the correct place and make TikZ add the data to an array every time it sets a key. – Manuel Jan 16 '16 at 00:48
  • Highly related to http://tex.stackexchange.com/questions/34712/how-do-i-debug-pgfkeys. – Symbol 1 Jan 16 '16 at 10:58
  • There is a difficulty tracing pgfkeys. Some keys, scale/xsacle/yscale for instance, share the similar purpose. And even worse, the effect of scaling and shifting is mixed, accumulated and handled by lower-level registers. So what do you exactly want? – Symbol 1 Jan 16 '16 at 11:07
  • @Symbol1 thanks for that link. To be honest, I solved my actual problem in a different way, without needing any key. I'm not sure what to do with this question now. It's not a duplicate of the one you linked to -- should we leave this question open or just delete it? – Keelan Jan 16 '16 at 11:10

0 Answers0