Just learned about pgfmath, but how can I debug it?
\pgfmathparse{..} \pgfmathresult
doesn't print anything inside a tikzpicture environment. How can I simply print the result of an expression to check weather the calculation was done correctly?
|
Just learned about pgfmath, but how can I debug it?
doesn't print anything inside a tikzpicture environment. How can I simply print the result of an expression to check weather the calculation was done correctly? |
|||
|
|
|
Christoph mentioned this but it's worth making explicit. If you don't want to actually draw anything you don't need a
|
|||
|
|
|
If you want to "just print out the result", you don't need to use pgfmath inside a tikzpicture. If you want to place the result in a picture, put it into a node:
Note: Calculating the value before placing the node will not work, because the placing the node will overwrite the old result. |
|||||
|
|
You don't need to launch pgf completely
|
|||
|
|
If you have to do the math in |
|||
|
|