About
Shop
LaTeX
Free Software
Books
News
Contact
Blog


2.5 Terminal Or Command Prompt

Sometimes you may find that you need to use a command-line application. This is an application that doesn't have a graphical user interface. This isn't specific to TeX, but the TeX distribution comes with a number of them. In fact, front-ends (such as TeXWorks) run some of these applications for you when click on the typeset or build button.

Most operating systems provide a terminal or command prompt where you can type the command-line application name and any associated information. For example, Figure 2.1 shows a terminal running under Fedora on Linux.

Windows
To open the MSDOS Prompt, go to the Start menu, then “All Programs”, then “Accessories” and click on “MSDOS Prompt”.

Mac OSX
To open the Mac Terminal, go to your “Applications” folder, open “Utilities” and double click on “Terminal”.

Unix etc
The Terminal is usually located either in the “Applications” menu or in the “System Tools” subdirectory of the “Applications” menu.

Figure 2.1: A Terminal
 

Example:

One such command-line application you are likely to need is texdoc. This is mentioned in more detail in §1.1. Class and Package Documentation, but to use texdoc you need to open the terminal or command prompt as described above and type texdoc followed by a package or class name, for example:

texdoc scrbook
(see Figure 2.2) then press the Enter or Return return key symbol key.

Figure 2.2: Running texdoc From a Terminal
 

Other TeX-related command-line applications include pdflatex, bibtex, makeindex, xindy and kpsewhich.


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

Last modified: 2015-06-27.

The free resources on this site are funded by book sales, not by adverts. If you would like to help keep this site free of annoying third-party ads, please consider buying a book.

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Site Map FAQs Guestbook