Align Figures: graphicx and tabular

📅 May 24, 2024   |   👁️ Views: 20




Votre navigateur ne supporte pas les PDFs. Voir le Lien de Téléchargement au dessous .



\documentclass{article}
\usepackage[margin=1cm]{geometry}
\usepackage{graphicx} % Required for inserting images
\usepackage{capt-of}  % Required for using \captionof

\begin{document}

\begin{figure}[h]
  \centering
  \begin{minipage}[t]{0.45\textwidth}
    \centering
    \raisebox{\dimexpr \topskip - \height}{\includegraphics[width=\linewidth]{example-image}}
    \caption{Fiche technique du panneau solaire}
    \label{fig:solar-panel-specs}
  \end{minipage}
  \hspace{0.01\textwidth}
  \begin{minipage}[t]{0.45\textwidth}
    \centering
    \raisebox{\dimexpr \topskip - \height}{
      \begin{tabular}{|p{6 cm}|p{2.5 cm}|}
        \hline
        Puissance crête & 260 Wc \\
        \hline
        Tension à vide & 38,1 V \\
        \hline
        Courant court-circuit & 8,98 A \\
        \hline
        Tension au point de puissance maximale (Vmppt) & 31,1 V \\
        \hline
        Courant au point de puissance maximale (Imppt) & 8,37 A \\
        \hline
        Dimension Module & 1650*992 mm \\
        \hline
      \end{tabular}
    }
    \captionof{table}{Caractéristiques du panneau utilisé JKM260P-60}
    \label{tab:panel-specs}
  \end{minipage}
\end{figure}

\end{document}

Related Courses, Exams, and Exercises


Course PDF:

📥 Download Align Figures: graphicx and tabular (PDF)