unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ferhun_caner@yahoo.com (Dr. F.C.Caner)
Subject: Re: File variables in tex-site.el
Date: 7 May 2003 04:28:53 -0700	[thread overview]
Message-ID: <65fef11f.0305070328.310a4f69@posting.google.com> (raw)
In-Reply-To: 65fef11f.0305052141.298c20fe@posting.google.com

Here is how I modified TeX-run-pdfLaTeX so that resulting pdf file is
viewed in the Acrobat Reader right after compiling is done. However,
the first time launching of the Reader must be done manually. In the
subsequent compilations the Reader will automatically redisplay the
resulting pdf file (like the dvi viewers).

Best,

FCC.

(defun acrobat-open-doc (file)
  "Open document `file' in Acrobat."
  (save-excursion
    (set-buffer (get-buffer-create "*ddeclient*"))
    (erase-buffer)
    (insert (concat "[FileOpenEx(\"" file ".pdf\")]"))
    (call-process-region (point-min) (point-max)
       "c:/EmacsPlugins/ddeclient/ddeclient" t t nil "acroview"
"control")
    (if (= 0 (string-to-int (buffer-string))) t nil)))

(defun TeX-run-pdfLaTeX (name command file)
  "Create a process for NAME using COMMAND to format FILE with
pdfLaTeX."
  (acrobat-close-all-docs)
  (TeX-run-LaTeX name command file)
  (acrobat-open-doc file)
)



ferhun_caner@yahoo.com (Dr. F.C.Caner) wrote in message news:<65fef11f.0305052141.298c20fe@posting.google.com>...
> Hello all. First, thanks for your interest.
> 
> I am using WindowsXP. Apparently I did not have ddeclient.exe, so I
> first downloaded it, and placed it under c:/EmacsPlugins/ddeclient.
> Now when I invoke PdfLaTeX, it closes all the documents in the Acrobat
> Reader before compiling the LaTeX file. This is actually a big
> convenience. However, to solve the problem completely, Emacs must
> launch the reader right after PdfLaTeX'ing the document. Can this be
> done?
> 
> Thanks again and best,
> 
> FCC.
> 
> Jesper Harder <harder@myrealbox.com> wrote in message news:<m3he89vvzv.fsf@defun.localdomain>...
> > ferhun_caner@yahoo.com (Dr. F.C.Caner) writes:
> > 
> > > This is just great, but I could not get it working. I am not getting
> > > any error messages either. Actually, I cannot see any buffer named
> > > *ddeclient* at all. When I eval (acrobat-close-all-docs) in the
> > > *scratch* buffer, the function returns t and Acrobat reader does
> > > nothing. Any idea what is happening?
> > 
> > Which operating system are you using?  
> > 
> > The DDE stuff _only_ works on ms-windows -- the Unix version of
> > Acrobat doesn't support any kind of interapplication communication.

  reply	other threads:[~2003-05-07 11:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-30  9:31 File variables in tex-site.el Ulrich Dirr
2003-04-30 14:34 ` Kai Großjohann
2003-04-30 14:59 ` David Kastrup
2003-05-01  8:09   ` Ulrich Dirr
2003-05-01  9:26     ` David Kastrup
2003-05-01 15:11     ` Piet van Oostrum
2003-05-02  5:30       ` Ulrich Dirr
2003-05-02 10:44         ` Piet van Oostrum
2003-05-03  7:04           ` Ulrich Dirr
2003-05-03  9:01             ` David Kastrup
2003-05-01 22:47     ` Stefan Monnier
2003-05-01 10:00 ` Dr. F.C.Caner
2003-05-02 13:07   ` Matthias Rempe
2003-05-05  8:36     ` Dr. F.C.Caner
2003-05-05 22:30       ` Matthias Rempe
2003-05-05 23:01       ` Jesper Harder
2003-05-06  5:41         ` Dr. F.C.Caner
2003-05-07 11:28           ` Dr. F.C.Caner [this message]
2003-05-07 16:45             ` Matthias Rempe
2003-05-08  6:00               ` Dr. F.C.Caner

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65fef11f.0305070328.310a4f69@posting.google.com \
    --to=ferhun_caner@yahoo.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.
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).