logo       

Re: Easymacs correction for Texinfo files editing plus question: msg#00007

emacs.easymacs.user

Subject: Re: Easymacs correction for Texinfo files editing plus question


Hi Peter, sorry if it took so much... these are hard days for me and my thesis ...

1) In order to make preview-latex work under win32 you should add something
like:
(when easymacs-w32-system
(setq-default preview-gs-command "gswin32c")
(require 'tex-mik))

OK. Done.

Just one doubt... don't you think it would be better if tex-mik set it right?
Anyway, with this add easymacs makes previews, provided you manually add the Ghostscript bin directory in the path (it's not done by the installer).

2) When opening a .tex file with preview-latex active, a new icon should be
visible in the tool-bar, but it is void. I couldn't find a good solution,

Thanks for the report. I did find a good solution -- it is necessary
to set preview-datadir so that the icons can be found.
[cut]
Would you test this attached easymacs.el file?

Ok, now the icon is visible.

Anyway, in the new file you sent me, I would modify the following:

;; Where to fins the .sty files, etc.
(setq preview-TeX-style-dir
(concat
(if easymacs-w32-system ".;;" ".::")
easymacs-dir "auctex/preview/latex/"
(if easymacs-w32-system ";" ":")))

into something like this:

;; Where to fins the .sty files, etc. (only for systems other then w32)
(if (not easymacs-w32-system)
(setq preview-TeX-style-dir
(concat ".::" easymacs-dir "auctex/preview/latex/:")))

The reason is the following. The 'preview-TeX-style-dir' seems not to be working under w32. Anyway, if you use MiKTeX, the first time you run preview-latex, it will ask you if you want to install the preview package, and it will install in the right location under texmf and keep updated. So, it seems to me that this command is helpful under non w32 systems, but useless under w32 (other than broken). With the original file you sent me, if I launch preview-latex, MiKTeX asks me to install the preview package, so I believe it can't find the one provided with easymacs. Also, I think I would prefer to install the original package, which was tested to work with the other packaged and is automatically updated.

Bye

Luca

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise