## LaTeX forum ⇒ AUCTeX ⇒ Configuring AUCTeX in Windows 7 — environment variables?

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
pooja
Posts: 10
Joined: Thu Jul 12, 2007 7:31 pm

### Configuring AUCTeX in Windows 7 — environment variables?

Hello,
I'm a long-time user of LaTeX and having tried different editors over the years, I now want to start using AUCTeX in Windows 7 with TexLive distribution. I've followed different guides to properly configure EMACS + AUCTeX, including Joachim Schlosser's guide to solve Admin problems such as the following:
`error: The directory `~/.emacs.d/server' is unsafe `

I keep getting warnings regarding Admin privileges when I open EMACS as a simple User (without admin privileges). So far I haven't been able to successfully compile a single *.tex document with pdfLaTeX and display the pdf in an adjacent window. Can you help me fix the problem, please?

I have EMACS installed in C:/Program Files/Emacs/. In the same folder I have unzipped AUCTeX's archive. The whole folder tree looks like this:
```  -Emacs
|- .emacs.d
|     |- auto-save-list
|     |- server
|     |init.el
|+ doc %(AUCTeX's documentation)
|- emacs-24.2
|  |+ bin
|  |+ etc
|  |+ info
|  |+ leim
|  |+ lisp
|  |+ site-lisp
|  |  BUGS
|  |  COPYING
|- info
|  |auctex.info
|  |auctex.info-1
|  |auctex.info-2
|  |dir
|  |preview-latex.info
|- site-lisp
|- var
```

Please have a look at a snapshot of the EMACS warning window and my EMACS' init.el file (as a .txt file).
Attachments
init.el.txt
emacs config file
emacs warnings
emacs_warning.jpg (103.1 KiB) Viewed 12658 times
Last edited by pooja on Sun Oct 05, 2014 11:14 am, edited 1 time in total.

LaTeXguide.org • LaTeX-Cookbook.net

pooja
Posts: 10
Joined: Thu Jul 12, 2007 7:31 pm

### Configuring AUCTeX in Windows 7 — environment variables?

I've tried installing in C:/Program Files/Emacs/ , is this a wise choice?

The real trouble comes later on, when setting the environment variables' path-file. Should I write the following?
```HOME — C:/Program Files/Emacs/
PATH — C:\Program Files\Aspell\bin\;C:\Program Files\gs\gs9.09\bin\;C:\Program Files\SumatraPDF\;
```

Attachments
environment variables of Control Panel
environment_variables1.JPG (78.41 KiB) Viewed 12540 times

Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

### Configuring AUCTeX in Windows 7 — environment variables?

Hi pooja,

seems there are no Windows and Windows users around. All i can do is google the matter, but i can't test it.

Searching for auctex windows 7 leads me to a document by Uwe Siart. Installation von Emacs und AUCTeX unter Microsoft Windows.

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

pooja
Posts: 10
Joined: Thu Jul 12, 2007 7:31 pm

### Configuring AUCTeX in Windows 7 — environment variables?

Hello Johannes_B,
I was about to delete the question because I managed to install EMACS and AUCTeX in Win7 by following Joachim Schlosser's video tutorial on YouTube even though I don't understand German.

However I still have problems regarding the pdf viewer. Instead of opening SumatraPDF, the pdf is opened in Acrobat Reader which doesn't allow inverse/forward search between the source *.tex file and the output *.pdf file. The italian LaTeX community guide to EMACS' configuration in Windows suggests to use Sumatra PDF as it is the only one that allows inverse/forward search and this feature is very important to me. I tried following the guide's suggested settings for the .emacs file and SumatraPDF options but even after restarting EMACS, the pdf is viewed in Acrobat Reader and of course the synchronization doesn't work.

I already have both Ghostview and Gostscript installed in Win7 (and TeXmaker, which I'm clinging to until I can master EMACS).
Would it be possible to have the handbook you linked me to in ENGLISH, please? It would be really useful then.

Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

### Configuring AUCTeX in Windows 7 — environment variables?

Maybe Synctex and SumatraPDF in the Emacs Wiki can be of help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.