[AUCTeX] reftex

2008-01-10 Thread David Scott


This is not a request for help or explanation but a paean of praise for 
RefTeX. I just started to use it last night and can't believe how useful 
it is. How did I ever do without it?


Thanks developers!! And for AUCTeX as well!!

David Scott

_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Adding commands to Command menu

2007-12-11 Thread David Scott

On Tue, 11 Dec 2007, Ralf Angeli wrote:


* David Scott (2007-12-11) writes:


(eval-after-load "tex"
   '(add-to-list 'TeX-command-list
 '("gsview" "start %s.ps" TeX-run-shell t t) t))

The first of these works but the second simply creates cmd.exe window and
fails to run gsview on the postscript file.


Does it work if you use "start \"\" %s.ps"?



Yes and no.

Firstly noting appears to happen for quite some time. Then gsview does 
start with the required file, but there is also a message from cmd.exe 
saying that the file "myfile.ps" cannot be found. (While it is just being 
displayed---isn't Windows simply a wonderful operating system?)


Why does the addition of \"\"  make a difference? I understand it adds in 
quotes.


David Scott 
_

David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


[AUCTeX] Adding commands to Command menu

2007-12-10 Thread David Scott


I have recently moved over from XEmacs to Emacs on a Windows XP.
I am using the prepared installation from Vincent Goulet available at 
http://vgoulet.act.ulaval.ca/en/ressources/emacs/


This uses Emacs 22.1.1 (i386-mingw-nt5.1.2600) and AUCTeX 11.84.
It also includes the latest ESS and thus supplies pretty much all my 
needs.


I had modified by previous XEmacs installation by adding some items to the 
Command menu using:


(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
'("ps2pdf" "ps2pdf12  %s.ps %s.pdf" TeX-run-command t t) 
t))



(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
'("gsview" "start %s.ps" TeX-run-shell t t) t))

The first of these works but the second simply creates cmd.exe window and 
fails to run gsview on the postscript file.


I am having a similar problem when I try and use Print when I have a 
postscript file or when I uses pdfTeX and then try and view the file: just 
the cmd.exe window appears but the viewer doesn't fire up.


I would also like to be able to use gsview to view pdf files rather than 
acrobat, but keep Acrobat Reader as my default viewer.


I tried

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
'("gsviewpdf" "gsview32 %s.pdf" TeX-run-shell t t) t))

for this which gave me two problems: in the minibuffer I got

gsviewpdf command: gsview32 "myfile".pdf

which just gave an error. If I edited the command in the minibuffer to

gsview32 "myfile.pdf"

gsview fired up ok but I could no longer use Emacs.

Any suggestions gratefully received.

David Scott

_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Installing without root permission

2007-08-03 Thread David Scott

On Tue, 31 Jul 2007, David Kastrup wrote:


David Scott <[EMAIL PROTECTED]> writes:


On Tue, 31 Jul 2007, David Kastrup wrote:


David Scott <[EMAIL PROTECTED]> writes:


I would like to install AUCTeX myself on a Unix machine where I don't
have root permission. I downloaded that latest version of AUCTeX, ran
.configure and make but make install failed. I couldn't see how to
have it install in a directory where I have write permission.



some stuff skipped here which shows I don't know what I am doing and 
haven't properly read the documentation




It might be possible to walk you all the way through a manual
installation, pointing out the instructions piece by piece that you
missed on the first go.  But I think it would be a waste of both your
and our time.

Please just download the precompiled XEmacs package from AUCTeX's
download page and use either the package manager to install it, or
just unpack it into your personal package directory.



This was very good advice. I did this and it all seems fine. Menus, 
buttons and syntax highlighting all are working as they should. Looks very 
nice.


Thanks for the assistance

David Scott

_____
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Installing without root permission

2007-07-31 Thread David Scott

On Tue, 31 Jul 2007, David Kastrup wrote:


David Scott <[EMAIL PROTECTED]> writes:


I would like to install AUCTeX myself on a Unix machine where I don't
have root permission. I downloaded that latest version of AUCTeX, ran
.configure and make but make install failed. I couldn't see how to
have it install in a directory where I have write permission.

I would welcome advice on this.


You already have it.  It is in the file INSTALL under

6 Installation for non-privileged users
***


It is also accessible from the manual as

(info "(auctex) Advice for non-privileged users")



OK. I should have read more of the INSTALL manual. However, I can't get 
the install done when following these instructions. I am getting a little 
further than before, but not succeeding.


Here is what I tried

Unzip and untar the .tar.gz file in ~/.xemacs/xemacs-packages
cd to ~/.xemacs/xemacs-packages/auctex-11/84
./configure --prefix=/home/staff/dscott
make
make install

Configure and make say the build is good. But make install fails with 
/usr/bin/install trying to create tex-site.el in 
/usr/share/emacs/site-lisp for which I have no write permission.


Thanks

David Scott


_________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


[AUCTeX] Installing without root permission

2007-07-30 Thread David Scott


I would like to install AUCTeX myself on a Unix machine where I don't have 
root permission. I downloaded that latest version of AUCTeX, ran 
.configure and make but make install failed. I couldn't see how to have it 
install in a directory where I have write permission.


I would welcome advice on this.

Thanks

David

_____
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Recognition of .bib files

2007-07-09 Thread David Scott

On Sat, 7 Jul 2007, Ralf Angeli wrote:


* David Scott (2007-07-07) writes:


On Fri, 6 Jul 2007, Ralf Angeli wrote:


* David Scott (2007-07-06) writes:


On Fri, 6 Jul 2007, Ralf Angeli wrote:


What's the output of `M-x locate-library RET bibtex RET'?


[No match]

Guess it is isn't finding bibtex. I did try and set the environment
variables without success previous to asking for help.


Are the files bibtex.el and bibtex.elc present in your XEmacs
installation?


It appears not. I did a search on bibtex.el without finding anything


Then you probably need to install the textools package or a sumo tar
ball.



Installed the textools package. It is all good. Sweet!

Thanks for you help.

David Scott
_________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Recognition of .bib files

2007-07-06 Thread David Scott

On Fri, 6 Jul 2007, Ralf Angeli wrote:


* David Scott (2007-07-06) writes:


On Fri, 6 Jul 2007, Ralf Angeli wrote:


What's the output of `M-x locate-library RET bibtex RET'?


[No match]

Guess it is isn't finding bibtex. I did try and set the environment
variables without success previous to asking for help.


Are the files bibtex.el and bibtex.elc present in your XEmacs
installation?


It appears not. I did a search on bibtex.el without finding anything

David Scott
_________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Recognition of .bib files

2007-07-05 Thread David Scott

On Fri, 6 Jul 2007, Ralf Angeli wrote:


* David Scott (2007-07-06) writes:


On Thu, 5 Jul 2007, Ralf Angeli wrote:


BibTeX mode is not part of AUCTeX or RefTeX.  And it would be easier to
identify the cause of the problem if you described what actually
happens, e.g. which mode the BibTeX file is opened with.


The mode is showing as Fundamental


What's the output of `M-x locate-library RET bibtex RET'?

--
Ralf



[No match]

Guess it is isn't finding bibtex. I did try and set the environment 
variables without success previous to asking for help.


David Scott


_________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Recognition of .bib files

2007-07-05 Thread David Scott

On Thu, 5 Jul 2007, Ralf Angeli wrote:


* David Scott (2007-07-05) writes:


I am running XEmacs 21.4.19, with AUCTeX 1.47 and RefTeX 1.34 on Windows
XP.

I can't get XEmacs to recognise a .bib file.


BibTeX mode is not part of AUCTeX or RefTeX.  And it would be easier to
identify the cause of the problem if you described what actually
happens, e.g. which mode the BibTeX file is opened with.

--
Ralf


The mode is showing as Fundamental

David Scott
_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


[AUCTeX] Recognition of .bib files

2007-07-04 Thread David Scott


I am running XEmacs 21.4.19, with AUCTeX 1.47 and RefTeX 1.34 on Windows 
XP.


I can't get XEmacs to recognise a .bib file. I have the following in my 
init.el:


(setq reftex-file-extensions
  '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
(setq TeX-file-extensions
  '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))

(add-hook 'LaTeX-mode-hook 'turn-on-reftex)

This particular incantation works on the linux machine I also use, but not 
on the Windows box.


Any suggestions?

David Scott

_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142,NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



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


Re: [AUCTeX] Creating ps and pdf files

2006-01-14 Thread David Scott

On Fri, 13 Jan 2006, Ralf Angeli wrote:


* David Scott (2006-01-13) writes:


When I come to try and view the dvi file though XEmacs looks for
xdvi. I need to use yap for this. Also I would like to be able to
create a postscript file using dvips and a pdf file using dvipdfm. I
can do these things using a command window but I would like to be able
to do them while still in XEmacs.


The PostScript file can be created with the "File" option in the
command menu (or via `C-c C-c File RET' if you prefer keyboard
access).


I just took a second look at this part of your reply and realised how to 
use the keyboard for any new commands (doh!) A bit long-winded though 
unless I am missing something. I can run dvipdfm with C-c C-c d TAB RET
which is sort of ok, but if I want to do more than one menu command it 
gets a bit tedious. So it would be nice if I could have commands on the 
menu which would do more than one step at a time.


Bear with me---I have never really weaned myself off vi.

David Scott
_________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
AucklandNEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]


Graduate Officer, Department of Statistics



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


Re: [AUCTeX] Creating ps and pdf files

2006-01-14 Thread David Scott

On Fri, 13 Jan 2006, David Kastrup wrote:


David Scott <[EMAIL PROTECTED]> writes:


I have just installed XEmacs and auctex on a windows machine running XP.
(XEmacs 21.4.18, auctex 11.82).

I am loading tex-site


The installation instructions tell you what to do instead.


so highlighting is working and I can run LaTeX on my TeX files with
either C-c C-c or from the Command menu.

When I come to try and view the dvi file though XEmacs looks for
xdvi. I need to use yap for this. Also I would like to be able to
create a postscript file using dvips and a pdf file using dvipdfm. I
can do these things using a command window but I would like to be
able to do them while still in XEmacs.

Can anyone help with these problems?


The installation instructions?  INSTALL.windows tells

11. With XEmacs, AUCTeX and preview-latex should now be active by
default.  With Emacs, activation depends on a working
`site-start.d' directory or similar setup, since then the startup
files `auctex.el' and `preview-latex.el' will have been placed
there.  If this has not been done, you should be able to load the
startup files manually with
 (load "auctex.el" nil t t)
 (load "preview-latex.el" nil t t)
in either a site-wide `site-start.el' or your personal startup file
(usually accessible as `~/.emacs' from within Emacs and
`~/.xemacs/init.el' from within XEmacs).

The default configuration of AUCTeX is probably not the best fit
for Windows systems.  You might want to additionally use
 (require 'tex-mik)
or
 (require 'tex-fptex)
in order to get more appropriate values for MikTeX and fpTeX,
respectively.

You can always use

 M-x customize-group RET AUCTeX RET

in order to customize more stuff, or use the `Customize' menu.



Thanks for this. I actually installed AUCTeX using the Tools>Packages 
menu, so never saw any INSTALL.windows instructions. I accept the RTFM 
advice however.


(require 'tex-mik) took me a lot of the way and Ralf 
Angeli's code allowed me to add a command to use dvipdfm. I added another 
command to fire up Acroread to view the resulting pdf file by modifying 
Ralf's command to be:

"AcroRd32 %s.pdf" TeX-run-shell
in the obvious place.

Actually I would like to be able to do a number of steps in one: for 
example, to run dvipdfm and fire up Acroread on it, or to run dvips and 
ps2pdf say for a prosper file. Any suggestions for this problem?


Alternatively I would be happy (perhaps happier) with keyboard commands in 
the manner of C-c C-c for running LaTeX. I have absolutely no clue how to 
do such a thing though. Any pointers gratefully received.


David 
_

David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
AucklandNEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]


Graduate Officer, Department of Statistics



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


[AUCTeX] Creating ps and pdf files

2006-01-12 Thread David Scott


I have just installed XEmacs and auctex on a windows machine running XP.
(XEmacs 21.4.18, auctex 11.82).

I am loading tex-site so highlighting is working and I can run LaTeX on my 
TeX files with either C-c C-c or from the Command menu.


When I come to try and view the dvi file though XEmacs looks for xdvi. I 
need to use yap for this. Also I would like to be able to create a 
postscript file using dvips and a pdf file using dvipdfm. I can do these 
things using a command window but I would like to be able to do them while 
still in XEmacs.


Can anyone help with these problems?

David Scott

_
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
AucklandNEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]


Graduate Officer, Department of Statistics



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