[Tex/LaTex] the command prompt ? How to use it in Texmaker for package installation using “kpsewhich” tool

texmaker

Someone is answering me to use a command (kpsewhich --help) in the command prompt. I have a stupid question: what is the "command prompt" and how can I use it in Texmaker?

Best Answer

As Sigur pointed out :

On Windows (Command Prompt): http://en.wikipedia.org/wiki/Command_Prompt

Opening Command Prompt on Windows: press the Windows key (that one with the logo) + R to open the Run box. Then type cmd and hit enter or

http://windows.microsoft.com/en-us/windows-vista/open-a-command-prompt-window

On Linux (Terminal): http://en.wikipedia.org/wiki/Terminal_emulator

https://help.ubuntu.com/community/UsingTheTerminal

Open Terminal In Texmaker:

Open TeXmaker-->Go to Tools menu--> Open Terminal (3rd from bottom) on Latest version: Texmaker 4.1.

Addendum for quick and powerful command line tools:

Verify a latex installation: Commandline/Terminal:

To verify/test a latex installation(TeXlive or MiKTeX) using commandline/terminal, one can use

latex small2e to get the small2e.dvi (or)

latex sample2e to get the sample2e.dvi

pdflatex small2e to get the small2e.pdf (or)

pdflatex sample2e to get the sample2e.pdf

pdflatex sample2e to get the sample2e.pdf

xetex opentype-info to get the opentype-info.pdf

Verify or install/detect an installation of class package using kpsewhich --help standalone path lookup tool

kpsewhich pkgname.sty and kpsewhich clsname.cls

Related Q & A : What is the quickest way to check whether I already have a given package?

Some command line tools on TeXLive distribution that work crossplatform(Windows/Linux/Mac)

tlmgr: TeX Live package manager

  • tlmgr update --self --all helps to keep updated distro with latest packages and bug fixes

  • tlmgr info pkg-name to know the version/revision of package and details etc

  • tlmgr install pkg-name to install a package

  • tlmgr Examples

texdoc/texdoctk : The powerfull documentation tool

Related Q Which books can I read via texdoc?

Remember commandline tools (CUI) instead of GUI's are more popular on Linux/Mac which really are life savers for debugging/scripting and much more. Even on windows it serves lot of advantages to verify any Editor specific bugs by cross checking on command line.

Note: On MiKTeX , I have no idea, anyone who can contribute are welcome to do so.