From: "Tim Heaney" <heaney@cablespeed.com>
Subject: Re: Problem with Latex / compile dvi postscript
Date: 01 Dec 2002 18:19:59 -0500 [thread overview]
Message-ID: <87hedxmin4.fsf@mrbun.watterson> (raw)
In-Reply-To: mailman.1038767403.27852.help-gnu-emacs@gnu.org
Christian Banik <c.banik@tu-harburg.de> writes:
>
> If you've just written (for example) test1.tex, how can you tell Emacs
> to compile that file? How can you tell Emacs to create the file
> test1.dvi and test1.ps ?
If you are editing test1.tex in TeX mode--- it should say (TeX) or
(TeX Fill) in the modeline--- then
C-c C-b should tex it (to a temp file)
C-c C-v should view it (from that temp file)
C-c C-p should print it (from that temp file)
so you can tex, preview, and print the file you are working on without
creating permanent copies of the intermediate files. If you want to
keep the intermediate files, then
C-c C-f
should tex it (creating test1.dvi) and you can run the command line
program dvips from within Emacs with
M-! dvips test1
creating test1.ps. Recent versions of Emacs should have a menubar
across the top and in TeX mode, you should have a menu called "TeX"
with the above commands and more in it.
If you do not have TeX mode (if editing a .tex file or typing
M-x tex-mode
does not put you in TeX mode), then try
http://mirrors.sunsite.dk/auctex/www/auctex/
I don't have a printer myself, so I wanted to make C-c C-p take the
temporary dvi file and make a permanent ps file. I don't know very
much elisp, so I asked how I might do that in this newsgroup earlier
this year and Kevin Rodgers kindly suggested the following:
(add-hook 'tex-mode-hook ; or whatever it's called
(lambda ()
(set (make-local-variable 'tex-dvi-print-command)
(format "dvips * -o %s.ps"
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))))))
With this added to my .emacs file, I can edit the file test1.tex and
then
C-c C-b tex it (to a temp file)
C-c C-v view it (from that temp file)
C-c C-p dvips it (from that temp file to test1.ps)
and I save the ps file.
I hope this helps,
Tim
next parent reply other threads:[~2002-12-01 23:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1038767403.27852.help-gnu-emacs@gnu.org>
2002-12-01 23:19 ` Tim Heaney [this message]
2002-12-02 10:53 ` Problem with Latex / compile dvi postscript Kester Clegg
2002-12-02 17:53 ` Kai Großjohann
2002-12-03 11:48 ` Kester Clegg
2002-12-03 17:41 ` Kai Großjohann
2002-12-04 10:38 ` Kester Clegg
2002-12-04 17:55 ` Kai Großjohann
2002-12-05 10:29 ` Kester Clegg
2002-12-04 20:29 ` Dr. Ing. Dieter Jurzitza
[not found] <mailman.1039034711.22230.help-gnu-emacs@gnu.org>
2002-12-05 10:39 ` Kester Clegg
2002-12-05 11:34 ` Kai Großjohann
2002-12-05 15:00 ` Stefan Monnier <foo@acm.com>
2002-12-01 18:26 Christian Banik
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=87hedxmin4.fsf@mrbun.watterson \
--to=heaney@cablespeed.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.