Re: [AUCTeX] Autocomplete for BibTeX cite
What excactly do you mean by autocomplete in this context? I can think of several different descriptions. /Lars Madsen Institut for Matematik / Department of Mathematics Aarhus Universitet / Aarhus University Mere info: http://au.dk/daleif@math / More information: http://au.dk/en/daleif@math From: auctex-bounces+daleif=math.au...@gnu.org [auctex-bounces+daleif=math.au...@gnu.org] on behalf of Florian Lindner [mailingli...@xgm.de] Sent: 15 July 2015 10:15 To: auctex@gnu.org Subject: [AUCTeX] Autocomplete for BibTeX cite Hello, I have a minimal LaTeX file: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \begin{document} \cite{Zudrop2012} \bibliography{literatur} \bibliographystyle{unsrt} \end{document} which works perfect and produces a references section. How can I have autocomplete with the \cite macro? ___ 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] Where and how TeX-evince-sync-view is defined?
Something like that. I switched to evince as xpdf wouldn't even start. Haven't had much problems with it since. /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: David Kastrup [d...@gnu.org] Sent: 11 May 2015 13:17 To: Lars Madsen Cc: Janusz S. Bien; auctex Subject: Re: [AUCTeX] Where and how TeX-evince-sync-view is defined? Lars Madsen writes: > I do not recall having problems with Evince on Ubuntu 12.04. It's been more like 14.04 when they started for me: before that Xpdf was the troublemaker. Haven't tried on 15.04 yet. -- David Kastrup ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Where and how TeX-evince-sync-view is defined?
I do not recall having problems with Evince on Ubuntu 12.04. Is it possibly to download those files without having to be a member of bitbucket? /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 Janusz S. Bien [jsb...@mimuw.edu.pl] Sent: 11 May 2015 11:10 To: auctex Subject: Re: [AUCTeX] Where and how TeX-evince-sync-view is defined? Quote/Cytat - David Kastrup (Mon 11 May 2015 10:49:10 AM CEST): > I've stopped using Evince because of that and configured back to Xpdf. > At one point of time, both Xpdf and Evince will segfault at startup in > the same version of Ubuntu and then I'm going to have a problem. I've used xpdf for years, on a new system started to use Evince just of laziness, as it is the default. > > But so far, it's always been one _or_ the other. > > Xpdf's crashes were some Poppler library version incompatibility. > Evince has some Dbus problem I think. At some point of time, it took > about 10 starts of Evince to have one succeed. Up to now I had no problems with Evince on Debian jessie. In my document I use OCG and it seems that on Linux only Evince is handling it. Best regards Janusz -- Prof. dr hab. Janusz S. Bień - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej) Prof. Janusz S. Bień - University of Warsaw (Formal Linguistics Department) jsb...@uw.edu.pl, jsb...@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/ ___ 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] out comment every line
Nice one, thanks, one didn't know (point-marker) (I've started Emacs macrop programming some 10 years too late ;-) /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: Nicolas Richard [theonewiththeevill...@yahoo.fr] Sent: 03 March 2015 16:19 To: Lars Madsen Cc: auctex@gnu.org Subject: Re: out comment every line Le 03/03/2015 15:57, Lars Madsen a écrit : > Here is a sample of what happens Great. One solution is to use markers. See (info "(elisp) Overview of Markers") for more information about markers. What we need here is the following property: | But the marker's position value can change during the life of | the marker, and often does. Insertion and deletion of text in the | buffer relocate the marker. Please try the following change > (defun mytest () > (interactive) > (let ( > beg > end > (T 0.5) > ) > (sit-for T) > (re-search-forward "{" nil t) > (sit-for T) > (goto-char (match-beginning 0)) > (sit-for T) > (setq beg (point)) > (sit-for T) > (forward-sexp) > (sit-for T) > (setq end (point)) Use (point-marker) here. > (sit-for T) > (TeX-comment-region beg end) > (sit-for T) > (goto-char end) > ) > ) HTH, -- Nicolas. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] out comment every line
Here is a sample of what happens (defun mytest () (interactive) (let ( beg end (T 0.5) ) (sit-for T) (re-search-forward "{" nil t) (sit-for T) (goto-char (match-beginning 0)) (sit-for T) (setq beg (point)) (sit-for T) (forward-sexp) (sit-for T) (setq end (point)) (sit-for T) (TeX-comment-region beg end) (sit-for T) (goto-char end) ) ) Use it (in LaTeX-mode, and make sure the cursor is before the {) {The things in themselves are what first give rise to reason, as is proven in the ontological manuals. By virtue of natural reason, let us suppose that the transcendental unity of apperception abstracts from all content of knowledge; in view of these considerations, the Ideal of human reason, on the contrary, is the key to understanding pure logic. Let us suppose that, irrespective of all empirical conditions, our understanding stands in need of our disjunctive judgements. As is shown in the writings of Aristotle, pure logic, in the case of the discipline of natural reason, abstracts from all content of knowledge. Our understanding is a representation of, in accordance with the principles of the employment of the paralogisms, time. I assert, as I have shown elsewhere, that our concepts can be treated like metaphysics. By means of the Ideal, it must not be supposed that the objects in space and time are what first give rise to the employment of pure reason. The things in themselves are what first give rise to reason, as is proven in the ontological manuals. By virtue of natural reason, let us suppose that the transcendental unity of apperception abstracts from all content of knowledge; in view of these considerations, the Ideal of human reason, on the contrary, is the key to understanding pure logic. Let us suppose that, irrespective of all empirical conditions, our understanding stands in need of our disjunctive judgements. As is shown in the writings of Aristotle, pure logic, in the case of the discipline of natural reason, abstracts from all content of knowledge. Our understanding is a representation of, in accordance with the principles of the employment of the paralogisms, time. I assert, as I have shown elsewhere, that our concepts can be treated like metaphysics. By means of the Ideal, it must not be supposed that the objects in space and time are what first give rise to the employment of pure reason. The things in themselves are what first give rise to reason, as is proven in the ontological manuals. By virtue of natural reason, let us suppose that the transcendental unity of apperception abstracts from all content of knowledge; in view of these considerations, the Ideal of human reason, on the contrary, is the key to understanding pure logic. Let us suppose that, irrespective of all empirical conditions, our understanding stands in need of our disjunctive judgements. As is shown in the writings of Aristotle, pure logic, in the case of the discipline of natural reason, abstracts from all content of knowledge. Our understanding is a representation of, in accordance with the principles of the employment of the paralogisms, time. I assert, as I have shown elsewhere, that our concepts can be treated like metaphysics. By means of the Ideal, it must not be these considerations, the Ideal of human reason, on the contrary, is the key to understanding pure logic. Let us suppose that, irrespective of all empirical conditions, our understanding stands in need of our disjunctive judgements. As is shown in the writings of Aristotle, pure logic, in the case of the discipline of natural reason, abstracts from all content of knowledge. Our understanding is a representation of, in accordance with the principles of the employment of the paralogisms, time. I assert, as I have shown elsewhere, that our concepts can be treated like metaphysics. By means of the Ideal, it must not be these considerations, the Ideal of human reason, on the contrary, is the key to understanding pure logic. Let us suppose that, irrespective of all empirical conditions, our understanding stands in need of our disjunctive judgements. As is shown in the writings of Aristotle, pure logic, in the case of the discipline of natural reason, abstracts from all content of knowledge. Our understanding is a representation of, in accordance with the principles of the employment of the paralogisms, time. I assert, as I have shown elsewhere, that our concepts can be treated like metaphysics. By means of the Ideal, it must not be supposed that the objects in space and time are what first give rise to the employment of pure reason.} /Lars Madsen Institut for Matematik / Department of Mathematics Aarhus Universitet / Aarhus University Mere info: http://au.dk/daleif@imf / More informat
Re: [AUCTeX] out comment every line
If I just to (TeX-comment-region beg end) (goto-char end) I'm no longer at the end of the region. '% ' was added, so the region is now longer. I'm surely also missing something a lot easier here. /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: Nicolas Richard [theonewiththeevill...@yahoo.fr] Sent: 03 March 2015 13:46 To: Lars Madsen Cc: auctex@gnu.org Subject: Re: out comment every line Lars Madsen writes: > If you run TeX-comment-region it will out comment the lines that are > not blank. How can I tell it to comment everyline even if it is blank? Since Tassilo answered this part already, let's look at the story : > I'm using this in a macro that cleans up some 'strange' syntax into a > more normal env based stuff. But I'd like to keep the original. So the > macro detects the material, copies it, outcomments the region At this point you know where the region ends, don't you ? > and has > to insert the converted stuff after the commented area. > > but after TeX-comment-region, the cursor may still be inside the > commented area, so I need to get out. So you could use it here. I know I missed something because this was too obvious, but what did I miss ? -- Nicolas Richard ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] out comment every line
I knew there was a variable somewhere. Works perfectly, thanks /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 Tassilo Horn [t...@gnu.org] Sent: 03 March 2015 11:41 To: auctex@gnu.org Subject: Re: [AUCTeX] out comment every line Lars Madsen writes: Hi Lars, > If you run TeX-comment-region it will out comment the lines that are > not blank. How can I tell it to comment everyline even if it is blank? That's not special to AUCTeX, i.e., `TeX-comment-region' just defines the comment characters and then calls `comment-region' which does the actual commenting. For the latter, the default is to comment only non-blank lines but it can be changed using: ,[ C-h v comment-empty-lines RET ] | comment-empty-lines is a variable defined in `newcomment.el'. | Its value is nil | | Documentation: | If nil, `comment-region' does not comment out empty lines. | If t, it always comments out empty lines. | If `eol' it only comments out empty lines if comments are | terminated by the end of line (i.e. `comment-end' is empty). | | You can customize this variable. ` Bye, Tassilo ___ 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] out comment every line
If you run TeX-comment-region it will out comment the lines that are not blank. How can I tell it to comment everyline even if it is blank? I'm using this in a macro that cleans up some 'strange' syntax into a more normal env based stuff. But I'd like to keep the original. So the macro detects the material, copies it, outcomments the region and has to insert the converted stuff after the commented area. but after TeX-comment-region, the cursor may still be inside the commented area, so I need to get out. One way is to loop untill I'm not on a commented line. But that fails if I end up on a line that is not commented. Suggestions? /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 ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Modify environments interactively
Bad formulation, meant to say not as a first approximation to a macro. /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 Lars Madsen [dal...@math.au.dk] Sent: 16 February 2015 10:26 To: Tassilo Horn; auctex@gnu.org Subject: Re: [AUCTeX] Modify environments interactively Not as a first env I was thinking more on the lines of \begin{foo} \begin{bar} cursor \end{bar} \end{foo} then some macro would transform this into \begin{foo} cursor \end{foo} i.e. if the env to be deleted is on lines of their own, then those lines are removed. BTW: I haven't switched to 11.88 yet, was hooks added to LaTeX-modify-environment? AFAIR we can add environment hooks to C-c C-e but not to C-u C-c C-e (I think someone mentioned at one point that that should be added as well. Why is this needed: I add cleanup hooks to certain envs, so if I mark a region and insert an env around it, then it clean up the contents. But at least with 11.87 no such hook fires if you change an env. An example of such a cleaner is for a hint env, used in exercises to make sure all hints are formatted the same way. Authors often forget this, thus the text is often Hint: Blah blah... My clean up hook here removes the 'Hint: ' /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 Tassilo Horn [t...@gnu.org] Sent: 16 February 2015 07:56 To: auctex@gnu.org Subject: Re: [AUCTeX] Modify environments interactively Igor Sosa Mayor writes: >> related, is there a build in feature for deleting a given env? >> >> This is sometimes handy when editing other peoples work. (some people >> are very messy) > > this would be a good idea... I guess doing `C-u C-c C-e' and then deleting the environment name could do that, i.e., modifying an environment so that is has an empty name. But there's no good way to delete an environment. I mean, deleting the \begin/\end is easy, but you'd probably also want to delete its \items in case its an enumerate/itemize, etc. Bye, Tassilo ___ 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 mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Modify environments interactively
Not as a first env I was thinking more on the lines of \begin{foo} \begin{bar} cursor \end{bar} \end{foo} then some macro would transform this into \begin{foo} cursor \end{foo} i.e. if the env to be deleted is on lines of their own, then those lines are removed. BTW: I haven't switched to 11.88 yet, was hooks added to LaTeX-modify-environment? AFAIR we can add environment hooks to C-c C-e but not to C-u C-c C-e (I think someone mentioned at one point that that should be added as well. Why is this needed: I add cleanup hooks to certain envs, so if I mark a region and insert an env around it, then it clean up the contents. But at least with 11.87 no such hook fires if you change an env. An example of such a cleaner is for a hint env, used in exercises to make sure all hints are formatted the same way. Authors often forget this, thus the text is often Hint: Blah blah... My clean up hook here removes the 'Hint: ' /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 Tassilo Horn [t...@gnu.org] Sent: 16 February 2015 07:56 To: auctex@gnu.org Subject: Re: [AUCTeX] Modify environments interactively Igor Sosa Mayor writes: >> related, is there a build in feature for deleting a given env? >> >> This is sometimes handy when editing other peoples work. (some people >> are very messy) > > this would be a good idea... I guess doing `C-u C-c C-e' and then deleting the environment name could do that, i.e., modifying an environment so that is has an empty name. But there's no good way to delete an environment. I mean, deleting the \begin/\end is easy, but you'd probably also want to delete its \items in case its an enumerate/itemize, etc. Bye, Tassilo ___ 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] Modify environments interactively
related, is there a build in feature for deleting a given env? This is sometimes handy when editing other peoples work. (some people are very messy) /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 Tassilo Horn [t...@gnu.org] Sent: 13 February 2015 09:51 To: auctex@gnu.org Subject: Re: [AUCTeX] Modify environments interactively Roy Crihfield writes: > Is there a function that allows quickly renaming, deleting or > otherwise modifying an enclosing environment? If such a thing is > built-in I would find it very useful. When you invoke `LaTeX-environment' with a prefix arg, e.g., `C-u C-c C-e' you can modify the current enclosing environment. Bye, Tassilo ___ 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)
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 : > 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 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 : > 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)
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 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)
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 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)
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 : > 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 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 : > 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)
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 : > 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] Indentation of \if statements
I know Not having see Olehs patch, it was just a reminder that no all if constructions come in the \if ... \fi category /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: 18 December 2014 16:38 To: Lars Madsen Cc: Oleh; auctex@gnu.org Subject: Re: [AUCTeX] Indentation of \if statements Lars Madsen writes: > Just out of interest, would the patch still handle > > \IfBooleanTF{#1}{true}{false} That's usually written as \ifBooleanTF{#1}{% true}{% false} and then the indentation is correct out of the box because auctex indents the contents in braces. Bye, Tassilo ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Indentation of \if statements
Just out of interest, would the patch still handle \IfBooleanTF{#1}{true}{false} (xparse package) /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 Oleh [ohwoeo...@gmail.com] Sent: 18 December 2014 13:29 To: Tassilo Horn Cc: auctex@gnu.org Subject: Re: [AUCTeX] Indentation of \if statements Hi Tassilo, > I'd welcome a patch that generalizes the idea a bit. For example, the > ifplatform package provides macros like > > \ifwindows > \this > \else > \that > \fi > > and there are dozens of other \if-variants out there. So it would be > good if an AUCTeX style file could specify that it provides a new > if-then-else-fi macro, and then indentation should just work. I've added the generalization to anything that starts with "\if". Should be fine unless people use something like: \newcommand\iffy{...} See the attached patch. regards, Oleh ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Indentation of \if statements
people can define their own, so there are lots and lots and lots /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: Oleh [ohwoeo...@gmail.com] Sent: 18 December 2014 14:11 To: Lars Madsen Cc: Tassilo Horn; auctex@gnu.org Subject: Re: [AUCTeX] Indentation of \if statements Hi Lars, > Just out of interest, would the patch still handle > > \IfBooleanTF{#1}{true}{false} > > (xparse package) It does handle it well, because of capitalization. It wouldn't handle "\ifBoolean" though. As a work-around, I could look for braces on the same line. But I'm not really a LaTeX expert, I've used only "\ifdefined" and "\ifstrequal" in my documents. And now that I've checked, the patch works for "\ifdefined" but not for "\ifstrequal" (I'll add a follow-up patch shortly). What other commands that start with "\if" come up? regards, Oleh ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] toggle environments with and without *
I couldn't even get it to work by just copy'n'pasting 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: Tamas Papp [tkp...@gmail.com] Sent: 02 December 2014 14:01 To: Lars Madsen Cc: auctex Subject: Re: [AUCTeX] toggle environments with and without * In the current version, it toggles between \begin{equation*} a^2 + b^2 = c^2 \end{equation*} and \begin{equation} a^2 + b^2 = c^2 \end{equation} In the "deluxe" version I am trying to write, it would toggle between \begin{equation*} % my fancy equation % \label{eq:mylabel} a^2 + b^2 = c^2 \end{equation*} and \begin{equation} % my fancy equation \label{eq:mylabel} a^2 + b^2 = c^2 \end{equation} too (note the commented out label, and that only the comments before a \label are toggled). I don't know enough about Emacs Lisp/AUCTeX internals to write this. Also, help with making the current implementation more idiomatic is welcome (currently it looks like an entry for the "you can write CL in any language" contest). Best, Tamas On Tue, Dec 02 2014, Lars Madsen wrote: > what are the requirements for this macro? > > (still using 11.87) > > > /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 Tamas Papp > [tkp...@gmail.com] > Sent: 01 December 2014 19:06 > To: auctex > Subject: [AUCTeX] toggle environments with and without * > > Hi, > > I was trying to come up with a way to quickly switch between environment > pairs with and without an asterisk (eg equation and equation*). My > attempt is below, it works, but I was wondering if I am overcomplicating > this and maybe there is a simpler way. > > Also, can someone suggest a way to comment and uncomment lines which > start with \label? > > --8<---cut here---start->8--- > (defun LaTeX-toggle-* () > "Toggle between forms of the current environment with or without * at the > end." > (interactive) > (let* ((environment (LaTeX-current-environment))) > (when environment > (let* ((l (length environment)) > (*-p (and (cl-plusp l) >(eql (aref environment (1- l)) ?*))) > (bare-environment (if *-p >(subseq environment 0 (1- l)) > environment))) > (cl-assert (cl-plusp (length bare-environment)) () >"Empty environment ~S" bare-environment) > (when (or (not LaTeX-toggle-*-environments) > (cl-find bare-environment font-latex-math-environments >:test #'equal)) > (LaTeX-modify-environment (if *-p > bare-environment > (concat bare-environment "*" > --8<---cut here---end--->8--- > > Best, > > Tamas > > ___ > 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] toggle environments with and without *
what are the requirements for this macro? (still using 11.87) /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 Tamas Papp [tkp...@gmail.com] Sent: 01 December 2014 19:06 To: auctex Subject: [AUCTeX] toggle environments with and without * Hi, I was trying to come up with a way to quickly switch between environment pairs with and without an asterisk (eg equation and equation*). My attempt is below, it works, but I was wondering if I am overcomplicating this and maybe there is a simpler way. Also, can someone suggest a way to comment and uncomment lines which start with \label? --8<---cut here---start->8--- (defun LaTeX-toggle-* () "Toggle between forms of the current environment with or without * at the end." (interactive) (let* ((environment (LaTeX-current-environment))) (when environment (let* ((l (length environment)) (*-p (and (cl-plusp l) (eql (aref environment (1- l)) ?*))) (bare-environment (if *-p (subseq environment 0 (1- l)) environment))) (cl-assert (cl-plusp (length bare-environment)) () "Empty environment ~S" bare-environment) (when (or (not LaTeX-toggle-*-environments) (cl-find bare-environment font-latex-math-environments :test #'equal)) (LaTeX-modify-environment (if *-p bare-environment (concat bare-environment "*" --8<---cut here---end--->8--- Best, Tamas ___ 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] auto compile for auctex?
Plus, say you type $a=f(x)$ then you do not what the compilation to start right after the first $ because that causes an error. It would be nice to have to way of tying together latexmk -pvc mode and emacs error locating. But that would mean that we would need a signal from latexmk to inform emacs that it should run the error locating. My best bet for you would be to tie the compilation to when you save the document. /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 Tassilo Horn [t...@gnu.org] Sent: 17 October 2014 15:59 To: auctex@gnu.org Subject: Re: [AUCTeX] auto compile for auctex? Thorsten Grothe writes: Hi Thorsten, > But I would be nicer *not to press C-s*, like in ATP or in the Editor > Gummi. I mean Auctex should recognize automatically if someting > changed in the buffer and execute this function. I don't think it would be a good idea to do that. You type a char thus the buffer is modified and latexmk starts. You type another char and AUCTeX wants to start latexmk again, and since the other process isn't yet finished you get a query "Kill running latexmk process?"... > Another approach would be if Auctex automatcally saves the document > from time to time and executes this function or the other functions > supposed by you. > > Is that possible? Sure. Have a look at `run-with-timer' or `run-with-idle-timer'. Bye, Tassilo ___ 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] auto compile for auctex?
I tend to run latexmk externally with -pvc mode Of course then I cannot use C-` to jump to error, but that is usually not that much of a problem. With -pvc you just save, and latexmk takes over. It can be an idea to reconfigure it with $pdflatex = "pdflatex -synctex=1 -halt-on-error %O %S"; such that when it detects an error then it stops and it go back to looking for file changes. /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 Tassilo Horn [t...@gnu.org] Sent: 17 October 2014 11:51 To: auctex@gnu.org Subject: Re: [AUCTeX] auto compile for auctex? Thorsten Grothe writes: Hi Thorsten, > before I started using auctex I used vim with atp-latex plugin see > here: > > http://atp-vim.sourceforge.net/ > > ATP has a very nice feauture, called auto compile. When you leave vims > insert mode the document is automatically compiled by latexmk, this is > very convenient and I loved this feature. Is something similar > possible with auctex and for example latexmk? Flymake can do that, although that's not muli-file-document aware and will run texify instead of latexmk. But by overriding its tex hook with this function (defun flymake-get-tex-args (file-name) (list "latexmk" (list (TeX-master-file file-name it'll probably work ok, e.g., recompile your document once you've saved any of its files. Bye, Tassilo ___ 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] running C-c C-c very slow
ahh, yes that feature. I see the problem it is has to scan the entire texmf tree. That is one of the reasons I use latexmk, it scans the log and finds all dependent files that. /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: 15 October 2014 10:49 To: Lars Madsen Cc: Jannis; auctex@gnu.org Subject: Re: [AUCTeX] running C-c C-c very slow Lars Madsen writes: > Now I'm just wondering. > What is AucTeX looking up at C-c C-c? And why is that lookup needed. If any tex/sty file belonging to your document (either directly or in terms of \usepackage etc.) has been modified, AUCTeX will suggest you to run LaTeX on your document. If not but some bib file used by your document has been modified, it suggests you run BibTeX or Biber. Same for index files. Only if nothing has been modified and thus your PDF/DVI file is current, it'll suggest to run the View command. Bye, Tassilo ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] running C-c C-c very slow
Now I'm just wondering. What is AucTeX looking up at C-c C-c? And why is that lookup needed. (I hardly ever use C-c C-c, since I'm running latexmk in pvc mode) /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 Tassilo Horn [t...@gnu.org] Sent: 14 October 2014 20:50 To: Jannis Cc: auctex@gnu.org Subject: Re: [AUCTeX] running C-c C-c very slow Jannis writes: Hi Jannis, > Sorry for beeing insistent, Sorry, I've had no time to come back to you until now. > but is there any way to solve this? All files in tex path do not seem > to be on a nfs mount. But as you've said below in your last message: >> See above. Could this also be related to the location of the *.tex >> file? I mount some remote samba share via VPN to my file system and >> all the files Latex uses are located there. Maybe the change in speed >> that i noticed is not due to me updating my system but due to me >> changing my physical location. Before I worked at a place where these >> files were located in the local network and were not acessed over the >> internet. Well, that means that AUCTeX does more than thousand file-exists-p checks on files that are accessed via network. Not astonishing that this is slow. (NFS was just an example. Samba is quite similar.) > Is this also crucial for the *.tex etc files of the document beeing > worked on? No. Ok, so how to solve the problem? 1. You could check if there's some optimization/caching option for samba that speeds up file existance checks. 2. Install a TeX distro locally. Bye, Tassilo ___ 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] texlive 2014
Ernst, do you mind sharing where you saw that adding the path change to ".bashrc" was the "right" thing to do. Just so we can get that "advise" removed from the Internet. It is a very common problem -Original Message- From: Ernst Reissner [rei3...@arcor.de] Received: søndag, 10 aug. 2014, 1:38 To: Lars Madsen [dal...@imf.au.dk]; m...@gnu.org [m...@gnu.org]; auctex@gnu.org [auctex@gnu.org] Subject: Re: [AUCTeX] texlive 2014 On 08/10/2014 01:25 AM, Lars Madsen wrote: See my other answer. The important thing here is how exactly you start emacs. >From the command line or via a menu or keyboard shortcut It will work from the command line but not from a menu. Emacs does not use the bash shell when making system calls. -Original Message- From: Ernst Reissner [rei3...@arcor.de<mailto:rei3...@arcor.de>] Received: søndag, 10 aug. 2014, 1:21 To: Mosè Giordano [m...@gnu.org<mailto:m...@gnu.org>]; auctex [auctex@gnu.org<mailto:auctex@gnu.org>] Subject: Re: [AUCTeX] texlive 2014 On 08/10/2014 01:03 AM, Mosè Giordano wrote: > 2014-08-10 0:55 GMT+02:00 Ernst Reissner > <mailto:rei3...@arcor.de>: >> On 08/10/2014 12:41 AM, Mosè Giordano wrote: >>> 2014-08-10 0:32 GMT+02:00 Ernst Reissner >>> <mailto:rei3...@arcor.de>: >>>> Hi Mosè, >>>>> Hi Ernst, >>>>> >>>>> 2014-08-10 0:04 GMT+02:00 Ernst Reissner >>>>> <mailto:rei3...@arcor.de>: >>>>>> Hi All, >>>>>> right now i found out, >>>>>> that auctex does not yet work with newest texlive 2014. >>>>>> Who can help? Maybe only a tiny problem. >>>>>> Greetings, >>>>>> Ernst >>>>> What do you mean by "auctex does not yet work with newest texlive >>>>> 2014"? Did you use other TeX Live versions before switching to 2014? >>>>> Can you compile your documents from the terminal but not from AUCTeX? >>>>> Please add more information, I have no problem with AUCTeX and TeX >>>>> Live 2014. >>>>> >>>> Oh sorry, I made a mistake configuring auctex. >>>> Now i have another problem: >>>> emacs looks fine with all menus expected for auctex. >>>> When trying to tex >>>> ctrl c-l yields >>>> >>>> >>>> Running `LaTeX' on `l2r' with ``latex -interaction=nonstopmode "\input" >>>> l2r.tex'' >>>> /bin/sh: latex: command not found >>>> >>>> LaTeX exited abnormally with code 127 at Sun Aug 10 00:30:04 >>>> >>>> although switching to directory with l2r.tex and issuing latex >>>> -interaction=nonstopmode "\input" l2r.tex on the command line, there is >>>> no problem. >>>> >>>> What's wrong here? >>> Are you sure your *tex binaries are in the PATH environment variable? >>> Try restarting your system if you have just changed some settings. >>> Usually you don't need to configure anything inside AUCTeX, if a TeX >>> distribution is properly installed. >>> >>> Bye, >>> Mosè >>> >> To tell you the truth, i am not. >> I right now added >> >> (getenv "PATH") >> (setenv "PATH" >> (concat >> "/usr/local/texlive/2014/bin/x86_64-linux" ":" >> (getenv "PATH"))) >> >> to my .emacs-file and it seems to work. >> "/usr/local/texlive/2014/bin/x86_64-linux" is the location of my >> tex-binaries. >> I wonder about this is necessary, because i also added this to the path >> of my shell to run latex and pdflatex and others >> on the command line. > How do you add that directory to your PATH for your shell (which > shell?)? One should use a .profile file or another file which is > sourced at the system startup. > >> Do you think, i found a solution or is it just a hack? > You found a solution but this should work also without changing the > PATH within Emacs: if the PATH is properly set in the system, Emacs > will be able to find latex itself. > > Bye, > Mosè > > PS: please keep the AUCTeX mailing list in CC, this may be useful for > other people out there. > Yes, Mosè I have doubts. I use bash. Consequently, in .bashrc I wrote export PATH=/usr/local/texlive/2014/bin/x86_64-linux::$PATH where is some other segment of path and /usr/local/texlive/2014/bin/x86_64-linux is the location of the tex-binaries. As i wrote earlier, when trying to latex from within emacs using auctex, the m
Re: [AUCTeX] texlive 2014
See my other answer. The important thing here is how exactly you start emacs. >From the command line or via a menu or keyboard shortcut It will work from the command line but not from a menu. Emacs does not use the bash shell when making system calls. -Original Message- From: Ernst Reissner [rei3...@arcor.de] Received: søndag, 10 aug. 2014, 1:21 To: Mosè Giordano [m...@gnu.org]; auctex [auctex@gnu.org] Subject: Re: [AUCTeX] texlive 2014 On 08/10/2014 01:03 AM, Mosè Giordano wrote: > 2014-08-10 0:55 GMT+02:00 Ernst Reissner : >> On 08/10/2014 12:41 AM, Mosè Giordano wrote: >>> 2014-08-10 0:32 GMT+02:00 Ernst Reissner : Hi Mosè, > Hi Ernst, > > 2014-08-10 0:04 GMT+02:00 Ernst Reissner : >> Hi All, >> right now i found out, >> that auctex does not yet work with newest texlive 2014. >> Who can help? Maybe only a tiny problem. >> Greetings, >> Ernst > What do you mean by "auctex does not yet work with newest texlive > 2014"? Did you use other TeX Live versions before switching to 2014? > Can you compile your documents from the terminal but not from AUCTeX? > Please add more information, I have no problem with AUCTeX and TeX > Live 2014. > Oh sorry, I made a mistake configuring auctex. Now i have another problem: emacs looks fine with all menus expected for auctex. When trying to tex ctrl c-l yields Running `LaTeX' on `l2r' with ``latex -interaction=nonstopmode "\input" l2r.tex'' /bin/sh: latex: command not found LaTeX exited abnormally with code 127 at Sun Aug 10 00:30:04 although switching to directory with l2r.tex and issuing latex -interaction=nonstopmode "\input" l2r.tex on the command line, there is no problem. What's wrong here? >>> Are you sure your *tex binaries are in the PATH environment variable? >>> Try restarting your system if you have just changed some settings. >>> Usually you don't need to configure anything inside AUCTeX, if a TeX >>> distribution is properly installed. >>> >>> Bye, >>> Mosè >>> >> To tell you the truth, i am not. >> I right now added >> >> (getenv "PATH") >> (setenv "PATH" >> (concat >> "/usr/local/texlive/2014/bin/x86_64-linux" ":" >> (getenv "PATH"))) >> >> to my .emacs-file and it seems to work. >> "/usr/local/texlive/2014/bin/x86_64-linux" is the location of my >> tex-binaries. >> I wonder about this is necessary, because i also added this to the path >> of my shell to run latex and pdflatex and others >> on the command line. > How do you add that directory to your PATH for your shell (which > shell?)? One should use a .profile file or another file which is > sourced at the system startup. > >> Do you think, i found a solution or is it just a hack? > You found a solution but this should work also without changing the > PATH within Emacs: if the PATH is properly set in the system, Emacs > will be able to find latex itself. > > Bye, > Mosè > > PS: please keep the AUCTeX mailing list in CC, this may be useful for > other people out there. > Yes, Mosè I have doubts. I use bash. Consequently, in .bashrc I wrote export PATH=/usr/local/texlive/2014/bin/x86_64-linux::$PATH where is some other segment of path and /usr/local/texlive/2014/bin/x86_64-linux is the location of the tex-binaries. As i wrote earlier, when trying to latex from within emacs using auctex, the message was: Running `LaTeX' on `l2r' with ``latex -interaction=nonstopmode "\input" l2r.tex'' /bin/sh: latex: command not found ok then i found, that one can change the shell and i wondered whether this is the problem. The result was: Running `LaTeX' on `l2r' with ``pdflatex -interaction=nonstopmode "\input" l2r.tex'' /bin/bash: pdflatex: command not found and as you see: i managed to change shell and i also changed to pdflatex. And I removed the path from my .emacs-file. Still pdflatex -interaction=nonstopmode "\input" l2r.tex on the shell works fine. Whats wrong now?! Greetings, Ernst ___ 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] texlive 2014
It souls like one if those cases where a person have added a path change to ".bashrc" and then started emacs via a menu. That will not work and emacs will not find latex. Add it to ".profile" instead and lig out and in again, then it works. That ".bashrc" advise is really annoying -Original Message- From: Mosè Giordano [m...@gnu.org] Received: søndag, 10 aug. 2014, 1:04 To: Ernst Reissner [rei3...@arcor.de]; auctex [auctex@gnu.org] Subject: Re: [AUCTeX] texlive 2014 2014-08-10 0:55 GMT+02:00 Ernst Reissner : > On 08/10/2014 12:41 AM, Mosè Giordano wrote: >> 2014-08-10 0:32 GMT+02:00 Ernst Reissner : >>> Hi Mosè, Hi Ernst, 2014-08-10 0:04 GMT+02:00 Ernst Reissner : > Hi All, > right now i found out, > that auctex does not yet work with newest texlive 2014. > Who can help? Maybe only a tiny problem. > Greetings, > Ernst What do you mean by "auctex does not yet work with newest texlive 2014"? Did you use other TeX Live versions before switching to 2014? Can you compile your documents from the terminal but not from AUCTeX? Please add more information, I have no problem with AUCTeX and TeX Live 2014. >>> Oh sorry, I made a mistake configuring auctex. >>> Now i have another problem: >>> emacs looks fine with all menus expected for auctex. >>> When trying to tex >>> ctrl c-l yields >>> >>> >>> Running `LaTeX' on `l2r' with ``latex -interaction=nonstopmode "\input" >>> l2r.tex'' >>> /bin/sh: latex: command not found >>> >>> LaTeX exited abnormally with code 127 at Sun Aug 10 00:30:04 >>> >>> although switching to directory with l2r.tex and issuing latex >>> -interaction=nonstopmode "\input" l2r.tex on the command line, there is >>> no problem. >>> >>> What's wrong here? >> Are you sure your *tex binaries are in the PATH environment variable? >> Try restarting your system if you have just changed some settings. >> Usually you don't need to configure anything inside AUCTeX, if a TeX >> distribution is properly installed. >> >> Bye, >> Mosè >> > > To tell you the truth, i am not. > I right now added > > (getenv "PATH") > (setenv "PATH" > (concat > "/usr/local/texlive/2014/bin/x86_64-linux" ":" > (getenv "PATH"))) > > to my .emacs-file and it seems to work. > "/usr/local/texlive/2014/bin/x86_64-linux" is the location of my > tex-binaries. > I wonder about this is necessary, because i also added this to the path > of my shell to run latex and pdflatex and others > on the command line. How do you add that directory to your PATH for your shell (which shell?)? One should use a .profile file or another file which is sourced at the system startup. > Do you think, i found a solution or is it just a hack? You found a solution but this should work also without changing the PATH within Emacs: if the PATH is properly set in the system, Emacs will be able to find latex itself. Bye, Mosè PS: please keep the AUCTeX mailing list in CC, this may be useful for other people out there. ___ 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