[texhax] Problem with figure

Michael Barr barr at math.mcgill.ca
Fri Dec 6 14:58:20 CET 2013


Thanks.  That worked, except I substituted \hrulefill for \dotfill.  I 
really cannot see what in the Companion would have indicated that they had 
to be defined.

Michael

On Fri, 6 Dec 2013, Philip Taylor wrote:

> 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
>

-- 
        Every gun that is made, every warship launched, every rocket fired
signifies, in the final sense, a theft from those who hunger and are not
fed, those who are cold and are not clothed. -Dwight D. Eisenhower


More information about the texhax mailing list