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:
@@ -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%",
|
||||
|
||||
13
.config/nvim/lua/resources/header.tex
Normal file
13
.config/nvim/lua/resources/header.tex
Normal 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 ☆}}
|
||||
Reference in New Issue
Block a user