Re: [AUCTeX] Emacs + Python

2015-07-09 Thread Joost Kremers

On Thu, Jul 09 2015, Jorge A. Alfaro-Murillo  
wrote:
> Hi Manuel!
>
> Manuel González Suárez writes:
>
>> Above all, I am quite newbie, but I work with Emacs (LaTeX, 
>> ConTeXt, etc.) some years ago, and I want to know how I have to 
>> set to work with the Emacs python mode. I would like to write 
>> code and run it within Emacs itself. Do I have to install a 
>> package? What I have to write in my .emacs?
>
> You do not need to install any extra package. Emacs (24.3 and 
> above) comes with python-mode that has everything you might need.

Still, you may want to check out elpy: 

docs at: 


-- 
Joost Kremers
Life has its moments

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


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Mosè Giordano
2015-07-09 13:17 GMT+02:00 Egon Kidmose :
>> In `TeX-command-query' AUCTeX does check if the bibliography file is newer 
>> than the
>> .bbl file, and in my case AUCTeX suggests indeed to run BibTeX after editing 
>> the
>> bibliography file.  Egon, what does
>>
>> M-: (LaTeX-bibliography-list) RET
>>
>> return in paper.tex buffer for you?
>
> Prints 'nil' in the minibuffer

This is a problem, you should get

(("IEEEabrv") ("bib/paper"))

Do you have file parsing enabled?  Do you get the same answer also
after issuing C-c C-n in the paper.tex buffer?

Bye,
Mosè

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


Re: [AUCTeX] Emacs + Python

2015-07-09 Thread Jorge A. Alfaro-Murillo
By the way, you are better off asking for these sort of thing at 
the emacs help list.


Best,
--
Jorge.


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


Re: [AUCTeX] Emacs + Python

2015-07-09 Thread Jorge A. Alfaro-Murillo

Hi Manuel!

Manuel González Suárez writes:

Above all, I am quite newbie, but I work with Emacs (LaTeX, 
ConTeXt, etc.) some years ago, and I want to know how I have to 
set to work with the Emacs python mode. I would like to write 
code and run it within Emacs itself. Do I have to install a 
package? What I have to write in my .emacs?


You do not need to install any extra package. Emacs (24.3 and 
above) comes with python-mode that has everything you might need.


You can read the commentary of the python mode to know everything 
you can do:


http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el

The only thing that you might want to add to your .emacs, if you 
use ipython, is:


(setq python-shell-interpreter "ipython"
 python-shell-interpreter-args "-i")

That's it =)

From a python buffer (any file that ends in .py) you can run 
python with C-c C-p and then switch to the python shell with C-c 
C-z. To run the code in a buffer use C-c C-c. Check more by 
reading the mode info with C-h m.


Best,
--
Jorge.


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


[AUCTeX] Emacs + Python

2015-07-09 Thread Manuel González Suárez
Hello friends.
Above all, I am quite newbie, but I work with Emacs (LaTeX, ConTeXt, etc.)
some years ago, and I want to know how I have to set to work with the Emacs
python mode. I would like to write code and run it within Emacs itself. Do
I have to install a package? What I have to write in my .emacs?
Excuse my bad English
Thank You
Manuel González
___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Egon Kidmose
Hi Tassilo and Mosè, 

> -Original Message-
> From: Mosè Giordano [mailto:m...@gnu.org]
> Sent: 9. juli 2015 12:42
> To: Tassilo Horn
> Cc: auctex; Egon Kidmose
> Subject: Re: [AUCTeX] AUCTeX doesn't run bibtex
> 
> Hi Tassilo,
> 
> 2015-07-09 12:27 GMT+02:00 Tassilo Horn :
> > Egon Kidmose  writes:
> >
> > Hi Egon,
> >
> >> As I recall I used to simply hit `C-c C-c` (currently bound to
> >> `TeX-command-master`) repeatedly until it said "view" in the
> >> minibuffer, and then AUCTeX would have taken care of running
> >> `pdflatex` and `bibtex` as needed.
> >
> > Yes, that's how it is intended.
> >
> >> I've now moved to a new machine - Still same OS (Linux Mint 17.1) and
> >> same `~/.emacs` (I keep it on github, but rely on el-get for e.g.
> >> AUCTeX)
> >>
> >> To my surprise AUCTeX doesn't pick up changes in bibtex file, but
> >> simply runs LaTeX and then View. Any suggestions as to why it doesn't
> >> realize the need to run BibTeX?
> >
> > I think you're a bit confused here.  BibTeX doesn't need to be run
> > when the bib-file changes, it needs to be run when a new citation is
> > added to the tex document.
> >
> > Well, actually it would need to be run when you edit an existing
> > bibtex entry which is cited somewhere in the document but that's hard
> > to detect.  What AUCTeX does to know when a bibtex run is in order is
> > to parse the (la)tex output to check if it complains about undefined
> > citations.  If so, then a bibtex run is due.

I agree with Mosè, but for completeness: 
Commenting out the ref, building, un-commenting the ref and finally building 
again still doesn't trigger BibTeX. 

> 
> In `TeX-command-query' AUCTeX does check if the bibliography file is newer 
> than the
> .bbl file, and in my case AUCTeX suggests indeed to run BibTeX after editing 
> the
> bibliography file.  Egon, what does
> 
> M-: (LaTeX-bibliography-list) RET
> 
> return in paper.tex buffer for you?

