Following the instructions in this page https://help.ubuntu.com/community/LaTeX , I installed TexLive, which needs some 1GB of space (I installed the texlive-full package). Yet, after installation, I don't seem to find any command that seems to represent the TexLive!! Is it the normal tex, latex, pdflatex, etc.? Well, I already had those before installing TexLive? So where was the 1GB installed? What about the packages? Where were they installed?
2 Answers
You could use kpathsea to check the locations.
Type this at the command prompt to get the main path of your TeX installation:
kpsewhich --var-value=TEXMFMAIN
kpsewhich can provide more information, just type kpsewhich --help to learn more about it.
Further you could use the which tool to locate executables:
which tex
You may also check the versions of TeX, pdfTeX, LaTeX etc.:
tex -version
latex -version
All can be done at the command prompt, i.e. within a terminal window.
Further there are of course package managing tools of your distribution for look-up which packages are installed - Synaptic, dpkg-query -l etc.
If you're still not sure: just go ahead, compile a LaTeX file. Afterwards read the first line of the .log file produced by LaTeX, within the same directory. The first line may look like:
This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (format=pdflatex 2010.6.25)
12 DEC 2010 16:47
So you know if you're using a current version. The package manager which you used for installation should have taken care of all, so texlive would be used. The questions 'What' and 'Where' can be answered by the mentioned kpsewhich, using various parameters, which does path look-up and file-look-up and presents the actually 'active' file.
- 231,401
-
-
@Rafid: did you try
kpsewhich? I would expect that the path name output would contain texlive and 2009, thus you would know what's installed and active. To learn about TEXMFMAIN and the other paths, typekpsewhich -all texmf.cnfwhich gives you the names of configuration files. Have a look into these files. – Stefan Kottwitz Dec 12 '10 at 15:52 -
I tried it, and changed to the directory given (which is /usr/share/texmf). What I see is: bibtex, context, doc, dvips, fonts, hbf2gf, ls-R, metafont, metapost, scripts, tex, tex4ht, web2c. However, in the parent directory (/usr/share) I do see: tex-common, texinfo, texlive-base, texlive-bin, texmf, texmf-texlive. I never found the folder 2009 by the way. So what you want to say is that I should go straight away and use latex, pdflatex, etc., and it should start seeing the packaged installed by texlive-full? – Rafid Dec 12 '10 at 16:41
-
2It looks like you have successfully installed TeXLive. You already had the basic tex commands before, I believe they are part of almost every linux install, since linux uses them to generate certain parts of its documentation. What you have installed with texlive-full is all the additional formats (for example context), latex packages, a lot of documentation, lots of fonts, and some additional supporting programs. Just go ahead and start using the various tex executables, everything you need should be installed. – Jan Hlavacek Dec 12 '10 at 16:55
-
1@Rafid: Like Jan said: go ahead... perhaps check the first line in the produced log file - I added information to my answer. – Stefan Kottwitz Dec 12 '10 at 17:11
-
@Jan, thanks for the clarification. @Stefan, thanks very much for the last comment, I tried it and this is the first line: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2010.12.12) 12 DEC 2010 18:56. So it is working fine :-) – Rafid Dec 12 '10 at 18:59
-
sudo apt-get install kpathseayieldsE: Couldn't find package kpathsea– isomorphismes Sep 09 '11 at 19:58 -
-
@Stefan Kottwitz How would I install and execute
kpathseafrom thetexlive-binaries*? – isomorphismes Sep 09 '11 at 22:23
If you installed texlive from the Ubuntu repositories, the executables are in /usr/bin while the documentation for the various packages are in /usr/share/doc/....
You may want to install the more updated version from the TeX Users Group, but then you must remember to add the path of the executables to your system then. Read the installation documentation for more information.
-
- I don't see 'texlive' in /usr/bin. And if I use whereis texlive (or tex-live), I get nothing! 2) What is TUG?
– Rafid Dec 12 '10 at 16:43
ubuntucommand). You compile you files with, for example,tex,latex,pdflatex,texexec(ConTeXt), etc. – Caramdir Dec 12 '10 at 17:08