[Tex/LaTex] Lightning bolt symbol without arrow at tip in LaTeX? (Unicode U+26A1)

symbols

I'd like to find a ⚡ symbol for TeX. When I try to draw something like it in Detexify, I get similar symbols, but they have a an arrow at the south end of the lightning bolt, unlike Unicode U+26A1 (which is ⚡). Are there any packages that implement such a lightning bolt?

Best Answer

A solution with TikZ. The drawn symbol \Lightning has the height of a H. It has an optional argument to set some parameters like the fill and drawing colors. Also LaTeX's \newcommand makes macros with an optional argument robust.

\documentclass{standalone}
\usepackage{tikz}

\newcommand*{\Lightning}[1][]{%
  \tikz[
    x=.55 * height("H"),  % symbol width
    y=height("H"),  % symbol height
    baseline=(current bounding box.south),
    line width=.02 * height("H"),
    line join=bevel,
  ]
  \filldraw[{#1}]
    (-.5, -.5) -- (.4, -.03) -- (-.1, .06) --
    (.5, .5) -- (-.4, .03) -- (.1, -.06) --
    cycle
    % side bearings
    (-.5 - .08, 0)
    (.5 + .08, 0)
  ;%
}

% Test
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{.1pt}
\begin{document}
  \fbox{\Lightning[fill=red, draw=blue]}%
  \Lightning
  \Lightning[fill=yellow, line join=round, xscale=1.25]
\end{document}

Result