Skip to content

Commit

Permalink
Moar things!
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Nov 18, 2023
1 parent 4e0ccd2 commit fbee5a7
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 13 deletions.
46 changes: 44 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,50 @@
# syntax=docker/dockerfile:1
FROM pandoc/latex:3.1
FROM pandoc/extra:edge

ENV TERM=xterm

RUN apk add --no-cache \
bash \
curl \
git \
make \
ncurses \
perl \
python3 \
python3-dev \
py3-pip \
py3-setuptools \
py3-wheel \
rsync \
unzip \
wget \
zip \
&& rm -rf /var/cache/apk/*

RUN tlmgr update --self \
&& tlmgr install context sectsty lastpage emoji dejavu noto-emoji plex ucs newunicodechar \
&& tlmgr install \
catchfile \
context \
datetime2 \
dejavu \
emoji \
eso-pic \
koma-script \
lastpage \
minted \
moresize \
newunicodechar \
noto-emoji \
pgf \
pgfopts \
plex \
sectsty \
sourcecodepro \
titlesec \
tocloft \
ucs \
xcolor-material \
xstring \
&& luaotfload-tool --update \
&& chmod o+w /opt/texlive/texdir/texmf-var

Expand Down
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# Pandoc + Emoji filter

https://github.com/Surnet/docker-wkhtmltopdf

https://gist.github.com/zr-tex8r/a5410ad20ab291c390884b960c900537
Basic Usage
```tex
\directlua{luaotfload.add_fallback
("emojifallback",
{
"NotoColorEmoji:mode=harf;"
}
)}
% Setting the main font to IBM Plex Sans
\setmainfont{IBMPlexSans-Regular}[
Extension = .otf ,
BoldFont = IBMPlexSans-Bold,
ItalicFont = IBMPlexSans-Italic,
BoldItalicFont = IBMPlexSans-BoldItalic,
RawFeature={fallback=emojifallback}
]
- Specify the lua filter with -L latex-emoji.lua.
- Enable emoji extension with -f markdown+emoji.
- Compile the resulted LaTeX document with LuaLaTeX of a very new TeX system (e.g. TeX Live 2020).


https://stackoverflow.com/questions/60057064/pandoc-with-emoji-and-pictographs
Emoji Filter: https://github.com/masbicudo/Pandoc-Emojis-Filter
PR from: https://github.com/masbicudo/Pandoc-Emojis-Filter/pull/3
% Setting the monospace font to IBM Plex Mono
\setmonofont{IBMPlexMono-Regular}[
Extension = .otf ,
BoldFont = IBMPlexMono-Bold,
ItalicFont = IBMPlexMono-Italic,
BoldItalicFont = IBMPlexMono-BoldItalic
]
```


0 comments on commit fbee5a7

Please sign in to comment.