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

Documentation of option --data-dir #2272

Closed
tobiasschweizer opened this issue Jul 4, 2015 · 2 comments
Closed

Documentation of option --data-dir #2272

tobiasschweizer opened this issue Jul 4, 2015 · 2 comments

Comments

@tobiasschweizer
Copy link

I found out that the directory passed to the option --data-dir has to contain a folder templates in order to work properly. For example, if you use the options --template=mytemplate.latex and --data-dir=/home/myuser/myfolder pandoc expects to find mytemplate.latex at this location: /home/myuser/myfolder/templates/mytemplate.latex.

This behaviour is totally fine but it was not clear to me just after having read the man:

--data-dir=DIRECTORY
Specify the user data directory to search for pandoc data files.

Maybe, you could just add some information to this section.

@jgm
Copy link
Owner

jgm commented Jul 4, 2015

I think the information is there:

   A `reference.odt`, `reference.docx`, `default.csl`,
    `epub.css`, `templates`, `slidy`, `slideous`, or `s5` directory
    placed in this directory will override pandoc's normal defaults.

This says clearly that a templates directory placed here will override defaults.
But I see a way to clarify the docs in the --template option.

@jgm jgm closed this as completed in 12d573d Jul 4, 2015
@tobiasschweizer
Copy link
Author

Great, that will make it even more clear

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

2 participants