alecjacobson / coloremoji.sty

Style package for directly including color emojis in latex documents
218 stars 45 forks source link

Use this with xelatex? #2

Open brabalan opened 9 years ago

brabalan commented 9 years ago

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{🇦}}
alecjacobson commented 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.

Wayneoween commented 9 years ago

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

brabalan commented 9 years ago

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.

Wayneoween commented 9 years ago

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.

tralston commented 9 years ago

Same problem here.

DataBranner commented 8 years ago

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

mreq commented 8 years ago

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

azzamsa commented 5 years ago

@mreq Thanks for the solution.