Prints 'nil' in the minibuffer

> 
> Bye,
> Mosè

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


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Tassilo Horn
Mosè Giordano  writes:

> In `TeX-command-query' AUCTeX does check if the bibliography file is
> newer than the .bbl file, and in my case AUCTeX suggests indeed to run
> BibTeX after editing the bibliography file.

Ups, then I revoke what I just said and claim the opposite! ;-)

Bye,
Tassilo

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


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Mosè Giordano
Hi Tassilo,

2015-07-09 12:27 GMT+02:00 Tassilo Horn :
> Egon Kidmose  writes:
>
> Hi Egon,
>
>> As I recall I used to simply hit `C-c C-c` (currently bound to
>> `TeX-command-master`) repeatedly until it said "view" in the
>> minibuffer, and then AUCTeX would have taken care of running
>> `pdflatex` and `bibtex` as needed.
>
> Yes, that's how it is intended.
>
>> I've now moved to a new machine - Still same OS (Linux Mint 17.1) and
>> same `~/.emacs` (I keep it on github, but rely on el-get for
>> e.g. AUCTeX)
>>
>> To my surprise AUCTeX doesn't pick up changes in bibtex file, but
>> simply runs LaTeX and then View. Any suggestions as to why it doesn't
>> realize the need to run BibTeX?
>
> I think you're a bit confused here.  BibTeX doesn't need to be run when
> the bib-file changes, it needs to be run when a new citation is added to
> the tex document.
>
> Well, actually it would need to be run when you edit an existing bibtex
> entry which is cited somewhere in the document but that's hard to
> detect.  What AUCTeX does to know when a bibtex run is in order is to
> parse the (la)tex output to check if it complains about undefined
> citations.  If so, then a bibtex run is due.

In `TeX-command-query' AUCTeX does check if the bibliography file is
newer than the .bbl file, and in my case AUCTeX suggests indeed to run
BibTeX after editing the bibliography file.  Egon, what does

M-: (LaTeX-bibliography-list) RET

return in paper.tex buffer for you?

Bye,
Mosè

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


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Tassilo Horn
Egon Kidmose  writes:

Hi Egon,

> As I recall I used to simply hit `C-c C-c` (currently bound to
> `TeX-command-master`) repeatedly until it said "view" in the
> minibuffer, and then AUCTeX would have taken care of running
> `pdflatex` and `bibtex` as needed.

Yes, that's how it is intended.

> I've now moved to a new machine - Still same OS (Linux Mint 17.1) and
> same `~/.emacs` (I keep it on github, but rely on el-get for
> e.g. AUCTeX)
>
> To my surprise AUCTeX doesn't pick up changes in bibtex file, but
> simply runs LaTeX and then View. Any suggestions as to why it doesn't
> realize the need to run BibTeX?

I think you're a bit confused here.  BibTeX doesn't need to be run when
the bib-file changes, it needs to be run when a new citation is added to
the tex document.

Well, actually it would need to be run when you edit an existing bibtex
entry which is cited somewhere in the document but that's hard to
detect.  What AUCTeX does to know when a bibtex run is in order is to
parse the (la)tex output to check if it complains about undefined
citations.  If so, then a bibtex run is due.

Bye,
Tassilo


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


[AUCTeX] AUCTeX doesn't run bibtex

2015-07-09 Thread Egon Kidmose
Hi all,

(Issue already on emacs.stackexchange.com, quite for a week now,
assume it's a dead end, hence posting here,
http://emacs.stackexchange.com/questions/13426/auctex-doesnt-run-bibtex )

I'm using using AUCTeX to write a IEEEtrans LaTeX document with a seperate 
BibTeX file.

As I recall I used to simply hit `C-c C-c` (currently bound to 
`TeX-command-master`) repeatedly until it said "view" in the minibuffer, and 
then AUCTeX would have taken care of running `pdflatex` and `bibtex` as needed.

I've now moved to a new machine - Still same OS (Linux Mint 17.1) and same 
`~/.emacs` (I keep it on github, but rely on el-get for e.g. AUCTeX)

To my surprise AUCTeX doesn't pick up changes in bibtex file, but simply runs 
LaTeX and then View. Any suggestions as to why it doesn't realize the need to 
run BibTeX?

Some details:
(Please ask if you need more)

* OS: Linux Mint 17.1 x64_64
* Emacs: GNU Emacs 24.3.1, from apt-get
* AUCTeX: from el-get, tag: release_11_88, commit: 5178ba6

Files, after `Clean All`:

.
├── bib
│   └── paper.bib
└── paper.tex

Files if I call `LaTeX`, `BibTex`, `LaTeX`, `LaTeX`:

.
├── bib
│   └── paper.bib
├── paper.aux
├── paper.bbl
├── paper.blg
├── paper.log
├── paper.pdf
└── paper.tex

Contents of `paper.tex`:

\documentclass[conference]{IEEEtran}
\begin{document}
\cite{ref}
\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,bib/paper}
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

Contents of `bib/paper.bib`:

@electronic{ref,
  author= "Someone",
  title = "Sometitle",
  url   = "http://test.com";,
  year  = "2000"
}


Thank you very much!

Egon Kidmose
Industrial PhD Student
---
Wireless Communication Networks (WCN) Section,
Department of Electronic Systems, Aalborg University
Room A4-203, Fredrik Bajers Vej 7, 9220 Aalborg Oest
Phone +45 61 78 29 04

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