Skip to content

Commit 7e2cc3b

Browse files
committed
[assets] Unicode examples
1 parent a567088 commit 7e2cc3b

13 files changed

+89
-0
lines changed

source/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FIGURES=$(patsubst %.dot,%.pdf,$(wildcard assets/*.dot))
2+
EXAMPLES=$(patsubst %.tex,%.pdf,$(wildcard assets/*.tex))
23

34
default: full
45

@@ -21,3 +22,11 @@ clean-figures:
2122
rm -f $(FIGURES)
2223

2324
figures: $(FIGURES)
25+
26+
%.pdf: %.tex
27+
lualatex -output-directory assets $<
28+
29+
clean-examples:
30+
rm -f $(EXAMPLES)
31+
32+
examples: $(EXAMPLES)

source/assets/example_01.pdf

5.87 KB
Binary file not shown.

source/assets/example_01.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\documentclass[9pt]{standalone}
2+
3+
\usepackage{fontspec}
4+
5+
\setmainfont{NewCM10-Regular}
6+
\setmonofont{NewCMMono10-Regular}
7+
8+
\newfontfamily\notoemoji{Noto Color Emoji}[Renderer=HarfBuzz]
9+
10+
\newcommand{\emo}[1]{{\notoemoji\raisebox{1pt}{\scriptsize #1}}}
11+
12+
\begin{document}
13+
\texttt{Спасибо, Виктор \emo{♥}!}
14+
\end{document}

source/assets/example_02.pdf

5.07 KB
Binary file not shown.

source/assets/example_02.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\documentclass[9pt]{standalone}
2+
3+
\usepackage{fontspec}
4+
5+
\setmainfont{NewCM10-Regular}
6+
\setmonofont{NewCMMono10-Regular}
7+
8+
\newfontfamily\notoemoji{Noto Color Emoji}[Renderer=HarfBuzz]
9+
10+
\newcommand{\emo}[1]{{\notoemoji\scriptsize #1}}
11+
12+
\begin{document}
13+
\emo{🤷🏻‍♂️}
14+
\end{document}

source/assets/example_03.pdf

5.72 KB
Binary file not shown.

source/assets/example_03.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\documentclass[9pt]{standalone}
2+
3+
\usepackage{fontspec}
4+
5+
\setmainfont{NewCM10-Regular}
6+
\setmonofont{NewCMMono10-Regular}
7+
8+
\newfontfamily\notoemoji{Noto Color Emoji}[Renderer=HarfBuzz]
9+
10+
\newcommand{\emo}[1]{{\notoemoji\scriptsize #1}}
11+
12+
\begin{document}
13+
\emo{🤷}
14+
\end{document}

source/assets/example_04.pdf

4.47 KB
Binary file not shown.

source/assets/example_04.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\documentclass[9pt]{standalone}
2+
3+
\usepackage{fontspec}
4+
5+
\setmainfont{NewCM10-Regular}
6+
\setmonofont{NewCMMono10-Regular}
7+
8+
\newfontfamily\notoemoji{Noto Color Emoji}[Renderer=HarfBuzz]
9+
10+
\newcommand{\emo}[1]{{\notoemoji\scriptsize #1}}
11+
12+
\begin{document}
13+
\emo{♂}
14+
\end{document}

source/assets/example_05.pdf

7.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)