1

I need to include figures in my document and i use the following code for that

\begin{figure}[h]  
    \centering  
    \includegraphics{QApic}  
    \caption{Figure One}  
    \label{QApic}  
\end{figure}

The figure appears with a black box around it. How can i modify so that the figure appears with no box around it?

Below is the entire structure

\documentclass[runningheads]{llncs} %runningheads adds headers with page numbers
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{url}
\usepackage{color}
\usepackage{lipsum}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\lstdefinestyle{myjava}{language=Java}
\lstset{style=myjava}

\title{Evaluation of xyz}
\begin{document}

\begin{abstract}
\end{abstract}

%\tableofcontents

\tableofcontents
\newpage

\section{Introduction}

\begin{figure}[h]  
    \centering  
    \includegraphics{QApic}  
    \caption{Figure One}  
    \label{QApic}  
\end{figure}

\section{Experiment}

\section{conclusion}

\end{document}
18
  • 4
    by default the above would produce no box. so any box is produced by code you have not shown. Commented Aug 23, 2016 at 13:43
  • 1
    @Alina, please update your question with the information, and make sure it is a full example that others can use as is, without having to add or change anything.
    – daleif
    Commented Aug 23, 2016 at 13:58
  • 5
    @Alina perhaps this one: \floatstyle{boxed}
    – daleif
    Commented Aug 23, 2016 at 13:58
  • 2
    @Alina \begin{figure}[htp]
    – egreg
    Commented Aug 23, 2016 at 14:09
  • 1
    [h] means do not put the float at the top of the page, the bottom of a page, or an a page of floats (as no t, b or p) so it gives latex almost no chance to place the figure so going to the end is quite likely. latex gives a warning and changes it to ht but even that is very restrictive. Commented Aug 23, 2016 at 14:15

0

Browse other questions tagged .