Re: Centrare titoletto sopra tabella con “minipage”

#89309
franen
Partecipante
    Up
    0
    Down
    ::


    Un approccio leggermente diverso.
    per la questione delle unità di misura: sicuramente non vanno fra parentesi quadre (le si usa per le dimensioni delle grandezze fisiche). Non bisognerebbe nemmeno usare le tonde, anche se, opinione personale, in una tabella aiutano a capire più facilmente il contenuto.

    Fran`\documentclass[]{book}
    \usepackage{booktabs}
    \begin{document}
    Un altro approccio, che include le tue intestazioni all'interno delle tabelle.

    \begin{table}[tb]
    \centering
    \begin{tabular}{cc}
    \multicolumn{2}{c}{\textit{North Side nodes}}\\
    \toprule
    \textbf{Node ID} &
    \begin{tabular}{@{}c@{}} \textbf{Average daily} \\ \textbf{consumption, mJ} \end{tabular} \\
    \midrule
    1 & 4 \\
    …\\
    …\\
    \bottomrule
    \end{tabular}
    \quad
    \begin{tabular}{cc}
    \multicolumn{2}{c}{\textit{South Side nodes}}\\
    \toprule
    \textbf{Node ID} &
    \begin{tabular}{@{}c@{}} \textbf{Average daily} \\ \textbf{consumption, mJ} \end{tabular} \\
    \midrule
    21 & 4 \\
    …\\
    …\\
    \bottomrule
    \end{tabular}
    \end{table}
    \end{document}`

    Go to top