How to convert LaTex to PDF using terminal?

I am trying to convert latex file (.tex) file into pdf format. I tried using pdflatex file_name.tex command from the terminal but terminal asks to enter file name again and again. The commands in the terminal are as

{This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
(preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./file_name.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
! LaTeX Error: File `spie.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name: }
1

1 Answer

Your LaTeX file needs the file spie.cls. Install the package texlive-publishers which provides this file.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like