1

if I use:

\includegraphics{Graph}

the image will show up, but not if I use

\begin{figure}
\includegraphics{Graph}
\end{figure}

Any idea why? Missing package? I need it because in the figure I will add the caption and label...

Thanks

Minimal example:

\documentclass[twoside]{article}
\usepackage[utf8]{inputenc} % Use 8-bit encoding that has 256 glyphs
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
\usepackage{multicol} % Used for the two-column layout of the document
\usepackage{graphicx}
\begin{document}
\begin{multicols}{2} % Two-column layout throughout the main article text
 I add the figure.
\begin{figure}
 \includegraphics{Graph}
\end{figure}
% \includegraphics{Graph} % with this would work
\end{multicols}
\end{document}

Solution:

Don't use begin and and figure.

Use direct \includegraphics{Graph} and on a new line \captionof{figure}{the caption}\label{textorefer}

Thanks all for the help!!

0 Answers0