How to specify a value in default file from command line #9487
-
I am using the following default file: and pandoc is called from this makefile: and some pictures are referenced from this latex header: I use the standard template. I have tried numerous ways to specify where to get image files from, using a variable on command line of pandoc, but never managed to make it work. So, currently I just do not specify a path, just image file name, and images files are taken from CWD.. Any idea on how to specify the path as a variable from command line ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
did you try |
Beta Was this translation helpful? Give feedback.
-
Since I use LuaLatex as backend, finally, I did: \graphicspath{{\directlua{tex.sprint(os.getenv('GFX_DIR'))}}} and set env var GFX_DIR: GFX_DIR=/path/to/folder pandoc ... |
Beta Was this translation helpful? Give feedback.
--resource-path
did not work to specify images location.Since I use LuaLatex as backend, finally, I did:
and set env var GFX_DIR: