# Creating text symbols with TikZ

I seem to recall a macro which was used to create symbols which could be inserted into text, but cannot remember the name nor find it using search.

I could do it myself easy enough

\newcommand{\reddot}{\tikz{\fill[red] (0,0) circle (4pt);}}


but don't want to reinvent the wheel.

## 1 Answer

Well for "Symbols" there is tikzsymbols:

You can use TikZ as well:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\newcommand*\circled[1]{{\scriptsize\tikz[baseline=(char.base)]{
\node[shape=circle, draw, inner sep=1pt, align=center] (char) {#1};}}}
\usepackage{tikzsymbols}
\begin{document}

Something like that \circled{E} or like {%
\protect\begin{tikzpicture}[scale=.17]
\protect\draw (0,0) -- (.5,1);
\protect\draw (.5,1) -- (1.5,1);
\protect\draw (1.5,1) -- (1,0);
\protect\draw (1,0) -- (0,0);
\protect\end{tikzpicture}%
}%
\,that? Or like that \tikzsymbolsuse{Smiley}[]?

\end{document}

• The existing tikzsymbol package symbol set is not that useful. – John Kormylo Dec 17 '13 at 19:25