You need to load the amssymb
package.
(In LyX: choose "document"-->"settings"--> "latex preamble" , copy \usepackage{amssymb} into the empty region on the right side, press "apply" and "close")
You could, of course, use TikZ for this:
The symbol will scale with your font size, since it uses ex
to define the path.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\newcommand\shield{%
\tikz [baseline] \draw (0,1.75ex) -- (0,0.75ex) arc [radius=0.75ex, start angle=-180, end angle=0] -- (1.5ex,1.75ex) -- cycle;%
}
A shield: \shield
\end{document}
If you're feeling fancy, you could parametrise it a bit:
\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\begin{document}
\newcommand\shield[1][]{%
\tikzset{
shield width/.store in=\shieldwidth,
shield width=1.5ex,
shield height/.store in=\shieldheight,
shield height=1.75ex
}%
\tikz [baseline,#1] \draw (0,\shieldheight) -- (0,\shieldwidth/2) arc [radius=\shieldwidth/2, start angle=-180, end angle=0] -- (\shieldwidth,\shieldheight) -- cycle;%
}
A shield: \shield
A wide shield: \shield[shield width=2ex]
A tall shield: \shield[shield height=3ex]
\end{document}
Best Answer
Like this?
You also may use the sans-serif text fonts
TeX Gyre Adventor
orTeX Gyre Heros
, which have the Greek glyphs.