Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-04-22 Thread Denis Bitouzé
Le 23/04/15 à 06h20, Tassilo Horn a écrit : >> Could you explain what is the relevant line to add to the .emacs in >> order to automatically run PDF Tools with `C-c C-c v RET' ? > > I use this: > > (setq TeX-view-program-selection '((output-dvi "Evince") >(outp

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-04-22 Thread Tassilo Horn
Denis Bitouzé writes: >> I've just added it to `TeX-view-program-list-builtin' in AUCTeX git. It >> calls a new command `TeX-pdf-tools-sync-view'. See >> >> http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=5276f35d9dc7b37cfb0881ddcaf11c05783aac15 > > Could you explain what is the relevant

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-04-22 Thread Denis Bitouzé
Le 05/02/15 à 09h53, Tassilo Horn a écrit : > I've just added it to `TeX-view-program-list-builtin' in AUCTeX git. It > calls a new command `TeX-pdf-tools-sync-view'. See > > http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=5276f35d9dc7b37cfb0881ddcaf11c05783aac15 Could you explain what

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Andreas Politz
Tassilo Horn writes: > Ah, good to know I'm probably right. I wouldn't object if you do > something similar in PDF Tools. ;-) I started a branch on this called `precise-sync'. It works already pretty well (on this one file I'm constantly trying it on ...) Maybe you want to give it a shot and

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Andreas Politz
Tassilo Horn writes: > Well, I can change it whenever I want to. ;-) That's good to know. > [...] Or you can just do it yourself, and I'll adapt the AUCTeX side > as soon as you give me a go. I just did that. I called the hook `pdf-sync-backward-redirect-functions', which made more sense to m

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Tassilo Horn
Andreas Politz writes: >>> I could still run inbetween, i.e >>> >>> (funcall (make-locator (redirect (synctex pdf x y >> >> Ah, yes. Ok, then I think the pull request at >> >> https://github.com/politza/pdf-tools/pull/42 >> >> is ok, no? > > Basically yes. But I now think again that it

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Andreas Politz
Tassilo Horn writes: > Andreas Politz writes: > Sounds good, but I don't know if a regexp is sufficient. [...] >>> >>> Then the AUCTeX region-file to real-file translation we've discussed in >>> >>> https://github.com/politza/pdf-tools/issues/36 >>> >>> wouldn't work. For that, I'd be h

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Tassilo Horn
Andreas Politz writes: >>> Sounds good, but I don't know if a regexp is sufficient. [...] >> >> Then the AUCTeX region-file to real-file translation we've discussed in >> >> https://github.com/politza/pdf-tools/issues/36 >> >> wouldn't work. For that, I'd be happy with any list (file line col

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-06 Thread Andreas Politz
Tassilo Horn writes: > Andreas Politz writes: > [...] >> Sounds good, but I don't know if a regexp is sufficient. [...] > > Then the AUCTeX region-file to real-file translation we've discussed in > > https://github.com/politza/pdf-tools/issues/36 > > wouldn't work. For that, I'd be happy wit

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Andreas Politz writes: >> [...] I wouldn't object if you do something similar in PDF Tools. ;-) >> >> E.g., `pdf-sync-correlate-pdf' would return a list (file line column >> search-regex) where the latter would only be used by `pdf-sync-goto-tex' >> if column is -1 (in the hope that some future

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Andreas Politz
Tassilo Horn writes: > Andreas Politz writes: > > Hi Andreas, Hey. > [...] I wouldn't object if you do something similar in PDF Tools. ;-) > > E.g., `pdf-sync-correlate-pdf' would return a list (file line column > search-regex) where the latter would only be used by `pdf-sync-goto-tex' > if c

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread David Kastrup
Tassilo Horn writes: > jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: > >>> E.g., `pdf-sync-correlate-pdf' would return a list (file line column >>> search-regex) where the latter would only be used by `pdf-sync-goto-tex' if >>> column is -1 (in the hope that some future SyncTeX

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: >> E.g., `pdf-sync-correlate-pdf' would return a list (file line column >> search-regex) where the latter would only be used by `pdf-sync-goto-tex' if >> column is -1 (in the hope that some future SyncTeX version will eventually >> pr

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Jorge A. Alfaro-Murillo
Tassilo Horn writes: I've just added it to `TeX-view-program-list-builtin' in AUCTeX git. It calls a new command `TeX-pdf-tools-sync-view'. Excellent, thank you very much. -- Jorge. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/ma

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Jorge A. Alfaro-Murillo
Tassilo Horn writes: E.g., `pdf-sync-correlate-pdf' would return a list (file line column search-regex) where the latter would only be used by `pdf-sync-goto-tex' if column is -1 (in the hope that some future SyncTeX version will eventually provide correct line numbers). According to the au

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Andreas Politz writes: Hi Andreas, >> Maybe it additionally extracts the word at the click position and >> then searches forward after having jumped to the synctex-provided >> line. > > Most likely: > > http://tex.stackexchange.com/questions/39678/forward-inverse-search-using-synctex-with-the-pr

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Andreas Politz
Tassilo Horn writes: > Maybe it additionally extracts the word at the click position and then > searches forward after having jumped to the synctex-provided line. Most likely: http://tex.stackexchange.com/questions/39678/forward-inverse-search-using-synctex-with-the-precison-of-a-single-word -

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Lars Madsen
From: auctex-bounces+daleif=imf.au...@gnu.org [auctex-bounces+daleif=imf.au...@gnu.org] on behalf of Lars Madsen [dal...@math.au.dk] Sent: 05 February 2015 10:55 To: Mosè Giordano Cc: auctex; Tassilo Horn Subject: Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs) Interesting

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Lars Madsen
: Lars Madsen Cc: Mosè Giordano; auctex Subject: Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs) Lars Madsen writes: > Would you mind doing us all a favor, and figuring out how this works > and add it to Emacs, preferably Emacs + Evince as that is the compo I > use.

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Lars Madsen
rsity Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf From: Tassilo Horn [t...@gnu.org] Sent: 05 February 2015 11:15 To: Mosè Giordano Cc: Lars Madsen; auctex Subject: Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Mosè Giordano writes: >> Maybe it additionally extracts the word at the click position and >> then searches forward after having jumped to the synctex-provided >> line. > > That's an interesting guess. Although it's flaky. E.g., if the word is "the", then the chances are high there are multiple

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Lars Madsen writes: > Would you mind doing us all a favor, and figuring out how this works > and add it to Emacs, preferably Emacs + Evince as that is the compo I > use. Both the Evince and PDF Tools AUCTeX viewers already support that provided that SyncTeX would return a sensible column number

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Mosè Giordano
2015-02-05 10:59 GMT+01:00 Tassilo Horn : > Mosè Giordano writes: > >>> I just edebugged the relevant function `pdf-sync-correlate-tex', and >>> it returns a list (file line column), so the answer is yes. However, >>> column is always -1. I have the same with the Evince backward >>> search. >> >

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Mosè Giordano writes: >> I just edebugged the relevant function `pdf-sync-correlate-tex', and >> it returns a list (file line column), so the answer is yes. However, >> column is always -1. I have the same with the Evince backward >> search. > > I also did the same test and can't understand how

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Lars Madsen
http://au.dk/en/daleif@imf From: Mosè Giordano [m...@gnu.org] Sent: 05 February 2015 10:45 To: Lars Madsen Cc: Tassilo Horn; auctex Subject: Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs) Hi Tassilo & Lars, 2015-02-05 8:06 GMT+01:0

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Mosè Giordano
Hi Tassilo & Lars, 2015-02-05 8:06 GMT+01:00 Tassilo Horn : > Mosè Giordano writes: >> When using forward/backward search in TeXstudio with its embedded >> viewer, you are direct to the exact word selected, not just the line. >> I wonder if it's possible to implement such a feature also for AUCTe

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: >> just in case you didn't already know PDF Tools >> >> https://github.com/politza/pdf-tools >> >> you might want to give it a whirl. > > I installed it a couple of weeks ago, and it has completely replaced > any other PDF viewer

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Lars Madsen
//au.dk/en/daleif@imf From: auctex-bounces+daleif=math.au...@gnu.org [auctex-bounces+daleif=math.au...@gnu.org] on behalf of Mosè Giordano [m...@gnu.org] Sent: 04 February 2015 21:48 To: Tassilo Horn Cc: auctex Subject: Re: [AUCTeX] OT: Have a look at PDF Tool

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-05 Thread Tassilo Horn
Tassilo Horn writes: > What we also need it support for viewing _region_.pdf with proper > SyncTeX support. Right now, when double-clicking in _region_.pdf, you > jump to the correct location in _region_.tex. It would be nice if you > jumped to the location in the real source tex file. I've al

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-04 Thread Tassilo Horn
Mosè Giordano writes: >> just in case you didn't already know PDF Tools >> >> https://github.com/politza/pdf-tools >> >> you might want to give it a whirl. It's a new PDF viewer for Emacs >> which is somehow similar to Emacs' built-in `doc-view-mode', except that >> it is much more advanced.

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-04 Thread Jorge A. Alfaro-Murillo
Tassilo Horn writes: just in case you didn't already know PDF Tools https://github.com/politza/pdf-tools you might want to give it a whirl. I installed it a couple of weeks ago, and it has completely replaced any other PDF viewer for me, now I open PDF with emacsclient. I hope that som

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-04 Thread Mosè Giordano
Hi Tassilo, 2015-02-04 21:00 GMT+01:00 Tassilo Horn : > Hi all, > > just in case you didn't already know PDF Tools > > https://github.com/politza/pdf-tools > > you might want to give it a whirl. It's a new PDF viewer for Emacs > which is somehow similar to Emacs' built-in `doc-view-mode', excep

[AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-02-04 Thread Tassilo Horn
Hi all, just in case you didn't already know PDF Tools https://github.com/politza/pdf-tools you might want to give it a whirl. It's a new PDF viewer for Emacs which is somehow similar to Emacs' built-in `doc-view-mode', except that it is much more advanced. For example, you can - mark and