[TxMt] Re: A pandoc .txt to .pdf command in markdown bundle

Gildas Hamel gweltaz at ucsc.edu
Thu Dec 25 03:26:15 UTC 2014


* Skriv a reas René Schwaiger (sanssecours at f-m.fm):
 
  |>  #!/bin/bash
  |>  
  |>  PDF_PATH=`echo "${TM_FILEPATH}" | sed -E 's/\.[^\/]+$/\.pdf/'`
  |>  PDF_NAME=`basename "${PDF_PATH}"`
  |>  pandoc -S --latex-engine=xelatex "${TM_FILEPATH}" -o "${PDF_PATH}"
  |>  echo "PDF saved to ${PDF_NAME}"
  |>  
Thank you René for the command. When I try it on my .txt files, however, a tool tip comes up with "Generate PDF: line 5: pandoc: command not found." I wonder whether my path is set up correctly and how I should check it.
--Gildas

Joyeux Noël!


More information about the textmate mailing list