General ⇒ Figures without caption
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Figures without caption
I have a figure in PNG format that contains a graph. I want to use Graphs 1: rather then Figure 1: in the caption of that figure. How can i do that?
best wishes
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Figures without caption
try the caption-package...
http://www.ctan.org/tex-archive/help/Ca ... ption.html
You can do something like this:
Code: Select all
\documentclass{article}
\usepackage{caption}
\DeclareCaptionLabelFormat{graphs}{\textbf{Graphs~#2}}
\begin{document}
\begin{figure}
-placeholder-
\caption{This is the normal figure-caption...}
\end{figure}
\begin{figure}
\captionsetup{labelformat=graphs}
-placeholder-
\caption{This is a test caption for graphs-caption...}
\end{figure}
\end{document}
Kris
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: Figures without caption
I checked in the MikTex Manager tool and it lists caption as installed and files placed at C:\texmf\tex\latex
but when i explore that folder there is no folder or file for the caption package.
can i down load the .sty etc files from some site ??
best wishes
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: Figures without caption
annouces that caption package is included with the Miktex.
can some one tell me how i can include caption package in my document
regards
Re: Figures without caption
try to uninstall the caption-package in the package manager...
...and reinstall it again after that (or switch on the automatic
package installation in miktex).
Regards
Kris
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: Figures without caption
i had the quick version installed and it was not downloading the caption package automatically when required for some reason. Anyway, now i re-installed the complete version and it works kool.
thanks guys
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: Figures without caption
eg: they will appear like :
fig 1
fig 2
graph 3
fig 4
graph 5
I wnt some thing like the following:
fig 1
fig 2
graph 1
fig 3
graph2
regards
Figures without caption
You can define a new floating environment (like figure) with the float-package
(http://tug.ctan.org/tex-archive/macros/ ... /float.pdf):
Code: Select all
\documentclass{article}
\usepackage{float}
%...
\newfloat{graphic}{tbp}{lgr} % optional numbering with [section] or [chapter]
\floatname{graphic}{Graphic}
%...
\begin{document}
%...
\section{the start}
%...
\begin{figure}[htb]
the first figure...
\caption{a caption for the figure}
\end{figure}
%
\begin{graphic}[htb]
the first graphic...
\caption{a caption for the graphic}
\end{graphic}
%...
\end{document}
Kris
Figures without caption
