Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have defined a macro in tikzpicture which contains:

\ifthenelse{\equal{#4}{#5}}%
{\node [color=red, left=0mm of tmp.west]{#4};}
{\node [color=red, left=0mm of tmp.south west, anchor=south east]{#5};
  \node [color=red, left=0mm of tmp.north west, anchor=north east]{#4};}

Now I would like to redefine this macro in pst-node or pstricks. There are several things I don't know how to translate:

  • \ifthenelse
  • \equal

Could anyone help?

share|improve this question
3  
The macros \ifthenelse and \equal aren’t TikZ’. With the right package (xifthen?) loaded, you can keep them. – Qrrbrbirlbel Mar 5 at 15:55
xifthen does work, thank you – SoftTimur Mar 5 at 16:13

closed as too localized by percusse, diabonas, Kurt, zeroth, Thorsten Mar 17 at 17:04

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.