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

2015-02-06 Thread Tassilo Horn
Andreas Politz poli...@hochschule-trier.de 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

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

2015-02-06 Thread Andreas Politz
Tassilo Horn t...@gnu.org writes: Andreas Politz poli...@hochschule-trier.de 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.

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

2015-02-06 Thread Tassilo Horn
Andreas Politz poli...@hochschule-trier.de 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

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

2015-02-05 Thread Tassilo Horn
Andreas Politz poli...@hochschule-trier.de 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:

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

2015-02-05 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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

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

2015-02-05 Thread Tassilo Horn
Tassilo Horn t...@gnu.org 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.

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

2015-02-05 Thread Lars Madsen
Mosè, exactly which version of TeXStudio has the feature to direct you to the exact word? I'll like to see that. AFAIK pdfsync only looks at line numbers, thus TeXMaker and TeXStudio usually have a problem in the backwards sync because they tend to use soft line breaks (I think) and not the

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

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

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

2015-02-05 Thread David Kastrup
Tassilo Horn t...@gnu.org 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

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

2015-02-05 Thread Lars Madsen
texstudio is independent of the LaTeX installation so they have no control over the generated .synctex file. Why not just ask the developer? While you are talking to him, tell him about reftexs label features. TeXStudio really need to up their game in relation to labels in multiple file

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 t...@gnu.org: Mosè Giordano m...@gnu.org 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

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

2015-02-05 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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

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 t...@gnu.org: Mosè Giordano m...@gnu.org 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

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

2015-02-05 Thread Tassilo Horn
Lars Madsen dal...@math.au.dk 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

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

2015-02-05 Thread Lars Madsen
The sources are available, so maybe one can get a hint from there. /Lars Madsen Institut for Matematik / Department of Mathematics Aarhus Universitet / Aarhus University Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf

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

2015-02-05 Thread Lars Madsen
I already noticed that it was not 100% accurate. But it is good enough. Better than the goto first word in paragraph as seen in TeXMaker, which use very long lines in the .tex file. /Lars Madsen Institut for Matematik / Department of Mathematics Aarhus Universitet / Aarhus University Mere info:

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

2015-02-05 Thread Andreas Politz
Tassilo Horn t...@gnu.org writes: Andreas Politz poli...@hochschule-trier.de 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

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

2015-02-05 Thread Lars Madsen
Interesting, just tested with TS 2.6 on linux. Works there too. 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. Cannot have others having features not present in Emacs :-) Might be an idea to check

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 t...@gnu.org: 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',

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

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

2015-02-04 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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.