[Tex/LaTex] Installing Mathtools package in TexMaker

mathtools

I'm a newbie… and have started using TexMaker recently. I use it pretty sporadically (so I'm no expert). I found the following error while trying to install the package mathtools:
LaTeX Error: File `mathtools.sty' not found.

I don't have anything else (like MiKTeX etc) on my machine. Any suggestions on how to resolve this? If getting MiKTeX is the only way to do this, will I need to un-install TexMaker, install MiKTeX and then re-install TexMaker?

Best Answer

If you have installed MikTeX, TexLive or MacTex, your question is answered here or here. If not, you need to install TeXLive or MacTeX.

I think your problem is that you haven't installed LaTeX but just an editor.

You have to install LaTeX. There are different solutions how to install LaTeX, depending on which operating system you use.

Linux

Open an editor (Strg+Alt+T). Type following in:

sudo apt-get update
sudo apt-get install texlive-full

You can also download TexLive for Linux on your own:

wget ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/systems/texlive/Images/texlive2015-20150523.iso
sudo mount -o loop texlive2015-20150523.iso /mnt
cd /mnt
sudo ./install-tl

Windows

Download TexLive here and just install it the usual way.

Apple

Install MacTeX from here.


That should fix your problem. Your problem is, that you haven't installed the libraries for LaTeX, not installed LaTeX at all. You have just installed an editor, a user interface that helps you editing and writing LaTeX code. But you have nothing that compiles your code to a PDF.

Related Question