Re: New viewer selection backend

View: New views
7 Messages — Rating Filter:   Alert me  

Re: New viewer selection backend

by Artemio Gonzalez Lopez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,

Regarding the new variable "TeX-view-program-list-builtin", I suggest  
to add "open" as a builtin for use with Mac OS X. For instance, it  
could be used as the "viewer" for html files in Mac OS X ("open  
foo.html" opens foo.html in the default browser in Mac OS X).  
Alternatively, can this variable be customized using the "Customize  
AUCTeX menu?

Cheers,

Artemio



_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

smime.p7s (2K) Download Attachment

Re: New viewer selection backend

by leon-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-19 21:13 +0100, Artemio Gonzalez Lopez wrote:

> Hi everybody,
>
> Regarding the new variable "TeX-view-program-list-builtin", I suggest
> to add "open" as a builtin for use with Mac OS X. For instance, it
> could be used as the "viewer" for html files in Mac OS X ("open
> foo.html" opens foo.html in the default browser in Mac OS X).
> Alternatively, can this variable be customized using the "Customize
> AUCTeX menu?
>
> Cheers,
>
> Artemio

I customise TeX-view-program-list to include ("open" "open %o"). But I
agree it is better to have "open" as default for Mac OS X.

Leo


_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

Re: New viewer selection backend

by Rasmus Pank Roulund-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ralf,
For Some reason I cannot find the original thread on Gmane or in Gnus. Only here:
http://www.mail-archive.com/auctex-devel@.../msg06765.html

Either way, I think the idea is really nice and it straight forward to configure
at the moment (with m-x customize-variable that is).

However, I think there might be an Evince bug.
When I have synctex enabled and run view in a file that is not the master file
it cannot will suggest a "wrong" view value:

  evince -p o t main.pdf

This will open two evince windows. One with main.pdf and one blank window with
some file it is not able to find.

If I turn off synctex it will work fine. With xpdf it also works fine with and
without synctex.

As I wrote in another post Evince does not support synctex out of the box. You
have to patch it yourself. I don't know if this might have something to do with
it.

If I use the synctex script referred to in my previous post it will work.

Cheers,
Rasmus



_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

Re: Re: New viewer selection backend

by Ralf Angeli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Artemio Gonzalez Lopez (2009-10-19) writes:

> Regarding the new variable "TeX-view-program-list-builtin", I suggest  
> to add "open" as a builtin for use with Mac OS X. For instance, it  
> could be used as the "viewer" for html files in Mac OS X ("open  
> foo.html" opens foo.html in the default browser in Mac OS X).  

Thanks, but currently I am thinking about removing the entries for Mac
OS X altogether because I don't know enough about it and I cannot test
the settings.

> Alternatively, can this variable be customized using the "Customize  
> AUCTeX menu?

No.  `TeX-view-program-list' is the variable which is supposed to be
customized by the user.

--
Ralf


_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

Re: Re: New viewer selection backend

by Ralf Angeli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Rasmus (2009-10-20) writes:

> However, I think there might be an Evince bug.
> When I have synctex enabled and run view in a file that is not the master file
> it cannot will suggest a "wrong" view value:
>
>   evince -p o t main.pdf

I cannot reproduce this.  It looks like the %(outpage) expander is
broken in your case.  Is this with the original definition or did you
fiddle with it in `TeX-expand-list'?

--
Ralf


_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

Re: Re: New viewer selection backend

by Rasmus Pank Roulund-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-21 19:59, Ralf Angeli wrote:
> I cannot reproduce this.  It looks like the %(outpage) expander is
> broken in your case.  Is this with the original definition or did you
> fiddle with it in `TeX-expand-list'?
I check my dot emacs and haven't done anything funky.
Notice though, in single-file documents it works at it us supposed to.

In another multi-file document I got the following suggested view command:
   evince -p ng: main.pdf

This project has a structure like:
.
main.tex <-- \input of various files
style/head.tex <-- The main config file
sections/section1 <-- containing the actual text

The project that made AUCTeX suggest
   evince -p o t main.pdf

has a structure like
.
main.tex <-- with layout specifications \input etc.
sections/section1.tex <-- containing the actual text

Cheers,
Rasmus


_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel

Re: Re: New viewer selection backend

by Ralf Angeli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Rasmus Pank Roulund (2009-10-21) writes:

> This project has a structure like:
> .
> main.tex <-- \input of various files
> style/head.tex <-- The main config file
> sections/section1 <-- containing the actual text

I see.  It should be fixed in CVS now.

--
Ralf


_______________________________________________
auctex-devel mailing list
auctex-devel@...
http://lists.gnu.org/mailman/listinfo/auctex-devel