Article View: comp.text.tex
Article #762Re: The possibility of almost WYSIWYG TeX
From: Kristoffer H. Rose
Date: Tue, 07 Apr 1992 12:35
Date: Tue, 07 Apr 1992 12:35
56 lines
2235 bytes
2235 bytes
grodan@cyklop.nada.kth.se (Mats G L|fdahl) writes:
>"Local" changes could result in "local" recompilation, ie. if you just
>add text or fomulas in one paragraph, you would only have to recompile
>that very paragraph. This would be possibel with option iii turned
>off. Normally, you don't care about page breaks until your text is
>(almost) finished anyway.
I currently do this within Emacs (on un*x) as follows:
1) Make sure that the document has a well-defined preamble where all
macro definitions are located.
2) Set up the TeX-region variables to recognise this. I do as follows
in my .emacs file
(setq TeX-mode-hook
'(lambda ()
;...
;; AMS-TeX setup for TeX-region...
;;
(setq TeX-directory ".")
(setq TeX-dvi-print-command "dvipreview")
(setq TeX-start-of-header "\\documentstyle")
(setq TeX-end-of-header "\\document\n")
(setq TeX-trailer "\\enddocument")
))
where "dvipreview" is this shell script:
#!/bin/sh
# dvipreview: activate dvi previewer on file in background...
xdvi $* &
(substitute your favorite previewer for xdvi).
Now I can use the commands
M-h C-c C-r TeX current paragraph
C-c C-p start previewer
where I only have to start the previewer once for each session.
If you insert page breaks (^L or whatever matches the page-delimiter
regexp) then you will find
C-x C-p C-c C-r TeX current page
useful as well.
--kris@diku.dk
--
Kristoffer H{\o}gsbro ROSE <kris@diku.dk>
DIKU (TOPPS group), University of Copenhagen
Universitetsparken 1, DK-2100 Copenhagen {\O} +45 31396466/213
Technical Details
Message-ID:
<1992Apr7.123552.26756@odin.diku.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!micro-heart-of-gold.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!diku!krisReferences:
<UdrBqnf0_ek1QZUk48@andrew.cmu.edu> <1992Apr6.024326.1374@cs.aukuni.ac.nz> <GRODAN.92Apr7122044@cyklop.nada.kth.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!micro-heart-of-gold.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!diku!kris From: kris@diku.dk (Kristoffer H. Rose) Newsgroups: comp.text.tex Subject: Re: The possibility of almost WYSIWYG TeX Message-ID: <1992Apr7.123552.26756@odin.diku.dk> Date: 7 Apr 92 12:35:52 GMT References: <UdrBqnf0_ek1QZUk48@andrew.cmu.edu> <1992Apr6.024326.1374@cs.aukuni.ac.nz> <GRODAN.92Apr7122044@cyklop.nada.kth.se> Sender: kris@hugin.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 56