Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

With the caption-package I'm declaring the style of my table- and figure-captions:

\RequirePackage[singlelinecheck=false,
                listof=true,
                tableposition=top]{caption}%
\DeclareCaptionFont{dgcapfont}{\small\sffamily\raggedright}
\DeclareCaptionFont{dgclbfont}{\bfseries}
\captionsetup[table]{labelsep=colon,
                     labelfont=dgclbfont,
                     font=dgcapfont,
                     position=top,
                     skip=8\p@}%
\captionsetup[figure]{labelsep=colon,
                      labelfont=dgclbfont,
                      font=dgcapfont,
                      skip=4mm}%

But these declarements do not affect the captions within a hvfloat table or figure. Any ideas what to do?

share|improve this question

1 Answer 1

please be more specific because this works for me (your definition and an example from the doc):

\documentclass[12pt]{book}
\usepackage[singlelinecheck=false,
                listof=true,
                tableposition=top]{caption}%
\DeclareCaptionFont{dgcapfont}{\small\sffamily\raggedright}
\DeclareCaptionFont{dgclbfont}{\bfseries}
\captionsetup[figure]{labelsep=colon,
                      labelfont=dgclbfont,
                      font=dgcapfont,
                      skip=4mm}%
\usepackage{hvfloat}
\begin{document}

\hvFloat[%
     floatPos=htb,%
     capWidth=0.5,% of \columnwidth
     capPos=r,%
     capVPos=c,%
     objectPos=c]{figure}{\includegraphics{rose}}% or any other image
     [Caption beside object and vertically centered]{%
     Caption vertically centered right beside the float with a caption
         width of \texttt{0.5\textbackslash columnwidth} and \texttt{
         floatcapsep=5pt} (the default)}{fig:1}    
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.