phyllisstein / Pandown

A powerful, versatile, highly Subliminal Pandoc build wrapper for ST2/3
64 stars 12 forks source link

Relative File Paths #25

Open tmykkanen opened 9 years ago

tmykkanen commented 9 years ago

Thanks for the great plugin! I am having trouble specifying relative paths in the pandoc-config.json file. Specifically, I would like to use "~/path/to/file/" for csl and bibliography files. I was having a difficult time getting it to accept a relative reference to a template file, but I finally got that to work when I realized I had to specify "template.latex" and not just "template" as pandoc takes in the command line. I am not a programer, but in digging through the code, it appears that the relative reference works in template because it passes through walkIncludes, which performs os.path.expanduser on it. However, it appears csl and bibliography options are passed straight through so they end up as "--csl=~/path/to/file" which pandoc doesn't like.

I can overcome this by placing the .csl and .bib files in the working directory, but I prefer to keep the build files separated from the .md files.

Any help you can provide would be appreciated. Thanks so much!

twsh commented 9 years ago

I was trying to do the same thing. I also tried $HOME/path/to/file, which Pandoc is happy with when passed from the command line.

bluebirch commented 8 years ago

This seems to be one of the things that is a real pain with Sublime Text.