Debian Codegraph @

texmf-dist/doc/latex/emotion/README.md

raw
1 <H2 style="text-align:center">
2 😄 Emotion
3 </H2>
4
5 There are many emojis with long names, and we cannot remember them all. At the same time, when we
6 type an emoji, we want to see what it looks like in text editor. Now, you do not need to remember the emoji
7 name, just select it from the keyboard and wrap it with `\emotion{}`. Unlike other emoji packages, you can use
8 emojis more easily and flexibility.
9
10 ## Usage
11
12 ### Setup emoji font
13 You can use your favorite emoji font.
14 command `\emotionsetup`
15 accept one parameter(font name), which you have installed in your
16 computer
17
18 ```latex
19 \emotionsetup{Twemoji Mozilla}
20 ```
21
22 ### Use emoji symbol
23
24 Command `\emotion` accept one parameter.
25 the parameter can be emoji symbol or the defined emoji id
26
27 ```latex
28 \emotion{☘}
29 \emotion{🥵}
30 \emotion{emotion}
31 ```
32
33 ### Custom emoji alias
34
35 Sometimes, typing a emoji symbol is not easy. Therefore, we also provide a command to simplify
36 the process. The command `\emotiondef` requires two parameters:
37 one is the emoji id, and the other is emoji value(either the emoji symbol or its unicode value).
38
39 ```latex
40 \emotiondef{apple}{🍎}
41 \emotiondef{tea}{🍵}
42 \emotiondef{!}{❗️}
43 \emotiondef{A}{^^^^^^01f1e6}
44 ```
45
46 ```latex
47 \emotion{apple}
48 \emotion{tea}
49 \emotion{A}
50 \emotion{!}
51 ```
52
53
54 ### License
55
56 [Apache License 2.0](http://github.com/ourfor/LaTeX-emotion/LICENSE)
57
58 -----
59
60 Copyright (C) 2023-2024 by Xuwang Zeng