Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-10 Thread Mosè Giordano
Hi Egon,

2015-07-10 10:06 GMT+02:00 Egon Kidmose e...@es.aau.dk:
 Spot on! - `C-c  C-n` (TeX-normal-mode)  fixed it :D
 Thanks a lot!

 Care to confirm if understand the issue correctly?
 1) AUCTeX relies on the results of parsing the *.tex files for this to work.
 2) In my case, the parsing was never done
 3) `TeX-normal-mode` triggers the parsing and stores the result in ./auto
 4) Restart emacs for unicorns and free candy everywhere!

 Regarding 2:
 Fixed it by adding this to .emacs.d :
 (setq TeX-parse-self t) ; Enable parse on load.
 (setq TeX-auto-save t) ; Enable parse on save.
 [ https://www.gnu.org/software/auctex/manual/auctex/Parsing-Files.html ]

 Any idea if it's problem on my end (my config/another mode interfering)?
 or is it the intended behavior that AUCTeX requires the above to be fully 
 functional?

Yes, AUCTeX requires file parsing enabled to be fully functional,
otherwise it's a basic editor.

 If this is indeed the intention then I'd would think that changing the 
 default of `TeX-parse-self` and `TeX-auto-save` to true would be a good idea:
 Things would work better out of the box, and those seeking performance 
 improvement could actively disable them.

David already replied on this point ;-)

Bye,
Mosè

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


Re: [AUCTeX] AUCTeX doesn't run bibtex

2015-07-10 Thread Egon Kidmose
Spot on! - `C-c  C-n` (TeX-normal-mode)  fixed it :D
Thanks a lot!

Care to confirm if understand the issue correctly?
1) AUCTeX relies on the results of parsing the *.tex files for this to work.
2) In my case, the parsing was never done
3) `TeX-normal-mode` triggers the parsing and stores the result in ./auto
4) Restart emacs for unicorns and free candy everywhere!

Regarding 2: 
Fixed it by adding this to .emacs.d :
(setq TeX-parse-self t) ; Enable parse on load.
(setq TeX-auto-save t) ; Enable parse on save.
[ https://www.gnu.org/software/auctex/manual/auctex/Parsing-Files.html ]

Any idea if it's problem on my end (my config/another mode interfering)?
or is it the intended behavior that AUCTeX requires the above to be fully 
functional?

If this is indeed the intention then I'd would think that changing the default 
of `TeX-parse-self` and `TeX-auto-save` to true would be a good idea:
Things would work better out of the box, and those seeking performance 
improvement could actively disable them. 

Once again: Thank you both very much for the assistance!

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 

 -Original Message-
 From: Mosè Giordano [mailto:m...@gnu.org]
 Sent: 9. juli 2015 20:13
 To: Egon Kidmose
 Cc: t...@gnu.org; auctex@gnu.org
 Subject: Re: [AUCTeX] AUCTeX doesn't run bibtex
 
 2015-07-09 13:17 GMT+02:00 Egon Kidmose e...@es.aau.dk:
  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] AUCTeX doesn't run bibtex

2015-07-10 Thread David Kastrup
Egon Kidmose e...@es.aau.dk writes:

 Spot on! - `C-c  C-n` (TeX-normal-mode)  fixed it :D
 Thanks a lot!

 Care to confirm if understand the issue correctly?
 1) AUCTeX relies on the results of parsing the *.tex files for this to work.
 2) In my case, the parsing was never done
 3) `TeX-normal-mode` triggers the parsing and stores the result in ./auto
 4) Restart emacs for unicorns and free candy everywhere!

 Regarding 2: 
 Fixed it by adding this to .emacs.d :
 (setq TeX-parse-self t) ; Enable parse on load.
 (setq TeX-auto-save t) ; Enable parse on save.
 [ https://www.gnu.org/software/auctex/manual/auctex/Parsing-Files.html ]

 Any idea if it's problem on my end (my config/another mode interfering)?
 or is it the intended behavior that AUCTeX requires the above to be
 fully functional?

 If this is indeed the intention then I'd would think that changing the
 default of `TeX-parse-self` and `TeX-auto-save` to true would be a
 good idea:
 Things would work better out of the box, and those seeking performance
 improvement could actively disable them.

The out-of-the-box configuration of AUCTeX should be suitable as a
default for installations.  People not having any use for TeX files will
be less than enthused when accidentally opening one will cause a large
amount of files to be searched and possibly information being written to
disk.

It's not like the AUCTeX manual does not start off right with that
information.  So in general we expect people to find that before they
find the bug reporting instructions...

-- 
David Kastrup

___
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 e...@es.aau.dk:
 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] AUCTeX doesn't run bibtex

2015-07-09 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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 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 t...@gnu.org:
  Egon Kidmose e...@es.aau.dk 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 Mosè Giordano
Hi Tassilo,

2015-07-09 12:27 GMT+02:00 Tassilo Horn t...@gnu.org:
 Egon Kidmose e...@es.aau.dk 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


[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