From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ferhun_caner@yahoo.com (Dr. F.C.Caner) Newsgroups: gmane.emacs.help Subject: Re: File variables in tex-site.el Date: 7 May 2003 04:28:53 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65fef11f.0305070328.310a4f69@posting.google.com> References: <65fef11f.0305010200.54e2d8f2@posting.google.com> <65fef11f.0305050036.27ae8d34@posting.google.com> <65fef11f.0305052141.298c20fe@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1052307067 30467 80.91.224.249 (7 May 2003 11:31:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 11:31:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 07 13:31:05 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DN7v-0007sI-00 for ; Wed, 07 May 2003 13:30:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DN8a-0005hf-09 for gnu-help-gnu-emacs@m.gmane.org; Wed, 07 May 2003 07:31:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 194.27.206.47 Original-X-Trace: posting.google.com 1052306933 3800 127.0.0.1 (7 May 2003 11:28:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 7 May 2003 11:28:53 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112879 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9374 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9374 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 wrote in message news:... > > 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.