Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
779 views
in Technique[技术] by (71.8m points)

package - 在Overleaf tex文件中添加表情符号(Add emoji in Overleaf tex file)

I'm trying to find a package that would allow me to include the following sentence in my tex file:

(我正在尝试找到一个程序包,该程序包可使我在tex文件中包含以下句子:)

A really good initiative ????

I tried

(我试过了)

setmainfont{DejaVu Sans}

but I could't manage to make it work.

(但我无法使其正常运行。)

It appears that there are some emojis missing.

(似乎缺少一些表情符号。)

Any help would be greatly appreciated.

(任何帮助将不胜感激。)

  ask by patri translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In the end, I used:

(最后,我使用了:)

usepackage{scalerel,graphicx,xparse}

NewDocumentCommandemojione{}{scalerel*{includegraphics{1F44F}}{X}}
NewDocumentCommandemojitwo{}{scalerel*{includegraphics{270C}}{X}}

where 1F44F and 270C are the emojis that I wanted to include uploaded as pdf files.

(其中1F44F和270C是我要包括以pdf文件形式上传的表情符号。)

Hope this will help someone else also.

(希望这也会对其他人有所帮助。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...