From: Paolo Martini <p.martini@neuralnoise.com>
Subject: [Windows] tex-mode: Emacs+ MiKTeX
Date: Fri, 15 Oct 2004 18:07:44 +0200 [thread overview]
Message-ID: <416FF5D0.90406@neuralnoise.com> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I found a problem of interoperability between emacs's tex-mode and
MiKTeX's DVI viewer, but i think it's applicable to other applications
called from emacs as well.
1) Set tex-dvi-view-command to "C:\path\to\miktex\bin\yap.exe"
2) Create a .tex file and save it in a path containing spaces (e.g.
C:\Documents and Settings\User\Documents\foobar.tex)
3) C-c C-f (TeX File)
4) C-c C-v (TeX View)
the tex-shell tells that emacs is calling something like:
C:\MiKTeX\Main\miktex\bin\yap.exe c:/Documents and
Settings/Paolo/Documenti/Chimica/esp1.dvi&
that is wrong, it should call yap this way:
C:\MiKTeX\Main\miktex\bin\yap.exe "c:\Documents and
Settings\Paolo\Documenti\Chimica\esp1.dvi"&
I made a simple workaround:
(defun tex-send-command (command &optional file background)
~ "Send COMMAND to TeX shell process, substituting optional FILE for *.
Do this in background if optional BACKGROUND is t. If COMMAND has no *,
FILE will be appended, preceded by a blank, to COMMAND. If FILE is nil, no
substitution will be made in COMMAND. COMMAND can be any expression that
evaluates to a command string.
Return the process in which TeX is running."
~ (when file
~ (setf file (shell-quote-argument (substitute ?\\ ?/ file))))
~ ..snip..
It's incomplete, but it works on my system, maybe it would be ok to have
an auto-quoting tex-send-command function that understands how to di it
by itself, but i don't know elisp and i cannot do it and propose.
Regards, Paolo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBb/XQhW78UdvgTikRApe8AJwNyDjapcJvo0Y8JXMy2/RYozAUjwCfXTdz
rd9UYoaHGqcm78MpaeHyMrQ=
=qn/e
-----END PGP SIGNATURE-----
--------------------------------------------------------------------
L'utente che ti ha inviato questa email ha a disposizione:
Spazio illimitato, Webmail, accesso Imap, Pop3 e Smtp,
4 differenti domini email, protezione antispam e filtro mime,
dimensione massima allegati 200mb.
Tutto totalmente gratuito, la tua email ha queste funzionalità ?
Puoi registrarti all'indirizzo: http://www.nectarine.it
Questo messaggio pubblicitario viene aggiunto in maniera
automatica, segnalazione abusi: support@nectarine.info
--------------------------------------------------------------------
reply other threads:[~2004-10-15 16:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=416FF5D0.90406@neuralnoise.com \
--to=p.martini@neuralnoise.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.
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.