[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading tex files
From: |
Raimund Kohl-Fuechsle |
Subject: |
Re: reading tex files |
Date: |
Wed, 26 Apr 2006 07:11:18 -0000 |
> --0-1133892600-1146028981=:87824
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
>
>
> Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de> wrote: Gary Wessle
> wrote:
>
> Do you mean "reading" as an equivalent to opening the file or do you
> mean it as "displaying the content without those commands and stuff"?
> The first case asks you to simply open the file and to ... read. Yepp.
> The latter case asks for "texing" the *.tex file. To do this there
> exist several ways ... so what is what you want to do?
>
> ray
>
> that latter, that is to be able to read without all the code \f \b
> things, like a lormal doc.
you seem to not be familiar with TeX/LaTeX ... well ... ok, first you
need to have the tetex packages installed. On Debian you need the
following packages (use: apt-get install ...)
tetex-base (Basic library files of teTeX)
tetex-extra (Additional library files of teTeX)
(should you want to "dive" deeper into LaTeX you are going to need also:
tetex-doc - The documentation component of the Debian teTeX packages)
Now, given you are in dired within emacs (that looks like:
-rw-r--r-- 1 raimund raimund 8549 2006-03-06 15:19 dvd-v1.tex)
you then (in this example) place the cursor on "dvd-v1.tex" and use
shell command "!" (you simply use the exclamation mark). The
shell-command opens the minibuffer on the bottom of your screen and asks
for a command. Here you type "latex" ... looks like:
Shell command: latex
^^^^^
that's all. Now emacs runs LaTeX on the file. After it's done with it,
still being in dired-mode, you type in the small "g" letter. Now you
will see that emacs added some files. With my example it would look
like:
-rw-r--r-- 1 raimund raimund 1110 2006-04-04 22:45 dvd-v1.aux
-rw-r--r-- 1 raimund raimund 18276 2006-04-04 22:45 dvd-v1.dvi
-rw-r--r-- 1 raimund raimund 10572 2006-04-04 22:45 dvd-v1.log
-rw-r--r-- 1 raimund raimund 427 2006-04-04 22:45 dvd-v1.out
-rw-r--r-- 1 raimund raimund 8549 2006-03-06 15:19 dvd-v1.tex
This being so you now place the curser on the file dvd-v1.dvi. Again
you use the shell command with the command "xdvi" ... this will look
like
Shell command: xdvi
and -voila- emacs opens the xdvi-viewer. Here you can see the whole
document as it was meant to be seen - without all the LaTeX commands.
There are other ways to do this. Since you seem to not be familiar with
TeX/LaTex I thought this beginners instruction would suffice.
Happy TeXing :-)
ray