Open brabalan opened 9 years ago
I've only tried this with pdflatex
On Fri, Jun 26, 2015 at 5:55 AM, Alan Schmitt notifications@github.com wrote:
Is this supposed to work with xelatex? I see that xetex is mentioned in the source but when I compile I get an error:
l.46 \DeclareUnicodeCharacter {127462}{\coloremoji{🇦}}
— Reply to this email directly or view it on GitHub https://github.com/alecjacobson/coloremoji.sty/issues/2.
+1 would like to use this with XeLaTeX and beamer, but same error :sob: pdflatex works find though! Thanks
I ended up doing it manually:
\newunicodechar{😈}{\text{\raisebox{-0.2em}{\includegraphics[height=1em]{images/1F608.pdf}}}}
\newunicodechar{😇}{\text{\raisebox{-0.2em}{\includegraphics[height=1em]{images/1F607.pdf}}}}
I got the image files from the package for these characters.
Nice @brabalan :) I went with the super-low-method since it was the only occurence: Downloading an image of the emoji and include it...
\raisebox{-0.3ex}{\includegraphics[scale=0.06]{images/emoji}}
The \raisebox
is for aligning it correctly within the text.
Same problem here.
Likewise here for XeLaTeX (needed for CJK) in Beamer. Downloaded PNG files linked to http://unicode.org/emoji/charts/full-emoji-list.html.
Since I faced the same issue I went ahead and created a xelatex-emoji repo. Feel free to contribute.
@mreq Thanks for the solution.
Is this supposed to work with xelatex? I see that xetex is mentioned in the source but when I compile I get an error: