-
Install the
NppExec
plugin. -
Choose
Execute
from theNppExec
menu and paste the following into the console:cd "$(CURRENT_DIRECTORY)" pandoc "$(FILE_NAME)" -o "$(NAME_PART).pdf" -V geometry:margin=1in --latex-engine=pdflatex
-
Name your script (e.g.
pandoc-pdf
) and save.
- It's easy to modify the script to suit your needs (e.g., convert to docx, use a template, etc.)
- You can add a dedicated menu entry and/or keyboard shortcut using the
Advanced Options
interface under theNppExec
menu.
Thank you... Thank you, thank you, thank you... I can even apply filters, mess around, do bibliographies, use the full power of pandoc markdown... This thing made my day...