Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use this with xelatex? #2

Open
brabalan opened this issue Jun 26, 2015 · 8 comments
Open

Use this with xelatex? #2

brabalan opened this issue Jun 26, 2015 · 8 comments

Comments

@brabalan
Copy link

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
Copy link
Owner

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
#2.

@Wayneoween
Copy link

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

@brabalan
Copy link
Author

brabalan commented Jul 1, 2015

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
Copy link

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
Copy link

tralston commented Jul 1, 2015

Same problem here.

@DataBranner
Copy link

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

@mreq
Copy link

mreq commented Mar 8, 2016

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

@azzamsa
Copy link

azzamsa commented Jan 20, 2019

@mreq Thanks for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants