Hi,

On Fri, 4 Apr 2008, Wei wrote:

> Hi Roussanka,
>
> Would you be kind to show me your configuration for using xdvi for
> task (1) and PDFview for task (2)? I am searching on the web for the
> same solution that I want. But I failed.
>
> I appreciated it if you could help.

Accept my kind apologies for not answering right away. I use Carbon Emacs:

<http://homepage.mac.com/zenitani/emacs-e.html>

Task (1): I have the default settings of Carbon Emacs, i.e., after the 
command latex, the command View opens the created dvi file with TeXShop.

Task (2): Below are my settings for PDFView. They are a slight 
modification of the code from the website (sect. Setting up Emacs):

<http://pdfview.sourceforge.net/latex.html>

May be someone would suggest better options. Currently, I am trying Skim 
and am very pleased with it.

This is from PDFView instrs:

;; Starts the Emacs server
(server-start)

;; to make Emacs auto-raise when Cmd + click is executed in PDFView
;; Shift + Cmd + Click over a point in Skim auto-rises Emacs
;; at the corresponding tex source
(defun raise-emacs-on-aqua()
;;  (shell-command "osascript -e 'tell application \"Emacs\" to activate' &"))
   (do-applescript "tell application \"Emacs\" to activate"))
;; the option with & above splits emacs window and opens *Async Shell 
;; Command*
;;
;; Show TeX line in PDFView or Skim:
(add-hook 'server-switch-hook 'raise-emacs-on-aqua)
(require 'tex-site)
(add-hook 'TeX-mode-hook
          (lambda ()
            (add-to-list 'TeX-output-view-style
                         '("^pdf$" "."
"/Applications/PDFView.app/Contents/MacOS/gotoline.sh %n %(OutFullPath)"))
            (add-to-list 'TeX-expand-list
                         '("%(OutFullPath)" (lambda nil
                                              (expand-file-name
                                               (TeX-active-master 
(TeX-output-extension) t)
                                               (TeX-master-directory))))))
          )

Have in mind that some line brakes are from the email systems.

Roussanka
>
> Wei
>
> On Jan 24, 7:31 am, Roussanka Loukanova <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> I'm sure the experts on this list will suggests something, but here are a
>> couple of suggestions from me:
>>
>> On Thu, 24 Jan 2008, neuwirthe wrote:
>>
>>> I have a problem with Aquamacs, the latest Carbon Emacs, the ECE
>>> (Enhanced Carbon Emacs) plugin, andxdvi(k).
>>> I installed teTeX with fink.
>>
>> Assuming that you are on a Mac, why don't you upgrade to one of the
>> contemporary MacTeX Distribution:
>>
>> http://www.tug.org/mactex/
>>
>>> I can run unaltered Aquamacs and then dvi preview will work with
>>> xdvik.
>>> After installing the ECE plugn, the preview will ot work any more.
>>> The preview does not work at all both with unaltered Carbon Emacs and
>>> with Carbon Emacs with the ECE plugin.
>>
>> I have recently upgraded to the latest Carbon Emacs from
>> <http://homepage.mac.com/zenitani/emacs-e.html>
>> and (as of now) it works finely with both, the latest TeXLive-2007-Dev and
>> gwTeX. See
>> <http://www.tug.org/mactex/morepackages.html>
>>
>>
>>
>>> Is there a change in some configuration I have to make?
>>> Which part of the docs will tell me what I have to do to make this
>>> work?
>>> I would like to use Carbon Emacs, but i really need dvi preview for
>>> inverse search.
>>
>> With the default settings, from within Carbon Emacs:
>>
>> (1) after the command latex, the command View opens the created dvi file
>> with TeXShop
>> (2) after the command pdflatex, View opens the created pdf file with Preview
>>
>> One can change the dvi and pdf viewing commands. I myself use (1)
>> for the dvi files, and PDFView for the pdf files.
>>
>> People are fascinated by Skim for viewing from emacs, which I haven't had
>> the chance to try.
>>
>> Roussanka
>>
>>
>>
>>> Erich


--~--~---------~--~----~------------~-------~--~----~
Carbon Emacs User Group
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to