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

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?

share|improve this question
en.wikipedia.org/wiki/Command_Prompt if you use Windows. If you use Linux, we call it Terminal en.wikipedia.org/wiki/Terminal_emulator – Sigur Nov 18 '13 at 14:06
Ah, on Windows, press the Windows key (that one with the logo) + R to open the Run box. Then type cmd and hit enter. – Sigur Nov 18 '13 at 14:07
Open TeXmaker-->Go to Tools menu--> Open Terminal (3rd from bottom) on Latest version: Texmaker 4.1 – texenthusiast Nov 18 '13 at 14:59
In an effort to make the Q clear, I have made an edit , hope this is what you are looking for ? include any more details to give clarity. – texenthusiast Nov 18 '13 at 15:19
Close Voters: The OP seems to be new, Please give him some time until the Q crosses the front roll, don't close immediately within 1 hr and in a hurry. The Q seems to be on on-topic (LaTeX Editor) and related command line approaches are very important and life saving for verifying installation/packages. – texenthusiast Nov 18 '13 at 15:21
up vote 6 down vote accepted

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


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


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.

share|improve this answer
also pdflatex ltxcheck – texenthusiast Jan 5 '15 at 14:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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