Graphics, Figures & TablesCaptions without Numbers

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zjindrova
Posts: 4
Joined: Sun Jul 31, 2011 8:13 pm

Captions without Numbers

Post by zjindrova »

Hi,
I would like to have captions under picture, but without numbers.

Code: Select all

\usepackage{caption}
\begin{figure}[!h]
\centering
\includegraphics[width=\textwidth]{mapa.ps}
\caption{My picture.}
\end{figure}
\caption*{} does not work, it writes "*" befor my caption.
\captionsetup - it gives error, "Undefined control sequence."

Could you help me, please?
Thanks, Zuzka
Last edited by Stefan Kottwitz on Sun Jul 31, 2011 9:50 pm, edited 1 time in total.

Recommended reading 2024:

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

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

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

Re: Captions without Numbers

Post by Stefan Kottwitz »

Hi Zuzka,

welcome to the board!
Do you get any error or warning? Perhaps post your .log file here as attachment to a post. It seems like the caption package is not enabled. You could also show your preamble here.

Stefan
LaTeX.org admin
zjindrova
Posts: 4
Joined: Sun Jul 31, 2011 8:13 pm

Captions without Numbers

Post by zjindrova »

Code: Select all

\documentclass[12pt, a4paper]{article}
\usepackage{graphicx}
\usepackage[cp1250]{inputenc}
\usepackage[czech]{babel}
\usepackage{caption}
\begin{document}
\def\figurename{} %I do not have "Fig." at least... but the number remains
\begin{figure}[!h]
\centering
\includegraphics[width=\textwidth]{mapa.ps}
\caption*{map}
\captionsetup{} %this makes problem
\end{figure}
\end{document}
Package: caption v1.4b <1995/04/05> (Harald Sommerfeldt)
Undefined control sequence.
?

I downloaded an old version of caption package? Could that be the problem? But I cannot find newer.
Last edited by Stefan Kottwitz on Sun Jul 31, 2011 10:11 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Captions without Numbers

Post by Stefan Kottwitz »

That's correct. The current version is 3.1m. You can get it here from CTAN. Or install it using your TeX distribution or operating system repositories, if there's package management.

Stefan
LaTeX.org admin
zjindrova
Posts: 4
Joined: Sun Jul 31, 2011 8:13 pm

Re: Captions without Numbers

Post by zjindrova »

latex.exe: cannost start MiKTeX package manager.
Latex error - File caption.sty not found

I downloaded it, but it needs caption.sty and that is what I did not find - the new version of caption.sty.
Or I do not know, how to install the package. All the time, I just downloaded all files, which it wanted. I do not know how to do it through LEd.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Captions without Numbers

Post by Stefan Kottwitz »

Follow the link to CTAN which I wrote in my last post.

Also, you can start the MiKTeX package manager using the Windows start menu, or by Start/Run, type cmd and in the command shell type mpm.

Stefan
LaTeX.org admin
zjindrova
Posts: 4
Joined: Sun Jul 31, 2011 8:13 pm

Re: Captions without Numbers

Post by zjindrova »

Stefan,
thank you for your help. I just did not know how to install packages, funny :) Now it works!

Zuzka
Post Reply