I have the following code, which works fine when package caption is inactive. However with caption the title of the "steckbrief" moves out of the box. What is it that caption changes that the title moves to the outside?
I had previously the boxedminipae environment gone into the \fs@my block but that produced overfull boxes. Removing the \fs@my block puts the caption below the factsheet.
Any help appreciated.
Kind regards
Bernhard
(this has been asked on comp.text.tex without any answer.)
\documentclass[fontsize=10pt,twoside,draft]{scrbook}
\usepackage[english,ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\selectlanguage{ngerman}
\usepackage[a4paper,textwidth=13.5cm,textheight=22cm]{geometry}
\usepackage{calc,boxedminipage2e,float, capt-of}
%\usepackage{caption}
\makeatletter
\newcommand\fs@my{%Caption im Rahmen
\let\@fs@capt\floatc@plain
\let\@fs@iftopcapt\iftrue%
\def\@fs@mid{}%
\def\@fs@pre{}%
\def\@fs@post{}%
}
\floatstyle{my}
\newfloat{factsheet}{hbtp}{los} % Steckbrief, Factsheet
\floatname{factsheet}{Factsheet}
\newlength{\figurewidth}\setlength{\figurewidth}{11.5cm}
\newcounter{stbr}
\newenvironment{FS}[3]%factsheet
{\begin{boxedminipage}{1\figurewidth}\centering%begindef
\captionof{figure}{\textbf{#2}}\label{fs:#3}%
\refstepcounter{stbr}
\begin{list}{}%
{\renewcommand\makelabel[1]{\bfseries\footnotesize{##1}\hfil}%
\settowidth\labelwidth{\makelabel{#1}}%
\setlength\leftmargin{\labelwidth+\labelsep}\footnotesize}%
}
{ \end{list}%enddefinition
\end{boxedminipage}%
}
\makeatother
\begin{document}
\begin{factsheet*}[b!]
\centering
\begin{FS}{Bildung und Ziel}%
{Thyrotropin"=Releasing Hormon}{trh}
\item [Gen]Chromosom: 3; Genort: 3q13.3-q21
\item [Sequenz]\textbf{p{EHP}-NH$_2$}
\item [Bildung und Ziel] TRH wird vor allem im{PVN} gebildet...
\end{FS}
\end{factsheet*}
\end{document}
figure
? caption is sensitive to this kind of new float, and therefore tries to do the right thing. But that assumes that what you are asking it to do makes sense. Here, it really doesn't.