Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is /usr/bin/latex a link to pdfetex? I want plain 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
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Mon Jun 06, 2005 12:10 am    Post subject: Why is /usr/bin/latex a link to pdfetex? I want plain latex! Reply with quote

For some reason, perhaps after upgrading my tetex package i'm not sure, when i try to compile a tex file that includes eps figures it fails. This is because it does not like eps figures, even with the graphicx package included. After some further investigation it was revealed that in /usr/bin we have the following...

Code:

david@plasma4:pts/6:51 files 77Mb -> ls -alh /usr/bin/ | grep latex
lrwxr-xr-x   1 root   root        4 Dec 12  2003 elatex -> etex
lrwxr-xr-x   1 root   root        7 Jun  6 08:54 latex -> pdfetex
-rwxr-xr-x   1 root   root      967 Mar 17 09:39 latex2html
lrwxr-xr-x   1 root   root        7 Dec 12  2003 pdfelatex -> pdfetex
lrwxr-xr-x   1 root   root        7 Jun  6 08:54 pdflatex -> pdfetex
-rwxr-xr-x   1 root   root     8.3K Jul 27  2004 pod2latex
-rwxr-xr-x   1 root   root     1.5K Jun  6 08:51 pslatex


As you can see latex is just a link to pdfetex as is pdflatex. It was my understanding that if you wanted to make a pdf straight from a tex file you employ pdflatex but your images must not be eps format. I usually go the route of latex -> div > divpdf > pdf or something like that but now i cannot since i cannot find my latex command. Can someone help me find it before i go to the latex site and download it from there?

Thankyou.
_________________
If your life was a book, would anyone want to read it?
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Jun 06, 2005 12:13 am    Post subject: Reply with quote

weird, I use latex too (which is a link to pdfetex), but I get a dvi as output ...

try with the command tex
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Mon Jun 06, 2005 12:23 am    Post subject: Reply with quote

nope, tex does not work, i suspect tex is the low level compiler that does not know how to handle the latex macros. The weird part is that last week running latex at the command line gave me a dvi too, now it does not...
_________________
If your life was a book, would anyone want to read it?
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Mon Jun 06, 2005 12:28 am    Post subject: Re: Why is /usr/bin/latex a link to pdfetex? I want plain la Reply with quote

Hi,

isoaga wrote:
For some reason, perhaps after upgrading my tetex package i'm not sure, when i try to compile a tex file that includes eps figures it fails. This is because it does not like eps figures, even with the graphicx package included. After some further investigation it was revealed that in /usr/bin we have the following...


What version of tetex do you have installed? I'm running 2.0.5-r5 and /usr/bin/latex is pointing to /usr/bin/tex.

Best,

Alex
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Mon Jun 06, 2005 12:39 am    Post subject: Reply with quote

Code:

david@plasma4:pts/6:23 files 2.2Mb -> emerge -pv tetex

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     UD] app-text/tetex-2.0.2-r5 [3.0-r2] +X -debug -doc 85,040 kB

Total size of downloads: 85,040 kB


Looks like I am running version 3, think its masked ~x86, will try downgrading to 2.0.2-r5

Thanx
_________________
If your life was a book, would anyone want to read it?
Back to top
View user's profile Send private message
Jay Belanger
n00b
n00b


Joined: 01 Feb 2004
Posts: 37

PostPosted: Mon Jun 06, 2005 1:02 am    Post subject: Reply with quote

isoaga wrote:
Looks like I am running version 3, think its masked ~x86, will try downgrading to 2.0.2-r5

Thanx


You probably don't want to do that; tetex 2 is outdated.

latex is supposed to be linked to pdfetex; I think that's the LaTeX team's recommendation. It has a few features not present in tex. It should produce dvi output by default. So whatever the problem is, it isn't what latex is linked to.

Jay
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Mon Jun 06, 2005 1:05 am    Post subject: Reply with quote

well then, i don't know what to do then, currently i'm emerging tetex 2 so we will see if that helps, but if pdfetex is supposed to be the new standard how are we to include eps figures?
_________________
If your life was a book, would anyone want to read it?
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Mon Jun 06, 2005 1:13 am    Post subject: Reply with quote

After downgrading to tetex 2 the problem is gone and the link is now

Code:

david@plasma4:pts/6:24 files 2.3Mb -> ls -alh /usr/bin/ | grep latex
lrwxr-xr-x   1 root   root        4 Jun  6 10:18 elatex -> etex
lrwxr-xr-x   1 root   root        3 Jun  6 10:18 latex -> tex
-rwxr-xr-x   1 root   root      967 Mar 17 09:39 latex2html
lrwxr-xr-x   1 root   root        7 Jun  6 10:18 pdfelatex -> pdfetex
lrwxr-xr-x   1 root   root        6 Jun  6 10:18 pdflatex -> pdftex
-rwxr-xr-x   1 root   root     8.3K Jul 27  2004 pod2latex
-rwxr-xr-x   1 root   root      980 Jun  6 10:16 pslatex

_________________
If your life was a book, would anyone want to read it?
Back to top
View user's profile Send private message
Jay Belanger
n00b
n00b


Joined: 01 Feb 2004
Posts: 37

PostPosted: Mon Jun 06, 2005 3:56 am    Post subject: Reply with quote

isoaga wrote:
well then, i don't know what to do then, currently i'm emerging tetex 2 so we will see if that helps, but if pdfetex is supposed to be the new standard how are we to include eps figures?


It should work same as before. (In your case, it didn't, of course, but it was supposed to.) Were you getting pdf output? By default, latex should still give dvi output, but sometimes there are old config files that result in pdf output, and that could mess up eps files. The new latex should automatically set \pdfoutput to 0; I think some old config files check for undefined \pdfoutput, and perhaps that's what messes things up.

Jay
Back to top
View user's profile Send private message
rongten
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2003
Posts: 116
Location: N 50° 45.338' E 04° 23.139'

PostPosted: Wed Aug 10, 2005 1:02 pm    Post subject: Reply with quote

Hello,

maybe bug 98029 can help.
_________________
Nothing is ever easy
#1401 @ Associate FSF Membership
Join FSF as an Associate Member!(With Referrer)
What are you waiting for?
Back to top
View user's profile Send private message
Kovid
Apprentice
Apprentice


Joined: 25 Aug 2003
Posts: 217
Location: California, USA

PostPosted: Wed Nov 16, 2005 5:17 pm    Post subject: Reply with quote

This might be happening because you have a \usepackage[pdftex]{graphicx} in your tex file. Drop the pdftex and it will work.
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