I want to write a command, for example \pi or \rightarrow, inside a circle. I tried \circled{\pi} but this doesn't work.

How do I do it?


Define \circled in your preamble:

\node[shape=circle,draw,inner sep=1](char) {#1};}}

Use math environment:

| improve this answer | |

Without any more information, a possible solution could be:

\tikz \node[circle,draw] {$\rightarrow$};
| improve this answer | |
  • 2
    @FarhadRazi The usual way of saying thanks on this site is to upvote the questions that helped you, and to accept the one that helped you the most (if your problem was solved). – sodd Apr 18 '16 at 7:04
  • @ hooy, sorry, you are right. but I don't know how to upvote, could you tell me how I do that? – Farhad Razi Apr 19 '16 at 10:49
  • of course I used @ ignasi's suggestion and that worked. thanks – Farhad Razi Apr 19 '16 at 10:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.