# tikz - How to input ' symbol [duplicate]

How can I input ' symbol in tikz node?

I wish it looks like

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

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


## marked as duplicate by barbara beeton, Zarko tikz-pgf StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Feb 11 '17 at 2:44

• this is not a TikZ issue ... you need to use adequate font, which provide desired shapes. – Zarko Feb 10 '17 at 19:34
• @Zarko Oh, how should I select right font? – lucky1928 Feb 10 '17 at 19:35
• @Zarko is correct: my answer below works without tikz, also. – JPi Feb 10 '17 at 19:39
• here on site are many question how to identified some font. If you have pdf reader document with this '9', than look for used fonts. As you can see, fonts used in this comments is very similar to what you looking for. unfortunately I don't know, which one is used here. I'm not font experts :-( – Zarko Feb 10 '17 at 19:40
• here are two previous questions that deal with "straight quotes": Straight quotes? and Non-curly quotes in code? – barbara beeton Feb 10 '17 at 20:19

\documentclass{article}

\usepackage{tikz}
\usepackage{textcomp}

\begin{document}

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

\end{document}

• 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