TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install a new document class style in Texmaker for a scientific journal. There is any direct way to install on Texmaker?

This post discusses How can I manually install a package on MiKTeX (Windows)?, but I want to know if MiKTeX could update (automatically) document class, or is just able to update packages?

share|improve this question

closed as unclear what you're asking by Ruben, Papiro, Svend Tveskæg, Sean Allred, Jesse Jul 22 '15 at 2:31

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

If you have only a cls file and only you will use it you can save it in the same folder as your tex document. TeX will find it there. – Sigur Nov 12 '13 at 21:37
Probably I am not being clear with my question. I want to know if MikTex is capable of automatically install a document class, using Texmaker. If I got it right you are suggesting to do it manually. – Emanuel Nov 13 '13 at 9:23
In the end, class files are just files – same as packages. Yes, MiKTeX can install them 'automatically' and keep them up-to-date (not automatic without some fiddling). – Sean Allred Jul 22 '15 at 1:50
up vote 3 down vote accepted

The editor (TeXMaker) is irrelevant to the question.

In MiKTeX settings, if you chose "Install missing packages on the fly", it means that MiKTeX will do automatic installation for any file requested during compilation that is in its file name database.

More clearly, if you're running (pdf|xe|lua)(la)tex etc., and the engine tries to load a file that is not on the computer, MiKTeX will check the file name database online. If it finds the file, it interrupts the compilation and downloads the package containing that file.

If you type kpsewhich --help in the command prompt, it will give you a list of all the file types it handles. (I don't know if automatic package installation works for all of them.)

So yes, packages, classes and fonts etc. can be installed on the fly.

There is also a handy trick that you can use. If you want to install a specific package without opening the Package Manager, you can usually do

kpsewhich <package-name>.sty

or .pdf for the documentation and it will automatically download the package.

share|improve this answer
I have "Install missing packages on the fly" checked and it normally works all the time, even for classes. However, for this komacv class, something is going haywire. Not only does it not install on the fly, even when I put it in the required directory of C:\Program Files (x86)\MiKTeX 2.9\tex\latex\komacv and paste the .cls file there, or even in the place where I am writing the file, it keeps saying "File: komacv.cls not found". Any ideas? – Fahim Abdullah Jun 23 '15 at 19:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.