# Create PDF With Emojis Using Pandoc
## Metadata
**Status**:: #x
**Zettel**:: #zettel/permanent
**Created**:: [[2023-07-02]]
## Synopsis
- Use lualatex
- Set fallback font
```tex
\directlua{
luaotfload.add_fallback("noto-sans", { "Noto Sans CJK SC:mode=harf;", "Apple Color Emoji:mode=harf;" })
luaotfload.add_fallback("noto-serif", { "Noto Serif CJK SC:mode=harf;", "Apple Color Emoji:mode=harf;" })
luaotfload.add_fallback("noto-mono", { "Noto Sans Mono CJK SC:mode=harf;", "Noto Sans CJK SC:mode=harf;", "Apple Color Emoji:mode=harf;" })
}
\setmainfont{Helvetica Neue}[RawFeature={fallback=noto-sans}]
\setsansfont{Lato}[RawFeature={fallback=noto-sans}]
\setmonofont{Cartograph CF}[RawFeature={fallback=noto-mono}]
```
- Do not use `mainfontoptions` and other variables to set the fallback, since the snippets inserted via `--include-in-header` is after `setmainfont`, so LuaLaTeX will complain that it cannot find the fallback.