[Tex/LaTex] Installing packages with miktex 2.9

miktexpackages

I tried to install the package mathalfa using the package manager (admin), it supposed that clicking on the plus sign everything is done, but when I call the package in my tex file and use the commands that are part of that package, MiKTeX cannot compile it and it tells "undefined control sequence". What I need to do?

Best Answer

This usually happens because you did not refresh the database. To refresh the database of the packages, do the following:

  1. open MiKTeX options (from your start menu)

  2. In the General Tab (click on refresh FNDB).

  3. Recompile your file, it should work by now.

    • If you are running a portable version of MiKTeX, follow these procedures:

      1. In the Miktex folder, open the file named (miktex-portable.cmd)
      2. In the notification area, there will be a MiKTeX icon, right click on it and then choose MikTeX options.
      3. In the General Tab (click on refresh FNDB).
      4. Recompile your file, it should work by now.