tikz add tag
samcarter
Is there any way to use the typewriter package in a Ti*k*Z node? Or get a similar text effect by other means in the node?

```
% !TeX TS-program = lualatex

\documentclass{standalone}
\usepackage{tikz}
\usepackage{typewriter}

\begin{document}
Quack!

\begin{tikzpicture}
	\node at (0,0) {Quack!};
\end{tikzpicture}	
	
\end{document}
```

![document.png](/image?hash=f6809c0195c7ac9567915231c8a763bf4b847b3db99006fb00e77772af45c149)
Top Answer
user 3.14159
You can use `font=\myfont`.
```
\documentclass{standalone}
\usepackage{tikz}
\usepackage{typewriter}

\begin{document}
Quack!

\begin{tikzpicture}[font=\myfont]
	\node at (0,0) {Quack!};
\end{tikzpicture}	
	
\end{document}
```
![Screen Shot 2021-06-23 at 10.03.05 AM.png](/image?hash=85f5a966dec79520ef30ef544e18c97782e5fba846ebf46a33a73c243daa6c26)
Answer #2
Skillmon
You can save the typeset material inside a box register and use that box inside the Ti*k*Z node. That way you can circumvent the issue, though this doesn't really solve it.

```
% !TeX TS-program = lualatex

\documentclass{standalone}
\usepackage{tikz}
\usepackage{typewriter}

\newsavebox\mybox

\begin{document}
Quack!

\sbox\mybox{Quack!}

\begin{tikzpicture}
	\node at (0,0) {\usebox\mybox};
\end{tikzpicture}	
	
\end{document}
```

![typewriterduck-1.png](/image?hash=a612a4f46efcf794119c4d303996bd981179e88514a388ef5dc93a3ebbec9c07)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.