[texhax] Problem with figure

Philip Taylor P.Taylor at Rhul.Ac.Uk
Fri Dec 6 14:22:25 CET 2013


Thorsten wrote this in LaTeX-Community.Org :

LaTeX provides the two macros \topfigrule and \botfigrule for this
purpose. Don't be irritated, the two commands apply in general to all
floats and not only figures.

Code: Select all  •  Open in writeLaTeX
    \documentclass[11pt,a4paper,english]{article}
    \usepackage[T1]{fontenc}
    \usepackage[latin1]{inputenc}
    \usepackage{babel}
    \usepackage{blindtext}

    \def\topfigrule{\vskip1ex\noindent\dotfill}
    \def\botfigrule{\noindent\dotfill\vskip1ex}

    \begin{document}
      \blindtext[4]

      \begin{figure}[!ht]
        \centering
        \rule{\linewidth}{0.75\linewidth}
        \caption{Dummy figure}\label{fig:dummy}
      \end{figure}

      \blindtext[3]
    \end{document}


The only restriction to their content is that it mustn't occupy vertical
space (or this must be compensable).

For floats appearing in the text you my need to do that manually.
Perhaps packages like float or floatrow can help in restyling floats.


Thorsten

It may provide clues.
Philip Taylor


More information about the texhax mailing list