[Tex/LaTex] How to install (automatically) a new document class in Texmaker through MiKTeX?

document-classesinstallingmiktex

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?

Best Answer

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 suspends 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.

You can also install packages from the command line:

mpm --verbose --install <package>