Graphics, Figures & TablesGraphics replaced by Box with Filename in

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
NFickett
Posts: 2
Joined: Sat Dec 08, 2012 10:21 pm

Graphics replaced by Box with Filename in

Post by NFickett »

For some reason, when I try to input a figure (.jpg, .png, or .eps) I am just getting a graphics box with the file name in it. (I am using PDFLaTeX with epstopdf). It looks like it is finding the file but not importing it or something.

Code: Select all

\documentclass[11pt,draft]{article}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{amsmath}
\usepackage{accents}
\usepackage{graphicx,epstopdf} 
\usepackage{amssymb}
\author{Nathanael Fickett}
\title{EXST 7039 - Final Exam}
\date{[today]}
\usepackage{fancyhdr}
\pagestyle{fancy} 
\fancyhead[C]{EXST 7039 - Final Exam }
\fancyhead[R]{Nathanael Fickett \\ \today}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\begin{enumerate}
\item Table for parts (a) and (b): \\
	{\begin{tabular}{l c c c} 
	\hline\noalign{\smallskip}
	Description & L-R Chi Square & DF & Prob$>$Chi Sq \\
	\hline \noalign{\smallskip}
	No Effect vs. Regression &	150.28096223 &	1 &	$ <$.0001 \\ 
	Regression vs. Separate Location (SL) &	0.4161522035 &	1 &	0.5189 \\
	SL vs. SL and Scale &	2.6016429793 &	2 &	0.2723 \\
	\hline %inserts single line
	\end{tabular}}
	\begin{itemize}
		\item[(a)] From line 3 in the the table above, the addition of a scale parameter to the model has a p-value of 0.2723, which is not significant.  Thus, it can be considered constant across yarn lengths.  \\
		\begin{center}
		\includegraphics[width=\linewidth]{./FE_1PPwithShape}
		\end{center}
	\end{itemize}
\end{enumerate}
\end{document}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Graphics replaced by Box with Filename in

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Just remove the draft option in the first line of your document. This option is for compiling without images.

Stefan
LaTeX.org admin
NFickett
Posts: 2
Joined: Sat Dec 08, 2012 10:21 pm

Re: Graphics replaced by Box with Filename in

Post by NFickett »

Thanks Stefan!
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Graphics replaced by Box with Filename in

Post by cgnieder »

Hi and welcome to the LaTeX community,

If you want to keep the draft option in general you can also “unset” it for graphicx by loading the latter with the final option:

Code: Select all

\documentclass[draft]{article}
\usepackage[final]{graphicx}

\begin{document}

\includegraphics{<filename>}

\end{document}
Regards
site moderator & package author
Post Reply