[texhax] Floats and captions
Johan Glimming
glimming at kth.se
Sun Mar 27 15:40:59 CEST 2005
Hi
I am having some problems with floats. I use
\usepackage{floats,caption}
...
\newfloat{floatdefn}{def}{Definition}
\floatname{floatdefn}{Definition}
\makeatletter
\let\c at floatdefn\c at thm
\makeatother
and then
\newenvironment{floatdfn}[2][t]
{\begin{floatdefn}[#1]
\TU
\caption{(#2)}\smallskip}
{\BU\end{floatdefn}}
I have two problems:
1. How do I change the caption to be _over_ the content
of the float (\TU and \BU generates lines over and
under the float, I'd like the caption to be over
the top line in boldface, with numbers).
2. \let\c at floatdefn\c at thm
was intended to number floatdefns just like
theorems and definitinions using the thm counter.
However, now I am using the llncs.cls style and
suddenly I get a weird error from this line. I
was thinking maybe the counter behaves differently
or has a different name than "thm"?
Johan Glimming
More information about the texhax
mailing list