emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Is there a *Org PDF LaTeX Output* buffer ?
Date: Mon, 03 Oct 2016 16:08:22 +0200	[thread overview]
Message-ID: <87oa31fru1.fsf@free.fr> (raw)
In-Reply-To: 87h98xrq9q.fsf@gmail.com

Nick Dokos <ndokos@gmail.com> writes:


> No, it should be present: it is created when you export to PDF through
> LaTeX (it is created by org-latex-compile which is called by
> org-latex-export-to-pdf). I just tried a (successful, but I don't
> think it matters) export and was able to visit it afterwards.

I found it, but only when publishing a project synchronously. Actually
that's not surprising since in this case it's another emacs process
that's running but the message about the *Org PDF LaTeX Output* is then
misleading.

Here is a MWE[1]:

--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER:\RequirePackage{nosuchpackage}

#+begin_src emacs-lisp :exports none
 (add-to-list 'load-path "~/git-repositories/org-mode/lisp")
 (add-to-list 'load-path "~/git-repositories/org-mode/contrib/lisp")
 (org-reload)
 (require 'ox)
 (require 'ox-latex)
 (setq org-export-in-background t)
 (setq org-export-async-init-file "~/tmp/test-init.el")
 (setq org-publish-project-alist
	`(("test"
	   :base-directory "./"
	   :publishing-directory "./"
	   :publishing-function org-latex-publish-to-pdf
	   :exclude ".*"
	   :include ,(list (file-name-nondirectory buffer-file-name))
	   )))
#+end_src
--8<---------------cut here---------------end--------------->8---

with
~/tmp/test-init.el:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/git-repositories/org-mode/lisp")
(add-to-list 'load-path "~/git-repositories/org-mode/contrib/lisp")
(require 'org)
(require 'ox)
--8<---------------cut here---------------end--------------->8---

Julien.

[1] Actually it's not really working when running emacs -Q: there are
some error messages about for instance org-link-set-parameters which I
can't iron out but I don't think it's relevant to the problem exhibited
here.

  reply	other threads:[~2016-10-03 14:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 21:09 Is there a *Org PDF LaTeX Output* buffer ? Julien Cubizolles
2016-09-30 22:12 ` Nick Dokos
2016-10-03 14:08   ` Julien Cubizolles [this message]
     [not found] <55929700b6fd4b07ac0d3c7ad1d328f8@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-10-01 12:29 ` Eric S Fraga
2016-10-03 17:08   ` Nick Dokos
     [not found]   ` <464cb23e40da4e3d9faac4faee37d296@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2016-10-04  6:37     ` Eric S Fraga

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=87oa31fru1.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /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).