Hi, I use a package that reads and writes files to synchronize counters. The package is custom but it is based on this question: https://tex.stackexchange.com/questions/124103/how-to-create-a-fixed-counter. The result is that I need to input files: \InputIfFileExists{\jobname.notes}{}{} And output files: \immediate\openout\jjdbout=\jobname.notes \immediate\write\jjdbout{\unexpanded\expandafter{\jjdbnotes}} The problem is that I cannot keep track of this file, as pandoc runs pdflatex in a temporary directory. The hacks I tried: - write somewhere else but pdflatex correctly prevents that, - using \write18 to execute some commands, but in that case I don't know the temporary path to synchronize my files to ; I thought it was in TEXMFOUTPUT, but this env variable only points to the first run started by pandoc (so it's okay to put the files there beforehand, but not to fetch the updated versions), - using \write18 and the package currfile, but if I understood correctly, currfile relies on files already existing so I cannot know to which path I have to put my files before hand. Is there something I missed to copy files to output before pandoc calls the pdf engine and fetch files after it finished? How could we do that? Thanks, Best, -- 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/a0909aa4-e617-4e65-b760-ac617fd192c2n%40googlegroups.com.