Opened 12 years ago

Closed 12 years ago

#33392 closed defect (invalid)

emacs org-export pdf fails

Reported by: nx8a@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: emacs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I've recently downloaded emacs 23.4+v11 and texlive portts, but been unable to export org docs in emacs to pdf. The message buffer in emacs is:

Latex export done, pushed to kill ring and clipboard
processing LaTex file...
(Shell command failed with code 1 and some error output)
org-export-as-pdf: PDF file was not produced
MacBook-Pro:~ NX8A$ port version
Version: 2.0.4
MacBook-Pro:~ NX8A$ port platform
Platform: darwin 10 i386
Operating System - 10.6.8

I've looked thru the Hotlist and previous entries, but didn't find any solutions. I've uninstalled my emacs port and re-installed with same results. Likewise, Ive added the following statements to my .emacs file to insure emacs can find the 'tex' ports added, but this hasn't worked either.

;; Added to get pdf to print and to have emacs recognize the macports binaries 
(setenv "PATH" (concat "/opt/local/bin:/opt/local/sbin:" (getenv "PATH")))
(setq exec-path (append '("/opt/local/bin" "/opt/local/sbin") exec-path))

When I tried to customize the emacs org-export-latex parts, it looked as if their are two menus listed with the same options when they should be different. Can you confirm that the latest version of emacs is good to go in this area.

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to dports@…
Port: 23.4+v11 removed

Please remember to use WikiFormatting and to Cc the maintainer of the affected port.

comment:2 Changed 12 years ago by drkp (Dan Ports)

Keywords: emacs org export pdf removed

I'm assuming that this is the version of org-mode included with emacs, not the newer version in the org-mode port (not that it should matter at all)

What's the error output from running tex?

Do you have texlive-latex-extra installed? It looks like org uses some latex packages that aren't included in our default texlive install.

comment:3 Changed 12 years ago by nx8a@…

Thanks! Yes, I'm using the org-mode that comes in emacs. I downloaded the texlive-latex-extra port and tried to export to pdf again - still same result. I get a .tex file but no pdf.

The emacs configure menus around latex and pdf look messed up to me. I believe the problem is in the emacs port.

comment:4 in reply to:  3 Changed 12 years ago by drkp (Dan Ports)

Replying to nx8a@…:

Thanks! Yes, I'm using the org-mode that comes in emacs. I downloaded the texlive-latex-extra port and tried to export to pdf again - still same result. I get a .tex file but no pdf.

I tried this again on a clean install and it seemed to work fine to me. Can you provide a file that's failing to export, along with any config options you've changed?

The emacs configure menus around latex and pdf look messed up to me. I believe the problem is in the emacs port.

What do you mean by this?

comment:5 Changed 12 years ago by drkp (Dan Ports)

Resolution: invalid
Status: newclosed

I looked at the files you sent me and it looks like this is an issue with your .emacs.

It works fine with the default setting for org-latex-to-pdf-process. Based on the error I got in the *Org PDF LaTeX Output* buffer, it sounds like the %f isn't being expanded in the command line, but I'm not familiar enough with it to know what the right way to do that is.

Note: See TracTickets for help on using tickets.