LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   setting up emacs + slackbuild auctex in 14.1 (https://www.linuxquestions.org/questions/slackware-14/setting-up-emacs-slackbuild-auctex-in-14-1-a-4175504550/)

cmk77 05-10-2014 03:47 AM

setting up emacs + slackbuild auctex in 14.1
 
In 14.0 installing auctex from slackbuilds and adding (load "auctex.el" nil t t) to .emacs was enough to get going. No such luck in 14.1:

There's no 14.1 slackbuild so I took the one from 14.0. Running the slackbuild as root it first told me that latex is not found, but that could be fixed by adding /usr/share/texmf/bin to root's path. However, installing the slackbuild and editing the .emacs file did not work, commands like C-c C-e are still unknown, also the additional menus don't show up.

Perhaps the game has changed and this is no longer the way to install auctex?

sycamorex 05-10-2014 04:43 AM

Hi there,

I have just tested it and everything works fine:

1. Grab the slackbuild script for 14.0 from slackbuilds.org
2. Grab the latest version of auctex
http://www.gnu.org/software/auctex/

3. Adjust the version numbers in slackbuild scripts (11.86 => 11.87) as well as MD5SUM

4. Make the slackbuild executable

5. Use a login shell: "su -"
No need to add anything to root's path. Whenever you build any slackbuild, it's strongly recommended to use a login shell ("su -" and not "su"). This will ensure all the necessary tools/libraries are in root's path.

6. Add the following to ~/.emacs:

Code:

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)


I have just successfully compiled and viewed a simple .tex file.

HTH

cmk77 05-11-2014 04:00 AM

Thanks, the upgrade to 11.87 and the "su -" did the trick.

sycamorex 05-11-2014 05:27 AM

Excellent. Glad to be of help.


All times are GMT -5. The time now is 11:44 AM.