LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2014, 03:47 AM   #1
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Rep: Reputation: 25
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?
 
Old 05-10-2014, 04:43 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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
 
Old 05-11-2014, 04:00 AM   #3
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Original Poster
Rep: Reputation: 25
Thanks, the upgrade to 11.87 and the "su -" did the trick.
 
Old 05-11-2014, 05:27 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Excellent. Glad to be of help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error with slackbuild and auctex. Says I'm missing LaTeX. kevin01123 Slackware 9 07-07-2011 08:35 PM
emacs + auctex - opening output PDF inside emacs buffer coenvh Linux - Newbie 1 04-29-2010 05:52 AM
emacs/auctex: choose pdftex with file variables otoomet Linux - Software 0 02-04-2007 06:48 AM
how to make 'pdflatex' work in my emacs 'auctex-mode' HoreC Linux - Software 2 12-19-2004 02:33 PM
cannot insert latex environment using emacs (C-c C-e) with auctex parv Linux - Software 6 09-02-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration