Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji from Obsidian markup to LaTeX via Pandoc #193

Open
voltel opened this issue Aug 8, 2023 · 1 comment
Open

Emoji from Obsidian markup to LaTeX via Pandoc #193

voltel opened this issue Aug 8, 2023 · 1 comment

Comments

@voltel
Copy link

voltel commented Aug 8, 2023

Feature request:
In Obsidian, the community plugin Emoji toolbar (see GitHub repo oliveryh/obsidian-emoji-toolbar) enables inserting emojis into Obsidian markup.
Unfortunately, I didn't find an easy way to export a document with emojis into LaTeX (to produce PDFs) in a sensible way.

One way, though, is through using the LuaLaTeX pdf engine. As far as I understand, it's impossible to recreate this approach with XeLaTeX pdf engine, which is used in obsidian-pandoc by default.

With the following Pandoc command-line options, and the code snippet in the LaTeX document (I inserted that manually), I managed to get the desired result -- a PDF with valid emojis.

Pandoc command-line options:

--template voltel_article.latex
--pdf-engine lualatex

LaTeX snippet:

\newfontfamily\emojifont[Renderer=Harfbuzz]{NotoColorEmoji.ttf}
%Use \emojifont in a group to keep its effects local
{\emojifont \Uchar"1F6AA}

I had the font installed from here: https://fonts.google.com/noto/specimen/Noto+Color+Emoji

The whole idea is provided here: Oveleaf site

Can this transformation of the Unicode symbols outside the Basic Multilingual Plane into the LaTeX markup be done by obsidian-pandoc plugin to produce the LaTeX markup capable of being built into PDFs with proper emojis.

@keyvanm
Copy link

keyvanm commented May 23, 2024

Seconded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants