[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] rel-0-9-1; preview and source specials

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] rel-0-9-1; preview and source specials
Date: Sat, 27 Aug 2005 14:29:35 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

[Redirecting to the mailing list.]

* Arthur Ogus (2005-08-26) writes:

> Hi, I just noticed this in my mail.
> On Aug 24, 2005, at 4:16 AM, Ralf Angeli wrote:
>> * Arthur Ogus (2005-08-23) writes:
>>> Hi.  I'd like to use TeXniscope with source specials.
>>> Unfortunately the view command after this plugin is
>>> installed doesn't start the emacs server.
>> I don't know about any "plugin", what it is or what it does, so I
>> cannot comment on it.
> sorry.  This is the enhanced carbon emacs plugin:
> http://www.inf.unibz.it/ franconi/enhanced-carbon-emacs/
> ec-emacs-plugin-beta.dmg

Even after reconstructing a valid URL from this, the server tells me
that the file does not exist.  Besides, a .dmg file is pretty useless
for somebody without a Mac (unless a more widely used file system
format is used in the image).

>>> (Just plain
>>> auctex does try to start the server, but I can't get it
>>> to use texniscope instead of xdvi.)
>> As explained in the manual, see (info "(auctex)Viewing"), you have to
>> customize the variable `TeX-output-view-style'.  The syntax of the
>> variable and its parts (involving regular expressions and custom
>> expanders) may be hard to grasp, especially when looking at its
>> default value.
> Yes, I am quite baffled.  In particular I don't understand what the
> style options are and how to use them.

Styles in AUCTeX are keywords found during parsing, like options or
names of LaTeX packages.  In `TeX-output-view-style' you can check for
the presence of certain styles and invoke specific actions when found.

> The plugin referred to above does most of what I want, but I am
> quite frustrated by its spotty documentation.

There is documentation?

>> AFAIK `open' on Mac OS X is something similar to `start' on Windows.
>> So `TeX-output-view-style' on Mac OS X with TeXniscope as the
>> preferred viewer would probably be set like this:
>> (setq TeX-output-view-style
>>       '(("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "dvips %d -o &&  
>> open %f")
>>     ("^dvi$" "." "open -a TeXniscope.app %dS %d")
>>     ("^pdf$" "." "open -a TeXniscope.app %o")
>>     ("^html?$" "." "open %o")))
>> Maybe somebody with knowledge of Mac OS X can verify this.
> I used to use Macintosh Common Lisp quite a bit, which
> handled all the System calls for me, but I'm not competent now.

We are not talking about Lisp here, but shell commands for invoking a

>> Then we'd need to know which options to pass to TeXniscope for forward
>> and inverse searching in order to set the variables
>> `TeX-source-specials-view-position-flags' and
>> `TeX-source-specials-view-editor-flags'.  Unfortunately the homepage
>> of TeXniscope doesn't provide any information on that, so maybe
>> somebody could post its available command line options here and how to
>> pass them to TeXniscope when it is opened via `open'.
> There is some documentation on TeXniscope provided with the application,
> but you may need mac OS X to access it.

Then I cannot help because I don't have Mac OS X.

Maybe the people making "plugins" for Emacs on Mac OS X (instead of
improving AUCTeX proper) can help you with that.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]