General ⇒ Figures without caption
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Figures without caption
Hi,
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
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
Last edited by me_here_me on Wed Feb 07, 2007 4:56 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Figures without caption
Hi,
try the caption-package...
http://www.ctan.org/tex-archive/help/Ca ... ption.html
You can do something like this:
Regards
Kris
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
Last edited by Kris on Wed Feb 07, 2007 6:52 pm, edited 1 time in total.
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: Figures without caption
i have that package "caption" included in the MiKTex version that I am using. Bu when I try to include caption package in my document, the compiler complains about the missing .sty file.
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
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
even the webiste http://www.ctan.org/tex-archive/help/Ca ... ption.html
annouces that caption package is included with the Miktex.
can some one tell me how i can include caption package in my document
regards
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
Hi,
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
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
thanks all
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
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
Now my Graphs and figures are both labeled seperately. But they share the same numbering context:
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
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
Hi,
You can define a new floating environment (like figure) with the float-package
(http://tug.ctan.org/tex-archive/macros/ ... /float.pdf):
Regards
Kris
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
Last edited by Kris on Wed Feb 14, 2007 4:35 pm, edited 1 time in total.
Figures without caption
Have moved this to LaTeX > General, because it is not TeXnicCenter related 
