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


[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5276f35d9dc7b37cfb0881ddcaf11c05783aac15

2015-02-05 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project GNU AUCTeX.

The branch, master has been updated
   via  5276f35d9dc7b37cfb0881ddcaf11c05783aac15 (commit)
  from  061d8cdb9ac0e154783ac722be5921ae2beb37f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 5276f35d9dc7b37cfb0881ddcaf11c05783aac15
Author: Tassilo Horn t...@gnu.org
Date:   Thu Feb 5 09:51:11 2015 +0100

Add PDF Tools support

* tex.el (TeX-pdf-tools-sync-view): New function to use PDF Tools
`pdf-view-mode' as a viewer.
(TeX-view-program-list-builtin): Add PDF Tools entry calling
`TeX-pdf-tools-sync-view'.

diff --git a/ChangeLog b/ChangeLog
index 169f5d3..cc381f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-05  Tassilo Horn  t...@gnu.org
+
+   * tex.el (TeX-pdf-tools-sync-view): New function to use PDF Tools
+   `pdf-view-mode' as a viewer.
+   (TeX-view-program-list-builtin): Add PDF Tools entry calling
+   `TeX-pdf-tools-sync-view'.
+
 2015-02-04  Tassilo Horn  t...@gnu.org
 
* Makefile.in (STYLESRC): Add new style.
diff --git a/tex.el b/tex.el
index a17b8b4..3aace79 100644
--- a/tex.el
+++ b/tex.el
@@ -1098,6 +1098,20 @@ search are checked, too.
 
 (defvar url-unreserved-chars)
 
+(defun TeX-pdf-tools-sync-view ()
+  Focus the focused page/paragraph in `pdf-view-mode'.  Used by
+default for the PDF Tools viewer entry in
+`TeX-view-program-list-builtin'.
+  (unless (featurep 'pdf-tools)
+(error PDF Tools are not installed!))
+  (let ((doc (concat file . (TeX-output-extension
+(unless (get-file-buffer doc)
+  (find-file-noselect doc))
+(if (and TeX-source-correlate-mode
+(fboundp 'pdf-sync-display-pdf))
+   (pdf-sync-display-pdf)
+  (pop-to-buffer doc
+
 (defun TeX-evince-sync-view ()
   Focus the focused page/paragraph in Evince with the position
 of point in emacs by using Evince's DBUS API.  Used by default
@@ -1164,7 +1178,8 @@ the requirements are met.
 -i %(outpage)
   -p %(outpage)))  %o)) evince)
   (Okular (okular --unique %o (mode-io-correlate #src:%n%a)) 
okular)
-  (xdg-open xdg-open %o xdg-open
+  (xdg-open xdg-open %o xdg-open)
+  (PDF Tools TeX-pdf-tools-sync-view
   Alist of built-in viewer specifications.
 This variable should not be changed by the user who can use
 `TeX-view-program-list' to add new viewers or overwrite the

---

Summary of changes:
 ChangeLog |7 +++
 tex.el|   17 -
 2 files changed, 23 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

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


[AUCTeX-commit] GNU AUCTeX branch, master, updated. 5276f35d9dc7b37cfb0881ddcaf11c05783aac15

2015-02-05 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project GNU AUCTeX.

The branch, master has been updated
   via  5276f35d9dc7b37cfb0881ddcaf11c05783aac15 (commit)
  from  061d8cdb9ac0e154783ac722be5921ae2beb37f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 5276f35d9dc7b37cfb0881ddcaf11c05783aac15
Author: Tassilo Horn t...@gnu.org
Date:   Thu Feb 5 09:51:11 2015 +0100

Add PDF Tools support

* tex.el (TeX-pdf-tools-sync-view): New function to use PDF Tools
`pdf-view-mode' as a viewer.
(TeX-view-program-list-builtin): Add PDF Tools entry calling
`TeX-pdf-tools-sync-view'.

---

Summary of changes:
 ChangeLog |7 +++
 tex.el|   17 -
 2 files changed, 23 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

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


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] Is it possible to use the buffer-file-name in a local variable ?

2015-02-05 Thread Denis Bitouzé
Le 05/02/15 à 17h52, Nicolas Richard theonewiththeevill...@yahoo.fr a écrit :

 I deprecated \includeonly in favor of TeX-command-region, and I now do
 collaborative editing through auto-synchronisation of files (owncloud,
 dropbox) instead of sending files around. So I'm now a happy
 one-file-does-it-all kind of LaTeX user.
 
 Even big one-files?

 Size doesn't matter when using TeX-command-region. I'm working on a
 400kB beamer file right now, and it's doing pretty well.

OK.

BTW, is it possible to ask for another name for the output file than
`_region_'? In particular, is it possible for this name to be the
evaluation of (file-name-base buffer-file-name), possibly copied in
antother directory? Maybe Latexmk could be helpful for this.

 The main advantage for me is ease of searching and refactoring. I know
 that auctex and friends have tools for working on multi-file documents,
 but my muscle memory keeps making me press C-s, C-M-%, M-s o etc.
 
 My muscle memory keeps making me press C-c C-c instead of C-c C-b
 (`TeX-command-buffer`) and I often recompile the whole document instead
 of only the current buffer :(

 It happens to me too, but then I notice it, hit C-c C-k and C-c C-b
 again because I know these bindings.

I guess all the references, citations, etc. have then to be
recomputed...

 The reftex-*-document commands don't even have bindings afaics. Thanks
 to this discussion, I had a look into the manual: (info (reftex) Key
 Bindings). Maybe I'll do that and use them.

I don't see your point.
-- 
Denis


___
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