emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* latex export on mac os x with xelatex
@ 2010-02-22  7:34 Christian Wittern
  2010-02-22 11:49 ` Christian Wittern
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Wittern @ 2010-02-22  7:34 UTC (permalink / raw)
  To: Org Mode Mailing List

Dear Orgmode users,

I am trying to get Latex export working on a Mac OS X system.  I have
installed MacTex with the whole texlive tree.  I added the path to these
binaries to exec-path like so:

(if (eq window-system 'mac)
    (add-to-list 'exec-path "/usr/local/texlive/2009/bin/universal-darwin")
)

and can confirm that it is indeed picked up and existing in the exec-path.

However, org-export-as-pdf does not manage to produce a pdf.

Next I customized the variable to include the path so that I have

"/usr/local/texlive/2009/bin/universal-darwin/xelatex -interaction
nonstopmode %s" (on one line) as the value of org-latex-to-pdf-process.

Now the xelatex command runs, but the next step fails, since xelatex can not
convert its intermediate file to a pdf, so I get as the first line in the
buffer *Org PDF Latex Output* :

sh: xdvipdfmx: command not found

But now I have no idea where to go to tell orgmode how to find the command
-- someting seems to be seriously wrong (or I am misunderstanding how stuff
is supposed to work) so any help would be appreciated.

All the best,

Christian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: latex export on mac os x with xelatex
  2010-02-22  7:34 latex export on mac os x with xelatex Christian Wittern
@ 2010-02-22 11:49 ` Christian Wittern
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Wittern @ 2010-02-22 11:49 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi there,

For the benefit of later visitors, here is how I worked around the problem
for the moment:

orgmode seems to ignore the exec-path, so I looked at the result of
(getenv "PATH"), which was very little. Saying

(setenv "PATH" (concat "/usr/local/texlive/2009/bin/universal-darwin:"
(getenv "PATH")))

in my .emacs solved the problem, the latex export now happily works its way
to the texlive programs and does what it needs to do.  So I suspect this is
some kind of setup problem that might be specific to my installation.  I
will see if I can find out more once I have a little time.

Thanks for your time:-)

All the best,

Christian


On 2010-02-22 16:34, Christian Wittern wrote:
> Dear Orgmode users,
> 
> I am trying to get Latex export working on a Mac OS X system.  I have
> installed MacTex with the whole texlive tree.  I added the path to these
> binaries to exec-path like so:
> 
> (if (eq window-system 'mac)
>      (add-to-list 'exec-path "/usr/local/texlive/2009/bin/universal-darwin")
> )
> 
> and can confirm that it is indeed picked up and existing in the exec-path.
> 
> However, org-export-as-pdf does not manage to produce a pdf.
> 
> Next I customized the variable to include the path so that I have
> 
> "/usr/local/texlive/2009/bin/universal-darwin/xelatex -interaction
> nonstopmode %s" (on one line) as the value of org-latex-to-pdf-process.
> 
> Now the xelatex command runs, but the next step fails, since xelatex can not
> convert its intermediate file to a pdf, so I get as the first line in the
> buffer *Org PDF Latex Output* :
> 
> sh: xdvipdfmx: command not found
> 
> But now I have no idea where to go to tell orgmode how to find the command
> -- someting seems to be seriously wrong (or I am misunderstanding how stuff
> is supposed to work) so any help would be appreciated.
> 
> All the best,
> 
> Christian


-- 
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-22 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-22  7:34 latex export on mac os x with xelatex Christian Wittern
2010-02-22 11:49 ` Christian Wittern

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).