3

How can I input ' symbol in tikz node?

I wish it looks like

enter image description here

But actually '9' will be like below in tikz:

\node[draw] (N) {'9'};

enter image description here

lucky1928
  • 4,151

1 Answers1

5

enter image description here

\documentclass{article}

\usepackage{tikz}
\usepackage{textcomp}     


\begin{document}

\begin{tikzpicture}
\node[draw] (N) {\textquotesingle9\textquotesingle};    
\end{tikzpicture}

\end{document}
JPi
  • 13,595
  • you can improve solution with \node[draw,font=\sffamily] (N) {\textquotesingle 9 \textquotesingle};. this gives better approximation of showed example – Zarko Feb 10 '17 at 19:44
  • Good suggestion, thanks. OP appears happy with the solution as provided, though. I think s/he was mostly looking for straight quotes instead of curly ones. – JPi Feb 10 '17 at 19:54