Thank you for pointing me in the right direction. I've created another
init file just for async-export, and not only have I got it to work, but
it's also quite a lot faster than it used to be.
All that remains now is to find a way to re-write my function. My
knowledge of elisp if fairly limited, and I don't see how to communicate
with the background process other than by writing the value of my
toggle-variable to a file. I guess I could also make a modularise
async-init.el and control which module is loaded from the main init.el.
At any rate, thank you for your prompt reply.
On 07/04/18 09:59, Nicolas Goaziou wrote:
Leo Vivier <leo.viv...@gmail.com> writes:
I've encountered an issue trying to write a function to toggle between
two org-latex-pdf-process states (short & long). The function works as
intended when using synchronous export (the PDF is created with the
appropriate number of steps), but it doesn't work with asynchronous
export (org-latex-pdf-process isn't grabbed past the first run).
I've tried appending (org-reload) to my function, but it didn't work.
I've also tried modifying org-latex-pdf-process on a fresh emacs
session prior to any async export, and I can confirm that it grabs the
latest state of org-latex-pdf-process. I'd surmise that async export
has a process running in the background, but I don't know how to force
it to reload.
The background process doesn't use whatever configuration is loaded in
current Emacs. Instead it loads a configuration file. See
You may also use local variables in your document, or switch async
English Studies & General Linguistics
Master Student, English Department