La tabla no se pudo alinear con el texto del párrafo

La tabla no se pudo alinear con el texto del párrafo

Tengo una tabla en mi documento pero parece realmente muy fea, ya que la tabla no está alineada verticalmente con el texto. Puedes ver la captura de pantalla y mi intento. ingrese la descripción de la imagen aquí

Intentar:

\mbox{}\vskip1cm
\begin{table}[t]
\centering\setcellgapes{3pt}\makegapedcells
\captionsetup{format=hang}
\setlength\tabcolsep{3.5pt}%\small
\begin{tabular}{|c|c|c|c|}
        \cline{2-4}
    \multicolumn{1}{c|}{} & \makecell{Application Layer\\Layer 7} & \makecell{Transport \& Network Layer\\Layer 4 \& 3} & \makecell{Data Link \& Physical Layer\\Layer 2 \& 1}\\
    \hline
    WAN & IEC 62056/COSEM & TCP/IP & \makecell{IEC 62056/COSEM\\ PLC G3\\Fibre VLAN}\\
       \hline
    HAN & \makecell{ZigBee Smart Energy 1.0/2.0\\EN 13757-3 M-Bus\\IEC 62056/COSEM\\EN 50090-3} & \makecell{ZigBee 2.0\\EN 50090-4} & \makecell{ZigBee\\PLC\\EN 13757-2 M-Bus\\EN 50090-4}\\
     \hline
    \end{tabular}
    \caption{The standardization bodies CEN, CENELEC and ETSI identify smart metering European data exchange and communication standards which are categorized by depending on the network layer model and the network size.}
    \label{table:standards}
   \end{table}

In addition, the CEN/CENELEC TC 205 technical committee ....

¿Podría alguien ayudarme a alinear mi mesa con el tex? Es un problema realmente importante para mí ya que tengo un problema similar con otras tablas.

Respuesta1

Puede usar tabularxy agregar una línea a una de las celdas. También sugeriría no usar reglas verticales, para una apariencia más profesional, sino las reglas de grosor variable de booktabs, que agregan algo de relleno vertical alrededor de las reglas.

Aquí hay un ejemplo de ambos:

\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{array, makecell, caption, tabularx, booktabs}
\renewcommand{\tabularxcolumn}[1]{>{\centering\arraybackslash}p{#1}}
\renewcommand\cellalign{tc}

\begin{document}
\mbox{}\vspace{1cm}
\begin{table}[!htb]
\centering\setcellgapes{3pt}\makegapedcells
\captionsetup{format=hang}
\setlength\tabcolsep{3.5pt}%\small
\begin{tabularx}{\linewidth}{|c|X|X|X|}
    \cline{2-4}
\multicolumn{1}{c|}{} & \makecell{Application Layer\\Layer 7} & \makecell{Transport \& Network Layer\\Layer 4 \& 3} & \makecell{Data Link \& Physical Layer\\Layer 2 \& 1}\\
\hline
WAN & IEC 62056/COSEM & TCP/IP &\makecell{[IEC 62056/COSEM\\ PLC G3\\Fibre VLAN}\\
   \hline
HAN & \makecell{ZigBee \\Smart Energy 1.0/2.0\\EN 13757-3 M-Bus\\IEC 62056/COSEM\\EN 50090-3} & \makecell{ZigBee 2.0\\EN 50090-4} & \makecell{ZigBee\\PLC\\EN 13757-2 M-Bus\\EN 50090-4}\\
 \hline
\end{tabularx}
\caption{The standardization bodies CEN, CENELEC and ETSI identify smart metering European data exchange and communication standards which are categorized by depending on the network layer model and the network size.}
\label{table:standards}
\end{table}

In addition, the CEN/CENELEC TC 205 technical committee ....

\begin{table}[!htb]
\centering\setcellgapes{3pt}\makegapedcells
\captionsetup{format=hang}
\setlength\tabcolsep{3.5pt}%\small
\begin{tabularx}{\linewidth}{cXXX}
    \cmidrule[\heavyrulewidth]{2-4}
& \makecell{Application Layer\\Layer 7} & \makecell{Transport \& Network Layer\\Layer 4 \& 3} & \makecell{Data Link \& Physical Layer\\Layer 2 \& 1}\\
\cmidrule{2-4}
WAN & IEC 62056/COSEM & TCP/IP &\makecell{[IEC 62056/COSEM\\ PLC G3\\Fibre VLAN}\\
   \addlinespace
HAN & \makecell{ZigBee \\Smart Energy 1.0/2.0\\EN 13757-3 M-Bus\\IEC 62056/COSEM\\EN 50090-3} & \makecell{ZigBee 2.0\\EN 50090-4} & \makecell{ZigBee\\PLC\\EN 13757-2 M-Bus\\EN 50090-4}\\
    \cmidrule[\heavyrulewidth]{2-4}
\end{tabularx}
\caption{The standardization bodies CEN, CENELEC and ETSI identify smart metering European data exchange and communication standards which are categorized by depending on the network layer model and the network size.}
\label{table:standards}
\end{table}
\end{document} 

ingrese la descripción de la imagen aquí

información relacionada