GeneralBox around big figure with subfigures.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
arkara
Posts: 9
Joined: Mon Nov 03, 2008 11:52 pm

Box around big figure with subfigures.

Post by arkara »

I am creating a big figure with sub-figures and can't put a box around it..
i try \fbox but it makes the sub-figures a very very long line..
here is my code..

Code: Select all

        \begin{figure}[H] %Αριθμητικά δεδομένα άσκησης Β17 με διαγράμματα..

        \vspace{-2cm}
        %\hspace{-2.6cm} 
        \subfloat[Μετατοπίσεις κόμβων $U_x$]
         {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Ux}}
        \subfloat[Μετατοπίσεις κόμβων $U_y$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Uy}}\\
        
        %\hspace{0.2cm} 
        \subfloat[Τάσεις $\sigma_{xy}$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Ex}}
        \subfloat[Παραμορφώσεις $\epsilon_x$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Ey}}\\
        
        %\hspace{-2.6cm} 
        \subfloat[Παραμορφώσεις $\epsilon_y$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Exy}}
        \subfloat[Παραμορφώσεις $\epsilon_{xy}$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Sx}}\\
        
        %\hspace{-2.6cm} 
        \subfloat[Τάσεις $\sigma_x$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Sy}}
        \subfloat[Tάσεις $\sigma_{y}$]
        {\includegraphics[width=0.5\linewidth,clip]{images/charts/B17-Sxy}}\\
        
        \end{figure}
if the labels, does not display right, it is because i use greek(i am greek :P)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Box around big figure with subfigures.

Post by Juanjo »

I can't test it now, but something like the following code may work:

Code: Select all

\begin{figure}
  \centering
  \fbox{%
  \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
       code for the subfigures comes here
  \end{minipage}}
\end{figure}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply