![]() ![]() Great! But I’m not using pandoc regularly so in order to make it a little easier to remember I wrote a small bash script that I’ve named md2pdf:Įcho "You need to specify the markdown file" $ pandoc -o out.pdf osx-pdf-from-markdown.markdown Now you should be able to run pandoc from the command-line and generate pdfs like this: $ ln -s /Library/TeX/Root/bin/x86_64-darwin/pdflatex /usr/local/bin/pdflatex Here are the instructions in its entirety: ![]() When it’s time to create a symlink the gist instructs us to do sudo ln -s /usr/texbin/pdflatex /usr/local/bin/ but instead I had to do ln -s /Library/TeX/Root/bin/x86_64-darwin/pdflatex /usr/local/bin/pdflatex.When it says that you should do brew tap phinze/cask I simply ignored this step and went directly to brew cask install mactex.These are the two things that I had to do differently: ![]() The problem was that everything didn’t quite work for me (I later found out that a fix was written in the comment but I didn’t know at the time). A quick tour on google and you’ll find this excellent gist that describes more or less how to get it working. So after a few of these incidences I settled the matter and decided to investigate if there was an easy way to just generate a pdf file from markdown from the command-line in MacOSX. But on several occasions I’ve had the need to share what I’ve written with a non technical person and handing off markdown to them seems a bit so-so. I tend to use markdown almost unconsciously when taking notes or expressing thoughts or ideas in a text editor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |