I'm trying to use the lightning symbol ↯ in my document. I use luatex. If I understand correctly I do not need the command


but I can write ↯ directly in my document. My problem is that the symbol does not appear in the generated pdf. Thus, I guess, the symbol is not contained in the font used in the pdf.

If I have no error, how to I influence the chosen font? I should find a font with the symbol.

  • May be some of the necessary (or all of the) font package(s) pretaining to that particular font class is missing? Nov 5 '18 at 10:44
  • 1
    Which package defines the macro called \unicode?
    – Mico
    Nov 5 '18 at 11:42
  • 1
    @Raaja, very good! I installed texlive-stmaryrd, added \usepackage{stmaryrd} and now \lightning gives me the needed symbol Nov 5 '18 at 12:03
  • 3
    See fileformat.info/info/unicode/char/21af/fontsupport.htm to find fonts that support the character.
    – Thérèse
    Nov 5 '18 at 12:29
  • 2
    @PeptideChain, a side note : for such questions, you can try detexify, very useful tool !
    – BambOo
    Nov 5 '18 at 13:04

As you guess, it's just a matter of choosing a font containing the glyph. You do this using fontspec. (Update to use \newunicodechar courtesy of @egreg.)

\newcommand{\downzigzagarrow}{\begingroup\symbola ↯\endgroup}
Filler text ↯ Filler text

down zig zag arrow symbol

  • 2
    You can accompany this with \usepackage{newunicodechar} and \newunicodechar{↯}{\downzigzagarrow} after defining \downzigzagarrow so it's possible to use directly in the document.
    – egreg
    Nov 5 '18 at 13:04
  • @egreg, no way. I never knew that. Nov 5 '18 at 13:07
  • 2
    I know the package, guess why. ;-)
    – egreg
    Nov 5 '18 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.