1

I use data to fill in forms (lua string.format instruction) to build tikz commands such as

"%s \\draw[->,%s,draw=%s,%s](%.3f,%.3f)%s(%.3f,%.3f)node[midway,anchor=base,%s]{%s};"

But sometimes, I don't need all the parameters and I wish to have a no-op instruction to consume the parameters of no use.

Is there such a command ? If no, is there a way to simulate it ?

put on hold as off-topic by siracusa, Raaja, JouleV, Stefan Pinnow, Dox Apr 15 at 8:06

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    pgf keys can have defaults. If you provide us with a full example (starting with \documentclass etc.), I am sure you will get a full answer. – marmot Mar 18 at 16:39
  • @marmot - I have have extra parameters I must consume (because I don't master the parameters list I get) although I don't need them. A default values mechanism, if I understand your proposal, won't be helpful to this respect. – user1771398 Mar 18 at 17:07
  • My main proposal is that you provide a compilable example on which one could build an answer. – marmot Mar 18 at 17:30
  • 2
    You can define no-op/.style={} and then use all your useless parameter as parameters for no-opstyle like this [no-op={%s}]. – Kpym Mar 18 at 21:03
  • 4
    I'm voting to close this question as off-topic because it was solved in the comments – siracusa Apr 15 at 5:53

Browse other questions tagged or ask your own question.