[macemacsjp-english 778] Re: emacs/latex problem

Back to archive index

Peter Dyballa Peter_Dybal****@Web*****
Tue Dec 19 20:17:23 JST 2006


Am 18.12.2006 um 01:45 schrieb Roussanka Loukanova:

I don't know which release of Carbon Emacs I am using right now, the  
About menu item does not explain anything, could be it's the latest  
one, still based on GNU Emacs 22.0.50. This last release broke for me  
too a lot of things because it does not load my system's site- 
start.el. Could be you're just another victim of undocumented  
changes ...

> Now, with the new installation, neither of the above works. I.e.,  
> what I
> do and get is as follows:
>
> 1. In the Emacs menu: Command -> Texing Options I switch off PDF Mode
> by C-c C-t C-p (to get pstricks working in latex).

Have you thought of creating your own PSTricks command? You could use  
your TeXShop Engine file, a simple shell script, to do the same job ...

Or you could use Herb Schulz' ps4pdf Engine to create PDF from a  
PSTricks TeX file kind of "directly."

>
> 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating  
> pdf,
> i.e. it does not get the sequence of commands: dvips + ps2pdf.

Can you show the contents of the corresponding output buffer? There  
must be some evidence why no PS output was created. Recent  
implementations of dvips have a safety option active not to load any  
files "from above" your DVI file's file system level ...

>
> 3. C-c C-c invokes as the default View command: <xdvi file.dvi>
> (I do not like much xdvi, but even it does not work, apparently  
> because
> I don't know how to get xdvi working; i.e., I do not know yet how to
> activate X11).

I have created with Platypus an Universal Binary application that set  
ups the X11 environment in such a way that it knows of TeX and  
becomes very useful. I can send it to you, I just don't have a host 
(er) to let you fetch it. Then it would be best to make X11 a start- 
up item or to launch it before you try to view a DVI file from Emacs.  
The X clients launched when the X server part of X11 is not already  
running can behave a bit strange, including the state of complete  
uselessness.

You can also extend AUCTeX (and your system) with two different DVI  
viewer applications. The first one, and IMO best PDF viewer, is  
TeXShop. Because it can't display DVI it converts it to PDF, and it  
would do the same with a PS file. AFAIR it uses dvips to create PS  
and then your "Distiller" command (Ghostview's ps2pdf or the system's  
pstopdf) to create PDF, which is then displayed. The second option  
would be to use TeXniscope, which either cannot display DVI, so it  
uses dvipdfmx to convert it directly to PDF.

>
> 4. have put the line
> (setq pdf-previewer-program "open -a Preview")
> in the .emacs.

Some time ago the internals of AUCTeX changed a lot. Such simple  
lines might not work anymore in AUCTeX 11.83 (you can get the version  
number for example from "reporting an AUCTeX bug" menu entry). This  
and the much too complicated syntax to create reasonable AUCTeX  
commands helped me to use something different then AUCTeX.

>
> 5. I've restarted the machine several times. But nothing fixes the
> problem.

That's correct behaviour.

--
Greetings

   Pete

"Eternity is a terrible thought. I mean, where's it going to end?"
                                             - Tom Stoppard





More information about the macemacsjp-english mailing list
Back to archive index