After spending 54 million years waiting for "TeX Live" (required by pandoc) to install, I was finally able to run the command to turn my .txt file into a PDF:
pandoc -i "1.txt" -o "1.pdf"
The result is a PDF with completely messed up text because it uses some other font than Courier[ New]. Some varying-width default font.
After reading and reading, I found this: https://pandoc.org/MANUAL.html#creating-a-pdf
The option "fontfamily" is mentioned, so I tried to do:
pandoc -i "1.txt" -o "1.pdf" --fontfamily=Courier
This results in:
Unknown option --fontfamily.
Try pandoc --help for more information.
I have looked through the entire "pandoc --help" output without finding any mention of fonts.
How do I set the font to be used?
-V 'fontfamily:dejavu'
The-V
stands for--variable
. Checkout tex.stackexchange.com/questions/234786/… and you might want to spend a few million years more to installxelatex
as latex-engine, then use--variable mainfont="DejaVu Sans"