Comment encadrer un objet flottant ?

* Il faut utiliser le package 'float' qui définit le style boxed. Ce package est disponible sur ftp://ftp.inria.fr/pub/TeX/CTAN/macros/latex/contrib/float/. Voir la question 6.34 pour un exemple plus complet. Exemple : Dans le préambule : \floatstyle{ruled} \newfloat{nom-flottant}{placement}{ext-fic}[numerotation] dans le corps du document : \begin{nom-flottant} \end{nom-flottant} %%%% fin exemple %%%% * Si le titre accompagnant le flottant peut être à l'extérieur du cadre désiré, on peut alors utiliser \fbox dans la déclaration du flottant. Exemple : \begin{table} \begin{center} \fbox{ \begin{tabular}{cll} &1 case & 2 cases \\ &3 cases & 4 cases \\\hline Total~: & 4 cases & 6 cases \\ \end{tabular} } \end{center} \caption{Titre extérieur.} \end{table} %%%% fin exemple %%%% * M. Loreti propose également le package 'bigbox' ci-dessous : %%%% debut macro %%%% % I like to put boxes around all of my figures and algorithms in % reports, and finally came up with my 'bigbox' environment. It % makes a box as wide as the current text and sets the stuff % inside with a narrower width. % % USAGE: % % \begin{figure} (or {table}, or {center}, or ...) % \begin{bigbox} % \begin{tabbing} % ... % \end{tabbing} % \end{bigbox} % \caption{XXX} % \end{figure} % %%% BIGBOX - environment %%% %%% TOM SHEFFLER %%% Carnegie Mellon, Aug 1990 %%% %%% Make an environment for boxing a figure and setting it in %%% a narrower width. \newdimen\boxfigwidth % width of figure box \def\bigbox{\begingroup % Figure out how wide to set the box in \boxfigwidth=\hsize \advance\boxfigwidth by -2\fboxrule \advance\boxfigwidth by -2\fboxsep \setbox4=\vbox\bgroup\hsize\boxfigwidth % Make an invisible hrule so that the box is exactly this wide \hrule height0pt width\boxfigwidth\smallskip% % Some environments like TABBING and other LIST environments % use this measure of line size - \LINEWIDTH=\HSIZE-\LEFTMARGIN-\RIGHTMARGIN? \linewidth=\boxfigwidth } \def\endbigbox{\smallskip\egroup\fbox{\box4}\endgroup} %%%% fin macro %%%% Exemple : \documentclass[11pt]{report} \usepackage{graphics} \usepackage{bigbox} \usepackage{french} \pagestyle{empty} \begin{document} \begin{figure} \begin{bigbox} \includegraphics{../foobar.ps} \end{bigbox} \caption{Dessin.} \end{figure} \end{document} %%%% fin exemple %%%%