GeneralLots of Errors When Compiling From Linux Terminal

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
AtTheApogee
Posts: 1
Joined: Wed Oct 30, 2013 12:46 pm

Lots of Errors When Compiling From Linux Terminal

Post by AtTheApogee »

Hi all,

Have a bit of a strange issue. I am using the TeXworks LaTeX editor with pdfLaTeX. When I compile the document within the editor, it runs with no errors or warnings.

However, I opened a linux terminal in order to compile it from source (specifically to include my bibliography), as follows:

Code: Select all

me@mycomputer ~ $ latex myfile.tex
me@mycomputer ~ $ latex myfile.tex
me@mycomputer ~ $ bibtex myfile.aux
me@mycomputer ~ $ latex myfile.tex
However, when I run

Code: Select all

me@mycomputer ~ $ latex myfile.tex
... I get a LOT of errors in the output. For example, I get the following error for EVERY single figure in my document:

Code: Select all

! Undefined control sequence.
l.623 	\centering\includegraphics
                                 [width=0.7\textwidth]{fig.eps}
? ! Missing number, treated as zero.
<to be read again> 
                   ]
l.623 ...ring\includegraphics[width=0.7\textwidth]
                                                  {fig.eps}
? ! Illegal unit of measure (pt inserted).
<to be read again> 
                   ]
l.623 ...ring\includegraphics[width=0.7\textwidth]
                                                  {fig.eps}
? [6] [7]
As well as a whole bunch of overfull hbox errors:

Code: Select all

? 
Overfull \hbox (77.11243pt too wide) in paragraph at lines 1079--1079
 []\OT1/ptm/m/n/8 [height=1.25in,width=1in,clip=true,trim=0.1in 

Overfull \hbox (23.57703pt too wide) in paragraph at lines 1079--1079
 \OT1/ptm/m/n/8 0in,keepaspectratio]fig.eps 
! Undefined control sequence.
<argument> ...owidth }\centering \includegraphics 
                                                  [height=1.25in,width=1in,c...
l.1079 ...ctratio]{fig.eps}}]{Description}
                                                  
? 
Overfull \hbox (77.11243pt too wide) in paragraph at lines 1079--1079
 []\OT1/ptm/m/n/8 [height=1.25in,width=1in,clip=true,trim=0.1in 
Anyone have any idea why I get these errors running from the command line, but not when running from my latex editor?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Lots of Errors When Compiling From Linux Terminal

Post by localghost »

Error messages without the producing source code are senseless. Furthermore it is very unlikely that the errors depend on compilation from the terminal. For an adequate problem description a self-contained and minimal example is essential.


Best regards and welcome to the board
Thorsten
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Lots of Errors When Compiling From Linux Terminal

Post by Johannes_B »

Fix the errors first! Did you load all the packages needed? For example, you need to load graphicx.

Warnings are not as bad, but you should pay attention. You can set the draft-option to the documentclass, overfull boxes are then marked.

If you need any more help, please try to prepare a minimal working example
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply