emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Cc: Richard Stanton <stanton@haas.berkeley.edu>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problem exporting to PDF (and viewing)
Date: Sat, 12 May 2012 10:39:30 -0400	[thread overview]
Message-ID: <23805.1336833570@alphaville> (raw)
In-Reply-To: Message from Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> of "Sat\, 12 May 2012 10\:23\:55 EDT." <CAHRqSkQzgfqR7rhq+EshCRrT+SC9PkCiCKapsSXEabrvR0L65A@mail.gmail.com>

Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> wrote:

> I suspect you should be able to get it to recognize "C:/Program\
> Files/sumatrapdf/sumatrapdf.exe".
> 
> Alternately if the exe is found on your PATH (you may need to add it
> by hand), you should be able to manage with:
> 
>     (executable-find "sumatrapdf.exe")
> 
> which should be able to track back the path to the appropriate file.
> 
> On Sat, May 12, 2012 at 12:10 AM, Richard Stanton
> <stanton@haas.berkeley.edu> wrote:
> > Checking further, this works fine using the default Windows shell in Emacs, but fails if I use bash as my shell. Unfortunately, I like to use bash, which I achieve with the following lines in my init.el:
> >
> >      (setq shell-file-name "bash")
> >      (setenv "SHELL" shell-file-name)
> >      (setq explicit-shell-file-name shell-file-name)
> >
> >> -----Original Message-----
> >> From: Richard Stanton
> >> Sent: Friday, May 11, 2012 4:52 PM
> >> To: emacs-orgmode@gnu.org
> >> Subject: Problem exporting to PDF (and viewing)
> >>
> >> Using Org-mode version 7.8.09 (release_7.8.09-553-g5750f0) (and earlier
> >> versions) I've encountered a problem on my Windows machine when I try to
> >> export an Org file to LaTeX, then to Pdf, then viewing (using C-c C-e d).
> >>
> >> In my init.el I have the lines
> >>
> >>   (eval-after-load "org"
> >>     '(progn
> >>        (if (assoc "\\.pdf\\'" org-file-apps)
> >>            (setcdr (assoc "\\.pdf\\'" org-file-apps)
> >> "c:/progra~1/sumatrapdf/sumatrapdf.exe  %s")
> >>          (add-to-list 'org-file-apps '("\\.pdf\\'" .
> >> "c:/progra~1/sumatrapdf/sumatrapdf.exe %s") t))))
> >> )
> >>
> >> This results in:
> >>
> >> org-file-apps is a variable defined in `org.el'.
> >> Its value is ((auto-mode . emacs)
> >>  ("\\.mm\\'" . default)
> >>  ("\\.x?html?\\'" . default)
> >>  ("\\.pdf\\'" . "c:/progra~1/sumatrapdf/sumatrapdf.exe %s"))
> >>
> >> When I try to export an org file by typing C-c C-e d, sumatrapdf opens up OK,
> >> but complains with an error like this:
> >>
> >> Error loading c:\dropbox\org\c\:\dropbox\org\personal.pdf
> >>
> >> Any idea why I get the repeated path? A similar constructions works fine on
> >> my Mac, so I'm not quite sure what's going wrong here.

I don't do Windoze, but this looks to me like a typo in some init file,
perhaps a missing semicolon? I'd grep the usual suspects (on Linux, this
would be /etc/*, and all the config/init files and directories under
$HOME (.profile, .bashrc, .emacs, etc etc), but I have no idea what
these would be on Windoze - you might even have to search the *shudder*
registry) for c:\dropbox\org.

Nick

  reply	other threads:[~2012-05-12 14:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12  4:10 Problem exporting to PDF (and viewing) Richard Stanton
2012-05-12 14:23 ` Jonathan Leech-Pepin
2012-05-12 14:39   ` Nick Dokos [this message]
2012-05-13  4:05     ` Richard Stanton
2012-05-13  4:53       ` Nick Dokos
2012-05-18 20:56         ` Richard Stanton
2012-05-18 21:11           ` Nick Dokos
2012-05-18 21:45             ` Richard Stanton
2012-05-18 22:19           ` Nick Dokos
2012-05-18 23:30             ` Richard Stanton
2012-05-19  7:07               ` Achim Gratz
2012-05-13  6:00       ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2012-05-14  5:33 Richard Stanton
2012-05-11 23:52 Richard Stanton
2012-05-12  7:22 ` Jude DaShiell

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=23805.1336833570@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jonathan.leechpepin@gmail.com \
    --cc=stanton@haas.berkeley.edu \
    /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).