image caption error

Added by Jose Briseño almost 5 years ago

Hey there. I am using AMC 1.4.0 on Ubuntu Linux distro. I am writing a quiz. I decided to include an image into a question with the following Latex format:

\includegraphics[scale=.5]{/home/monico/Proyectos-MC/test/images/circulofraccion.png}

I run the Latex program without any error. But, when I included the image caption

\caption{Prueba de texto al pie de la imagen}

The Latex program sent back the following error:

/source.tex:139:\caption outside float

What did I do wrong

Any help. Thanks in Advance


Replies (3)

RE: image caption error - Added by Rafael Rodriguez almost 5 years ago

Could you post the exact code used?
Best regards

RE: image caption error - Added by Jose Briseño almost 5 years ago

Hey there. I attach the latex file.
Thanks in Advance

file.txt (2.6 kB)

RE: image caption error - Added by Rafael Rodriguez almost 5 years ago

I believe you cannot use \caption outside a float environment (figure, table,...). Maybe you could try the caption package and \captionof instead.

(1-3/3)