3

How can I use U+1F54A DOVE OF PEACE in my document, especially with pdfLaTeX and not LuaLaTeX?

3
  • 2
    Special case of Entering Unicode characters in LaTeX - TeX - LaTeX Stack Exchange
    – user202729
    Commented May 15, 2022 at 14:48
  • 1
    This would be much easier if you could actually use fonts that contain the required glyph.
    – Ingmar
    Commented May 15, 2022 at 17:24
  • 1
    Noto Sans Symbols2 have the glyph, but it is a true type font (not for pdflatex). However, using xelatex and the standalone class you can save it as PDF and then use some like \newcommand\dove{\includegraphics[width=1.5em]{dove.pdf}} in pdflatex
    – Fran
    Commented May 16, 2022 at 8:39

2 Answers 2

6

Maybe it's not the exact same symbol, but fontawesome5 has a dove icon.

\documentclass{article}
\usepackage{fontawesome5}
\begin{document}
\faDove
\end{document}
0
4

You can use the twemojis package with \twemoji{1f54a} or \twemoji{dove}. It works with PDFLaTeX.

Unfortunately the dove is hard to see against a white background, so here I made the background gray:

twemoji dove of peace

\documentclass[12pt]{article}
\usepackage{twemojis}
\begin{document}
\pagecolor{gray}
\twemoji{1f54a}
\end{document}

Other possibilities include embedding an image, or creating a tiny PDF cropped to just the emoji using lualatex with the emoji package (or any other software that supports emojis, cropped via pdfcrop or similar tool); that PDF could them be included in a pdflatex document via \includegraphics. (Not sure if that counts as "exclusively".)

7
  • thanks a lot! But is it possible to scale \twemoji{1f54a}, i.e. to. make it slightly bigger or smaller ? In my document, for example, it is quite small, if compared to the text... :-)
    – Ommo
    Commented May 16, 2022 at 8:23
  • Just for information to the readers of this thread, I had to install the package twemojis manually, because not included in my distribution... (1) I downloaded the package from CTAN. (2) Through the Terminal of my laptop, I went inside the folder where the package was downloaded and I typed tex twemojis.ins, in order to to get the file twemojis.sty (I do not know why tex twemojis.dtx did not work). (3) I copied and pasted twemojis.sty inside the folder where there is my .tex document and I compiled with pdfLaTeX
    – Ommo
    Commented May 16, 2022 at 8:30
  • 1
    You can use a scalebox, e.g., \scalebox{4.5}{\twemoji{1f54a}} to make it 4.5× its normal size. There's also \texttwemoji{1f54a} which will scale according to font size.
    – frabjous
    Commented May 16, 2022 at 14:22
  • 1
    Actually I just found you can specify a height or width or scale directly as an optional parameter. \twemoji[height=1in]{1f54a}.
    – frabjous
    Commented May 16, 2022 at 14:28
  • 1
    And to set the default height for all emojis: \setlength{\twemojiDefaultHeight}{14pt} or whatever. See the package documentation for more.
    – frabjous
    Commented May 16, 2022 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .