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 (file line column
 and now whatever you want).

 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?  The AUCTeX part is also implemented and pushed out already.

  
http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=cef38f9946042b8ce26cf9a4deea0e5c54c35f06

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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.  For that, I'd be happy with any list (file line column
 and now whatever you want).

 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 should be a hook rather
then a variable.  This is more general and could actually be useful.
E.g. clicking on a reference in the literature could jump to the .bib
file (instead it of the .bbl one) orthogonal to the region handling.

 The AUCTeX part is also implemented and pushed out already.

   
 http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=cef38f9946042b8ce26cf9a4deea0e5c54c35f06

Premature ?

Maybe you wait a while. I in the process of working on that ,,other
feature'' and I really like to take the opportunity to rename some of
the pdf-sync functions/variables.

-ap

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 that it should be a hook rather
 then a variable.  This is more general and could actually be useful.
 E.g. clicking on a reference in the literature could jump to the .bib
 file (instead it of the .bbl one) orthogonal to the region handling.

Fine with me.

 The AUCTeX part is also implemented and pushed out already.

   
 http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=cef38f9946042b8ce26cf9a4deea0e5c54c35f06

 Premature ?

Well, I can change it whenever I want to.  ;-)

 Maybe you wait a while.  I in the process of working on that ,,other
 feature'' and I really like to take the opportunity to rename some of
 the pdf-sync functions/variables.

I've just seen and already fixed the conflicts.  If you want, I can
rework the pull request so that it is a hook.  Or you can just do it
yourself, and I'll adapt the AUCTeX side as soon as you give me a go.

Bye,
Tassilo


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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:

 http://tex.stackexchange.com/questions/39678/forward-inverse-search-using-synctex-with-the-precison-of-a-single-word

Ah, good to know I'm probably right.  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 SyncTeX version will
eventually provide correct line numbers).

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 multiple occurences in a line.  Maybe taking the current
word at click-position + the next N words (and then searching so that
space also matches \n) might work.  But that will fail in situations
where the click-pos is hello world but the actual tex text is hello
\texttt{world}.

If you want, you can play with those suggestions in TeXStudio to see if
it uses such a trick...

 pdf-tools is able to perform search in the PDF file, so it should
 theoretically possible to implement this also there.

Yes.

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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.  I've already
 implemented that for Evince, so it'll probably be not too hard to do.
 Unfortunately, I don't have the time to do that right now.

I've written a feature request.  IMO, it seems to be better to implement
that in PDF Tools instead of AUCTeX as the basic backward search is
there anyway.

  https://github.com/politza/pdf-tools/issues/36

Bye,
Tassilo


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 hard ones Emacs uses. Thus Emacs is 
usually much more precise. So if TeXStudio have upped the ante, I'd like to see 
it.

/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



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 Tools (new PDF viewer for Emacs)

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', except that
 it is much more advanced.  For example, you can

   - mark and copy text in the PDF
   - click links in the PDF
   - have a TOC/outline in the menu bar
   - isearch with match-highlighting

It looks very promising, thanks!

 and tons of other features.  Oh, and forward/backward search work out of
 the box with AUCTeX/SyncTex.

