Post History
You could use the LaTeX markdown package to create a pdf. To make sure that the coloured emoji are visible: choose a unicode-aware engine like lualatex choose a font which has coloured emoji, ...
Answer
#2: Post edited
- You could use the LaTeX `markdown` package to create a pdf.
- To make sure that the coloured emoji are visible:
- - choose a unicode-aware engine like `lualatex`
- - choose a font which has coloured emoji, e.g. `Noto Color Emoji`
Compile the below example with `lualatex --shell-escape <file name>`- ```
- \documentclass{article}
- \usepackage{markdown}
- \usepackage{fontspec}
- % from https://tex.stackexchange.com/a/572220/36296
- \directlua{luaotfload.add_fallback
- ("emojifallback",
- {
- "NotoColorEmoji:mode=harf;"
- }
- )}
- \setmainfont{Arial}[RawFeature={fallback=emojifallback}]
- \begin{document}
- \markdownInput{test.md}
- \end{document}
- ```
- ![screenshot of the rendered document, showing the text "I'm a markdown file 😺"](https://linux.codidact.com/uploads/y2dr2wv9fnugk3osvs4dgbexhbfd)
- You could use the LaTeX `markdown` package to create a pdf.
- To make sure that the coloured emoji are visible:
- - choose a unicode-aware engine like `lualatex`
- - choose a font which has coloured emoji, e.g. `Noto Color Emoji`
- Assuming your markdown file is called `test.md`, the create a `.tex` with the content as shown below and compile it with `lualatex --shell-escape <name of .tex file>`.
- ```
- \documentclass{article}
- \usepackage{markdown}
- \usepackage{fontspec}
- % from https://tex.stackexchange.com/a/572220/36296
- \directlua{luaotfload.add_fallback
- ("emojifallback",
- {
- "NotoColorEmoji:mode=harf;"
- }
- )}
- \setmainfont{Arial}[RawFeature={fallback=emojifallback}]
- \begin{document}
- \markdownInput{test.md}
- \end{document}
- ```
- ![screenshot of the rendered document, showing the text "I'm a markdown file 😺"](https://linux.codidact.com/uploads/y2dr2wv9fnugk3osvs4dgbexhbfd)
#1: Initial revision
You could use the LaTeX `markdown` package to create a pdf. To make sure that the coloured emoji are visible: - choose a unicode-aware engine like `lualatex` - choose a font which has coloured emoji, e.g. `Noto Color Emoji` Compile the below example with `lualatex --shell-escape <file name>` ``` \documentclass{article} \usepackage{markdown} \usepackage{fontspec} % from https://tex.stackexchange.com/a/572220/36296 \directlua{luaotfload.add_fallback ("emojifallback", { "NotoColorEmoji:mode=harf;" } )} \setmainfont{Arial}[RawFeature={fallback=emojifallback}] \begin{document} \markdownInput{test.md} \end{document} ``` ![screenshot of the rendered document, showing the text "I'm a markdown file 😺"](https://linux.codidact.com/uploads/y2dr2wv9fnugk3osvs4dgbexhbfd)