LaTeX宏包emotion用法
😄 Emotion
There are many emojis with long names, and we cannot remember them all. At the same time, when we
type an emoji, we want to see what it looks like in text editor. Now, you do not need to remember the emoji
name, just select it from the keyboard and wrap it with \emotion{}
. Unlike other emoji packages, you can use
emojis more easily and flexibility.
Usage
Setup emoji font
You can use your favorite emoji font.
command \emotionsetup
accept one parameter(font name), which you have installed in your
computer
1 | \emotionsetup{Twemoji Mozilla} |
Use emoji symbol
Command \emotion
accept one parameter.
the parameter can be emoji symbol or the defined emoji id
1 | \emotion{☘} |
Custom emoji alias
Sometimes, typing a emoji symbol is not easy. Therefore, we also provide a command to simplify
the process. The command \emotiondef
requires two parameters:
one is the emoji id, and the other is emoji value(either the emoji symbol or its unicode value).
1 | \emotiondef{apple}{🍎} |
1 | \emotion{apple} |
- 本文链接: https://ourfor.top/article/LaTeX-emotion/
- 版权声明: 本博客所有文章除特别声明外,均采用 ©BY-NC-SA 许可协议。转载请注明出处!