8

What i want

install LaTeX for Linux on Mint 14 OS

What i did

download LaTex from http://www.tug.org/texlive/acquire-netinstall.html

i installed this package: install-tl.zip

successfully installed it via terminal

Problem

Where is LaTeX on my laptop? i can't find it.

5
  • 2
    Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    May 10, 2013 at 15:16
  • 1
    Have a look at Verify a latex installation: Commandline/Terminal: May 10, 2013 at 18:33
  • TeXlive should have asked you where to install; anyway, a log is usually kept in the same dir where the install-tl script was: it's usually called install-tl.log and informs the base directories of your installation (they must be added to your PATH later). AFAIK TeXlive usually defaults them to /usr/share/.
    – henrique
    May 10, 2013 at 19:36
  • 3
    @henrique The vanilla TeX Live installer puts everything in /usr/local/texlive/<year>. Only package manager provided TeX distributions (such as for Debian or Fedora) put files in /usr/share.
    – egreg
    May 10, 2013 at 21:14
  • @egreg is absolutely right. The OP should check this answer
    – henrique
    May 10, 2013 at 22:34

4 Answers 4

6

For some *nix systems, you could use whereis command:

whereis - locate the binary, source, and manual page files for a command

whereis latex

Output example:

latex: /usr/bin/latex /usr/share/man/man1/latex.1.gz

This should work for TeX Live 2017 on Debian systems.


However, keep in mind:

The whereis utility checks the standard binary directories for the specified programs, printing out the paths of any it finds.

For example on MacOS as @egreg stated:

the whereis command only looks in the path provided by sysctl user.cs_path, which is /usr/bin:/bin:/usr/sbin:/sbin. So it doesn't find latex or any binary in the TeX Live distribution, which are installed under /usr/local/texlive//bin/.

So instead, try using which:

which -a latex

Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt.

3
  • 1
    Welcome to TeX.SX!
    – Bobyandbob
    Oct 7, 2018 at 17:34
  • @Bobyandbob Cheers, have a good day.
    – U-ways
    Oct 7, 2018 at 17:36
  • 1
    @U-ways Upvoted!
    – egreg
    Oct 7, 2018 at 21:29
5

First of all, you cannot see LaTeX like other fancy applications. In other words LaTeX installation does not include GUI.

If LaTeX is installed successfully, then you can simply call it from your terminal. To check if it is really installed, type this in the terminal:

$ latex -v

This should output the version information of installed LaTeX.

If that is successful, then the simplest way to typeset is

$ latex path/to/file-to-typeset.tex

This should generate file-to-typeset.dvi in the same directory in which .tex file exists.

Some text editors can call latex command inside (e.g. Emacs) so that you don't have to switch back and forth from the text editor to the terminal.

1
  • latex small2e should create small2e.dvi in any directory where the user has write access. (Or pdflatex small2e to get small2e.pdf.)
    – jon
    May 10, 2013 at 21:39
2

To locate binaries open the shell and type

$ whence latex 
8
  • 1
    What is this command? Do you mean which latex?
    – jon
    May 11, 2013 at 4:40
  • It is not "which"! The Unix command for finding binaries is "whence". The was no spelling mistake so I do not see where you read "which"? May 11, 2013 at 12:31
  • 12
    whence is actually a shell command (ksh), so it doesn't work for example on my Unix system with bash. which does work, since it's independent of the shell. It cannot find shell commands, in contrast to whence, but this doesn't matter here. (just commenting, I did not vote here)
    – Stefan Kottwitz
    May 11, 2013 at 13:41
  • @Stefan Kottwitz Point well taken! I use Korn shell so I am not familiar with bash. As a matter of fact the first thing that I do on MAC and Linux is switching the shell to Korn. May 11, 2013 at 13:55
  • @PredragPunosevac: man 1 which May 11, 2013 at 14:32
1

Find the installation result files in /usr/local/texlive. I highly recommend to read at the docs for post-installation steps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .