我知道这不太可能,但是有没有一些包或方法可以将表情符号插入到 LaTeX 文档中?
我至少知道两种部分方法:
第一:
$\ddot\smile$
第二:
\usepackage{wasysym}
\smiley
\frownie
或者你可以使用图片(如其他回复中提到的)。
有什么反对简单的 { t :-)} ?
如果您使用
xelatex
或 lualatex
,则
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Symbola}
\begin{document}
😺
👅
\end{document}
应以 Symbola 字体生成黑白表情符号字母, 可从 http://users.teilar.gr/%7Eg1951d/ 获取 或某些 Linux 发行版(例如 Ubuntu)中的标准包存储库。
\fontspec{Segoe UI Emoji}[RawFeature={ccmp,dist}]
也可以使用 MS Windows 表情符号字体
代替 \fontspec{Symbola}
。
不幸的是,标准不支持颜色(表情符号)字体 lualatex 或 xelatex。
harflatex
和 luahblatex
可以使用 排版彩色表情符号
\documentclass{minimal}
\usepackage{harfload}
\usepackage{fontspec}
\begin{document}
\noindent
\fontspec{Noto Color Emoji}[RawFeature={mode=harf}]
☃⛄💩🏩🏨🕐🕜💫🀇🍣🤮🤯👨👩👧👦\quad 👩❤️💋👨
\end{document}
harflatex
和 luahblatex
可以从 TeXLive Contrib 安装:
https://contrib.texlive.info/ 截至 2019 年 7 月。
以上是学习自https://tex.stackexchange.com/questions/497403/how-to-use-noto-color-emoji-with-lualatex/500180 我自己进行了一些调查。
Unicode 的“杂项符号”包括 3 个简单的表情符号:
0x2639
-0x263B
。您也可以使用 0x2686
-0x2689
。
为了获得更多变化,您将需要使用图像并以某种方式包含它们。
我很好奇导致这个问题的情况:)
现在还有
tikzsymbols
包,里面有漂亮的表情符号。
一种解决方案是使用 bclogo 包。它包含两个笑脸(快乐和悲伤),以及许多其他小“标志”,例如旗帜等。
\documentclass[12pt]{article}
\usepackage{emoji}
\begin{document}
These are colour emojis using the \texttt{emoji} package and LuaLaTeX:
\emoji{leaves}
\emoji{rose}
You can use emoji-modifiers:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}
\end{document}
inom{.,.}{ rown} 看起来很可爱 - 调整眼睛间距以适应口味 - 尽管它占用了相当多的空间,当然只是一个意见。