Graphics, Figures & TablesFigures appearing only as boxes , No figure displayed

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
unnikrishnanbm
Posts: 1
Joined: Sat Sep 22, 2018 8:55 pm

Figures appearing only as boxes , No figure displayed

Post by unnikrishnanbm »

these are packages Im using

Code: Select all

% Set up the document
\documentclass[a4paper, 11pt, oneside]{Thesis}  % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
\usepackage{graphicx}
\graphicspath{Figures/}  % Location of the graphics files (set up for graphics to be in PDF format)

% Include any extra LaTeX packages required
\usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography
\usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments
\usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths
\hypersetup{urlcolor=blue, colorlinks=true}  % Colours hyperlinks in blue, but this can be distracting if there are many links.
\usepackage{subfig}

********************************************


\begin{figure}
\centering
\includegraphics[width=10cm]{111}
\caption{\label{fig:1}Pressure at point 1}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=0.2]{432.jpg}
\caption{Closed loop Control}
\label{Fig 1}
\end{figure}
\begin{figure}[!h]
\centering
\includegraphics[scale=.3]{112.jpg}
\caption{\label{fig:1}$v_x$ at point 1}
\end{figure}
output.png
output.png (10.73 KiB) Viewed 1234 times

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: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Figures appearing only as boxes , No figure displayed

Post by Stefan Kottwitz »

Welcome to the forum!

It seems that you used the draft option. It is not visible in the code part you posted, but that's incomplete anyway. Is this your full preamble? Look for the draft option to the class, or to the graphicx package. This option doesn't include images (for speed or saving ink) but draws only frames.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Figures appearing only as boxes , No figure displayed

Post by Johannes_B »

Welcome,

what Stefan said is the thing to look for. Something toggled the draft mode.

One other thing to mention: The template you are using is extremely outdated. If you just started, i recommend to use a minimal template. For more information, have a look at this.
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