Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emacs + LaTeX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Bullet Dodger
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 230

PostPosted: Sat Oct 20, 2007 10:45 pm    Post subject: Emacs + LaTeX Reply with quote

Hi,

I've just learned of LaTeX and tried to install LaTeX for emacs.
After doing a:
Code:

emerge -s latex

I think the package i'm looking for is dev-texlive/texlive-latex.
This was hard masked, so i unmasked it and got it installed. With no problems.
Next (i think) i need app-emacs/auctex (i think u can get latex previews in emacs which is what i want).
So an: emerge app-emacs/auctex -p gives me:
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-libs/libwww-5.4.0-r7  USE="ssl -mysql"
[ebuild  N    ] app-text/texlive-core-2007  USE="X -doc"
[ebuild  N    ] dev-texlive/texlive-latexrecommended-2007  USE="-doc"
[ebuild  N    ] app-text/tetex-3.0_p1-r4  USE="X Xaw3d -doc -lesstif -motif -neX
[ebuild  N    ] virtual/latex-base-1.0 
[ebuild  N    ] app-emacs/auctex-11.84-r1  USE="-preview-latex"
[blocks B     ] app-text/tetex (is blocking app-text/texlive-core-2007)



Then i did

Code:


emerge --unmerge app-text/tetex; emerge app-emacs/auctex

--- Couldn't find 'app-text/tetex' to unmerge.

>>> No packages selected for removal by unmerge
--- Invalid atom in /etc/portage/package.use: #
--- Invalid atom in /etc/portage/package.keywords: #
Calculating dependencies... done!

!!! Error: the app-text/tetex package conflicts with another package;
!!!        the two packages cannot be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked




Is it just cos there packages are hard masked?
Is is possible to get LaTeX + emacs (or vi (thinking of learning this)) working on gentoo?
What have i missed?
how can it get it all working together?


Cheers
Back to top
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Sun Oct 21, 2007 12:53 am    Post subject: Reply with quote

While texlive is the newer distribution of LaTeX, Gentoo is still stuck with tetex (which is no longer maintained but still works of course) because the transition is not so easy (I think). So uninstalling texlive and installing tetex etc. will probably solve your problem.
_________________
Please add [SOLVED] to your message title if your problem is solved.

Death to all blobs!
Back to top
View user's profile Send private message
nabla²
Apprentice
Apprentice


Joined: 17 May 2005
Posts: 280

PostPosted: Mon Oct 22, 2007 11:49 am    Post subject: Reply with quote

tobr wrote:
While texlive is the newer distribution of LaTeX, Gentoo is still stuck with tetex (which is no longer maintained but still works of course) because the transition is not so easy (I think). So uninstalling texlive and installing tetex etc. will probably solve your problem.
Yup, all the texlive ebuilds are very new and are even still without keywords for any architecture. tetex is enough for a beginner of latex. While using tetex, texlive will be tested and you can install that in some time. btw. you need the preview-latex useflag for auctex to get the previews.

PS: vi is evil. ;) (no flame war starting point intended)
_________________
Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64)
Back to top
View user's profile Send private message
Sleipnir
Guru
Guru


Joined: 20 Sep 2005
Posts: 372
Location: Germany

PostPosted: Mon Oct 22, 2007 12:40 pm    Post subject: Reply with quote

First of all this
Bullet Dodger wrote:

--- Invalid atom in /etc/portage/package.use: #
--- Invalid atom in /etc/portage/package.keywords: #

points to a problem in your package.{use|keywords} files. Try to solve this first.
Then try to do a
Code:

emerge --unmerge tetex

(without app-text/) and see if this works. Afterwards proceed with emerging auctex.
_________________
A)bort, R)etry, I)nfluence with large hammer.
Back to top
View user's profile Send private message
Bullet Dodger
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 230

PostPosted: Tue Oct 23, 2007 8:54 pm    Post subject: Reply with quote

Cheers

I unmerge texlive and emerge tetex and auctex and all went well.

I didn't use the preview-latex flag tho :x
Will have to do a re-emerge.

Haven't configured emacs to activate latex either as described in the auctex info pages.

I'm away from my gentoo box for 2 weeks now tho :(


Sleipnir wrote:
First of all this
Bullet Dodger wrote:

--- Invalid atom in /etc/portage/package.use: #
--- Invalid atom in /etc/portage/package.keywords: #

points to a problem in your package.{use|keywords} files. Try to solve this first.


I think this is because i tried to put some comments in these files starting the line with '#' and it doesn't like this.

Cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum