all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Rempe <mhrempe@web.de>
Subject: Re: File variables in tex-site.el
Date: 02 May 2003 15:07:52 +0200	[thread overview]
Message-ID: <ud6j1qyxj.fsf@rempe-online.de> (raw)
In-Reply-To: 65fef11f.0305010200.54e2d8f2@posting.google.com

>>>>> "FCC" == F C Caner <ferhun_caner@yahoo.com> writes:

    > "Ulrich Dirr" <ud@art-satz.de> wrote in message
    > news:b8qko3$hsr$1@online.de...
    >> 
    >> Just to recall: I want to invoke PDFeLaTeX and when compiling
    >> was successful automatically invoke 'View PDF' without any key
    >> to be pressed. And of course it would be a nice feature if
    >> Emacs could close any PDF document in Acrobat(Reader) before
    >> compiling (because Acrobat blocks the file) and changing to
    >> Acrobat if all above was successfully done. Then
    >> work/compile-cycles would be really economic and could save
    >> really much time especially on bigger projects when finetuning
    >> requires many corrections (with recompiling), don't you think
    >> so?

    > I am suffering from exactly the same thing, and I think it is
    > time to solve this problem. I think launching the Acrobat Reader
    > right after using LaTeX Pdf can be done from within
    > Emacs. However, to close the document in the Acrobat Reader, I
    > don't know if elisp can be used. 

The following snippets in my tex-site.el are from some posting of
Jesper Harder that I found with google:

,----
| 
| ;;; von Jesper Harder:
| (defun acrobat-close-all-docs ()
|   "Close all open documents in Acrobat."
|   (save-excursion
|     (set-buffer (get-buffer-create " *ddeclient*"))
|     (erase-buffer)
|     (insert "[CloseAllDocs()]")
|     (call-process-region (point-min) (point-max)
|  "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))
| 
`----

In TeX-command-list add this entry:

,----
| (list "pdfLaTeX" "pdflatex '\\nonstopmode\\input{%t}'"
| 	      'TeX-run-pdfLaTeX nil t)
`----


-- 
Matthias

  reply	other threads:[~2003-05-02 13:07 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 [this message]
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
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

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

  git send-email \
    --in-reply-to=ud6j1qyxj.fsf@rempe-online.de \
    --to=mhrempe@web.de \
    --cc=mrempe@rempe-online.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.