1

In some of my tikz pictures I use symbols from the fontawesome package.

Screenshot

enter image description here

Question

How can I rotate symbols in tikz?

MWE

\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usepackage{fontawesome}

\begin{document}

\begin{tikzpicture}

    % Rocket
    \draw (0,0) node {\faRocket};
    % Rectangle
    \node [draw, thick, shape=rectangle, minimum width=3cm, minimum height=2cm, anchor=center] at (0,0) {};

\end{tikzpicture}

\end{document}

What I tried so far

\draw[rotate=45] (0,0) node {\faRocket}; doesn't do the trick.

2
  • Maybe not the best solution, but did you try \draw (0,0) node[rotate=45] {\faRocket};?
    – leandriis
    Dec 31, 2017 at 10:30
  • Well, I didn't. This does the trick! Dec 31, 2017 at 10:31

1 Answer 1

3

To rotate the rocket symbol you could try the following:

\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usepackage{fontawesome}

\begin{document}

\begin{tikzpicture}

    % Rocket
    \draw (0,0) node[rotate=45] {\faRocket};
    % Rectangle
    \node [draw, thick, shape=rectangle, minimum width=3cm, minimum height=2cm, anchor=center] at (0,0) {};

\end{tikzpicture}

\end{document}

enter image description here

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