Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative File Paths #25

Open
tmykkanen opened this issue Feb 11, 2015 · 2 comments
Open

Relative File Paths #25

tmykkanen opened this issue Feb 11, 2015 · 2 comments

Comments

@tmykkanen
Copy link

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
Copy link

twsh commented Apr 10, 2015

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants