I guess the proper workaround is to use a Makefile (or any build system/script of your choice) and have it build/assemble things with pandoc/context right in your project directory and then remove any junk automatically, rather than relying on pandoc running context. The learning curve of make is kind of steep, especially if you use it for things which differ from the most typical use cases but it pays off and gets less steep fairly quickly. https://www.google.com/search?q=alternatives+to+makefile Den tors 24 juni 2021 07:55'juh' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > Hi all, > > am I right that pandoc uses /tmp to build the intermediate context > source file? > > My problem is that I have a hierarchy of supporting files relative to > the directory of the markdown source file which context needs to build > correctly. > > While: > > pandoc -t context -o test.tex test.md > context test.tex > > works fine > > pandoc -t context --pdf-engine=context -o test.pdf test.md > > throws error as multiple context environments are not found. > > There is a work around by putting all supporting files in a special > folder of the context distribution > > context/tex/texmf-local > > You have to call "context --generate" the make any changes in this path > known to context. This is annoying but possible. > > But the path to the original source folder is lost so that it is > impossible to include things stored along with the source file. > > projectdir/source.md > projectdir/image.png > > When context is called inside the project folder it is of course > possible to include the image file. When context is called on a tmp > file in /tmp the path is lost. > > Is there a switch to build all files in the working directory? > > Jan Ulrich Hasecke > -- > Autoren-Homepage: ......... http://literatur.hasecke.com > Satiren & Essays: ......... http://www.sudelbuch.de > Privater Blog: ............ http://www.hasecke.eu > Netzliteratur-Projekt: .... http://www.generationenprojekt.de > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/20210624055435.GA11054%40sokrates > . > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhChK6LhKSx3X-bi6G756V3XMOkyhi_gkv-ndMPQwSfTNQ%40mail.gmail.com.