Well, we only need an appropriate entry in
`TeX-view-program-list-builtin' then ;-)

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 AUCTeX
and pdf-tools.

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 author of SyncTeX, it is the TeX engine the one 
that does not handle column positions, at least it was so in 2008 
when he designed it:


https://www.tug.org/TUGboat/tb29-3/tb93laurens.pdf

Best,
--
Jorge.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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/mailman/listinfo/auctex


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 SyncTeX version will eventually
 provide correct line numbers).

 According to the author of SyncTeX, it is the TeX engine the one that does 
 not
 handle column positions, at least it was so in 2008 when he designed it:

 https://www.tug.org/TUGboat/tb29-3/tb93laurens.pdf

 Good to know.  Then I hope the TeX engine will evolve eventually.

Well, it does provide the column information in error messages.  But
there is no \inputcolumnno in analogy to \inputlineno.  This shortcoming
is the reason preview-latex derives its column information from error
messages.  The column information is not accessible at the TeX
programming layer.

-- 
David Kastrup

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 documents.

/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



From: Tassilo Horn [t...@gnu.org]
Sent: 05 February 2015 11:08
To: Lars Madsen
Cc: Mosè Giordano; auctex
Subject: Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

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 column number which it
sadly doesn't.

 Might be an idea to check what actually is in the synctex file.

I've looked at it and didn't understand it.  But even if I did, that
wouldn't help us because we need to use the information provided by the
viewer.  And that's (file line column) where column is always -1.

 And what exactly is getting back from the previewer (I've never sat
 down and looked at it).

See above.  And I'm pretty sure that both Evince and PDF Tools query the
synctex info from the PDF.

So my guess is that either TeXStudio hacked up SyncTeX to supply correct
column numbers, or they use a dirty trick like their previewer returns
not only the line information but also the word at click position which
they then can search after jumping to the right line.

Well, in both cases, we're out of luck since we cannot (nor want to)
provide a better SyncTeX, nor are we able to change what viewers like
Evince supply when backward searching.

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 feature also for AUCTeX
 and pdf-tools.

 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 TeXstudio can
achieve that level of precision.

 Maybe there's some SyncTeX setting you need to enable to make it record
 column numbers, too?

I don't have a clue, as far as I know SyncTeX only potentially
supports column numbers, but actually always return a
not-really-useful number, as you pointed out.


2015-02-05 9:43 GMT+01:00 Lars Madsen dal...@math.au.dk:
 Mosè, exactly which version of TeXStudio has the feature to direct you to the 
 exact word?

I have TeXstudio 2.8.0, but this feature is mentioned already in
ChangeLog for version 2.3:
http://texstudio.sourceforge.net/manual/current/usermanual_en.html#SECTIONNEW23

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 how TeXstudio can
 achieve that level of precision.

Maybe it additionally extracts the word at the click position and then
searches forward after having jumped to the synctex-provided line.

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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
 search.

 I also did the same test and can't understand how TeXstudio can
 achieve that level of precision.

 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.  pdf-tools is able to perform search in
the PDF file, so it should theoretically possible to implement this also there.

The SyncTeX file I'm using for backward search with TeXstudio is the
one created by compilation in AUCTeX, so TeXstudio doesn't add
anything more to that file.

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 column number which it
sadly doesn't.

 Might be an idea to check what actually is in the synctex file.

I've looked at it and didn't understand it.  But even if I did, that
wouldn't help us because we need to use the information provided by the
viewer.  And that's (file line column) where column is always -1.

 And what exactly is getting back from the previewer (I've never sat
 down and looked at it).

See above.  And I'm pretty sure that both Evince and PDF Tools query the
synctex info from the PDF.

So my guess is that either TeXStudio hacked up SyncTeX to supply correct
column numbers, or they use a dirty trick like their previewer returns
not only the line information but also the word at click position which
they then can search after jumping to the right line.

Well, in both cases, we're out of luck since we cannot (nor want to)
provide a better SyncTeX, nor are we able to change what viewers like
Evince supply when backward searching.

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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



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, 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 what actually is in the synctex file. And what 
exactly is getting back from the previewer (I've never sat down and looked at 
it).


/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



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: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 feature also for AUCTeX
 and pdf-tools.

 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 TeXstudio can
achieve that level of precision.

 Maybe there's some SyncTeX setting you need to enable to make it record
 column numbers, too?

I don't have a clue, as far as I know SyncTeX only potentially
supports column numbers, but actually always return a
not-really-useful number, as you pointed out.


2015-02-05 9:43 GMT+01:00 Lars Madsen dal...@math.au.dk:
 Mosè, exactly which version of TeXStudio has the feature to direct you to the 
 exact word?

I have TeXstudio 2.8.0, but this feature is mentioned already in
ChangeLog for version 2.3:
http://texstudio.sourceforge.net/manual/current/usermanual_en.html#SECTIONNEW23

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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: 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 for Emacs)

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 multiple occurences in a line.  Maybe taking the current
word at click-position + the next N words (and then searching so that
space also matches \n) might work.  But that will fail in situations
where the click-pos is hello world but the actual tex text is hello
\texttt{world}.

If you want, you can play with those suggestions in TeXStudio to see if
it uses such a trick...

 pdf-tools is able to perform search in the PDF file, so it should
 theoretically possible to implement this also there.

Yes.

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 used by `pdf-sync-goto-tex'
 if column is -1 (in the hope that some future SyncTeX version will
 eventually provide correct line numbers).

Sounds good, but I don't know if a regexp is sufficient.  I'm thinking
of dropping the line and column values and return (file closure), such
that closure finds the right position in the tex buffer, including some
limited `uncompiling', i.e using the likes of LaTeX-math-default.

-ap

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 what actually is in the synctex file. And what 
exactly is getting back from the previewer (I've never sat down and looked at 
it).


/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



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: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 feature also for AUCTeX
 and pdf-tools.

 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 TeXstudio can
achieve that level of precision.

 Maybe there's some SyncTeX setting you need to enable to make it record
 column numbers, too?

I don't have a clue, as far as I know SyncTeX only potentially
supports column numbers, but actually always return a
not-really-useful number, as you pointed out.


2015-02-05 9:43 GMT+01:00 Lars Madsen dal...@math.au.dk:
 Mosè, exactly which version of TeXStudio has the feature to direct you to the 
 exact word?

I have TeXstudio 2.8.0, but this feature is mentioned already in
ChangeLog for version 2.3:
http://texstudio.sourceforge.net/manual/current/usermanual_en.html#SECTIONNEW23

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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', except that
 it is much more advanced.  For example, you can

   - mark and copy text in the PDF
   - click links in the PDF
   - have a TOC/outline in the menu bar
   - isearch with match-highlighting

It looks very promising, thanks!

 and tons of other features.  Oh, and forward/backward search work out of
 the box with AUCTeX/SyncTex.

Well, we only need an appropriate entry in
`TeX-view-program-list-builtin' then ;-)

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 AUCTeX
and pdf-tools.

Bye,
Mosè

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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 someone does the equivalent for a browser 
now.


pdf-tools works quite well with AUCTeX as well, except that it 
does not work with TeX-view (and their search forward keybinding 
is bad since it finishes with C-g). Does someone know how to add 
pdf-tools to TeX-view-program-list?


--
Jorge.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


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.  For example, you can

   - mark and copy text in the PDF
   - click links in the PDF
   - have a TOC/outline in the menu bar
   - isearch with match-highlighting

 It looks very promising, thanks!

 and tons of other features.  Oh, and forward/backward search work out of
 the box with AUCTeX/SyncTex.

 Well, we only need an appropriate entry in
 `TeX-view-program-list-builtin' then ;-)

Yes, definitively.  Although finding the pdf once and then just using
`C-c C-g' for forward search instead of `C-c C-c View RET' is as good,
IMO.

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 already
implemented that for Evince, so it'll probably be not too hard to do.
Unfortunately, I don't have the time to do that right now.

 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 AUCTeX
 and pdf-tools.

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.
Maybe there's some SyncTeX setting you need to enable to make it record
column numbers, too?

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex