1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-11-22 22:09:45 +01:00

nvim: stars display correctly after pandoc compile

This commit is contained in:
2025-11-16 10:04:32 +01:00
parent 97fca993a3
commit 909c50a4d0
2 changed files with 14 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ return {
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
-- markdown
mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% -H ~/.config/nvim/lua/resources/header.tex --toc --toc-depth=5 -V colorlinks=true -V linkcolor=blue -V urlcolor=red -V toccolor=gray -o %outputfile%",
mdtopdf = "pandoc %docroot% --pdf-engine=xelatex -H ~/.config/nvim/lua/resources/header.tex --toc --toc-depth=5 -V colorlinks=true -V linkcolor=blue -V urlcolor=red -V toccolor=gray -o %outputfile%",
mdtopdfviewerlaunch = "zathura ./%outputfile%",
mdtohtml = "pandoc --standalone %docroot% -o %outputfile%",
mdtohtmlviewerlaunch = "firefox --kiosk --new-window %outputfile%",

View File

@@ -0,0 +1,13 @@
% \usepackage[utf8]{inputenc}
% \DeclareUnicodeCharacter{2605}{\ensuremath{\star}}
%
\usepackage{fontspec}
\usepackage{newunicodechar}
\newfontfamily\symbolafont{Symbola}
% U+2605 BLACK STAR
\newunicodechar{}{{\symbolafont}}
% U+2606 WHITE STAR
\newunicodechar{}{{\symbolafont}}