From: Leo Vivier <leo.vivier@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Modifying org-latex-pdf-process doesn't modify the async export behaviour
Date: Fri, 6 Apr 2018 11:13:30 +0200 [thread overview]
Message-ID: <06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com> (raw)
Hi,
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).
Here's my function:
# ----------------------------------------------------------------------
(defvar zaeph/org-latex-pdf-process-mode)
(defun zaeph/toggle-org-latex-pdf-process ()
"Toggle the number of steps in the xelatex PDF process."
(interactive)
(if (or (not (bound-and-true-p zaeph/org-latex-pdf-process-mode))
(string= zaeph/org-latex-pdf-process-mode "short"))
(progn (setq org-latex-pdf-process '("xelatex -shell-escape\
-interaction
nonstopmode\
-output-directory
%o %f"
"biber %b"
"xelatex -shell-escape\
-interaction
nonstopmode\
-output-directory
%o %f"
"xelatex -shell-escape\
-interaction
nonstopmode\
-output-directory
%o %f")
zaeph/org-latex-pdf-process-mode 'long)
(message "XeLaTeX process mode: Long"))
(progn (setq org-latex-pdf-process '("xelatex -shell-escape\
-interaction nonstopmode\
-output-directory %o %f")
zaeph/org-latex-pdf-process-mode 'short)
(message "XeLaTeX process mode: Short"))))
(zaeph/toggle-org-latex-pdf-process)
# ----------------------------------------------------------------------
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.
Would you have any idea?
Thanks.
Best,
--
Leo Vivier
English Studies & General Linguistics
Master Student, English Department
Rennes 2
next reply other threads:[~2018-04-06 9:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 9:13 Leo Vivier [this message]
2018-04-07 7:59 ` Bug: Modifying org-latex-pdf-process doesn't modify the async export behaviour Nicolas Goaziou
2018-04-07 9:16 ` Leo Vivier
2018-04-07 9:44 ` Neil Jerram
2018-04-07 10:41 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com \
--to=leo.vivier@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).