And do you use `org-mode`? Because if I try the `org-mode` reader doesnt seem to be able to find files included via `#+INCLUDE` directive ....

Dne pátek 26. března 2021 v 17:55:51 UTC+1 uživatel houpe...@gmail.com napsal:

One of my command line argument to load files from the current folder and the .images/ folder is:
    --resource-path=".:.images" \

and it works fine

Loic
Le vendredi 26 mars 2021 à 12:59:07 UTC, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit :
Hello,

in my previous question I was redirected to using `--resource-path` CMD line argument to find files defined with `#+INCLUDE` directive while converting `org-mode` to other formats. But I am having hard time to make it work.

I have read the manual. If I have following project structure:

```
makefile
src/main.org
src/chapters/chapter1.org
```

how can I specify with `--resource path` where to look for `chapter1.org` file (included by `main.org` file) if I am running `pandoc` through `make`?

I have tryed:

```
.:src
".:src"
```

And some other alternatives.

The only way I made it work was by using `cd` in make to change directory to `./src` and executing `pandoc` from there, which is ... Suboptimal.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bde4a2a5-3bbb-4318-8d82-3333e74d172an%40googlegroups.com.