Is there a way in order to set every label of every single node to his north west position?
Asked
Active
Viewed 950 times
1 Answers
6
Create a style:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
every node/.style={draw},
mylabel/.style={label={above left:{#1}}}
]
\node[mylabel={Where}] (a) {is};
\node[mylabel={your}, right=4em of a] {MWE?};
\end{tikzpicture}
\end{document}
CarLaTeX
- 62,716
-
:) Great answer! – Jan 21 '18 at 20:07
-
2@marmot Hoping to find an MWE in the OP's next question :):):) – CarLaTeX Jan 21 '18 at 20:11
-
Grazie Carla! =) – Andrea Leo Jan 21 '18 at 20:42
-
3@AndreaLeo Prego, and please remember to add a minimal working example (MWE) next time! – CarLaTeX Jan 21 '18 at 20:44
