coloremoji.sty icon indicating copy to clipboard operation
coloremoji.sty copied to clipboard

Use this with xelatex?

Open brabalan opened this issue 10 years ago • 8 comments

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{🇦}}

brabalan avatar Jun 26 '15 09:06 brabalan

I've only tried this with pdflatex

On Fri, Jun 26, 2015 at 5:55 AM, Alan Schmitt [email protected] 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.

alecjacobson avatar Jun 26 '15 12:06 alecjacobson

+1 would like to use this with XeLaTeX and beamer, but same error :sob: pdflatex works find though! Thanks

Wayneoween avatar Jul 01 '15 12:07 Wayneoween

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.

brabalan avatar Jul 01 '15 13:07 brabalan

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.

Wayneoween avatar Jul 01 '15 15:07 Wayneoween

Same problem here.

tralston avatar Jul 01 '15 21:07 tralston

Likewise here for XeLaTeX (needed for CJK) in Beamer. Downloaded PNG files linked to http://unicode.org/emoji/charts/full-emoji-list.html.

DataBranner avatar Sep 06 '15 02:09 DataBranner

Since I faced the same issue I went ahead and created a xelatex-emoji repo. Feel free to contribute.

mreq avatar Mar 08 '16 22:03 mreq

@mreq Thanks for the solution.

azzamsa avatar Jan 20 '19 09:01 azzamsa