LaTeX forum ⇒ AUCTeXConfiguring 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?

Postby pooja » Wed Oct 01, 2014 6:08 pm

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:
  1. 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:
  1. -Emacs
  2. |- .emacs.d
  3. | |- auto-save-list
  4. | |- server
  5. | |init.el
  6. |+ doc %(AUCTeX's documentation)
  7. |- emacs-24.2
  8. | |+ bin
  9. | |+ etc
  10. | |+ info
  11. | |+ leim
  12. | |+ lisp
  13. | |+ site-lisp
  14. | | BUGS
  15. | | COPYING
  16. | | README
  17. | | README.W32
  18. |- info
  19. | |auctex.info
  20. | |auctex.info-1
  21. | |auctex.info-2
  22. | |dir
  23. | |preview-latex.info
  24. |- site-lisp
  25. |- 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
(14.6 KiB) Downloaded 159 times
emacs_warning.jpg
emacs warnings
emacs_warning.jpg (103.1 KiB) Viewed 6175 times
Last edited by pooja on Sun Oct 05, 2014 11:14 am, edited 1 time in total.

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

Postby pooja » Sun Oct 05, 2014 11:13 am

Can anyone please help me configure AUCTex please? Which directory is best suited to install EMACS in (and therefore AUCTeX too)?
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?
  1. HOME — C:/Program Files/Emacs/
  2. PATH — C:\Program Files\Aspell\bin\;C:\Program Files\gs\gs9.09\bin\;C:\Program Files\SumatraPDF\;


Please see the included snapshot.
Attachments
environment_variables1.JPG
environment variables of Control Panel
environment_variables1.JPG (78.41 KiB) Viewed 6057 times

User avatar
Johannes_B
Site Moderator
Posts: 3725
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Oct 05, 2014 11:35 am

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.

If this doesn't help you, you can ask our friends over at TeX.SX. Please crosslink the questions.
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

Postby pooja » Sun Oct 05, 2014 4:04 pm

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.
Thank you for your help.

User avatar
Johannes_B
Site Moderator
Posts: 3725
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Oct 05, 2014 4:17 pm

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.


Return to “AUCTeX”

Who is online

Users browsing this forum: No registered users and 0 guests