Re: Resa grafica dei numeri e tabelle

#94869
alegenn
Partecipante
    Up
    0
    Down
    ::

    l3on4rdo” post=94480

    La documentazione di siunitx ri dice come configurare le colonne S per ovviare all’inconveniente che lamenti.

    Porca paletta, deve essermi sfuggito.
    Controllo meglio, scusatemi

    Ricolrdati di togliere ll’inziale maiuscaola a Inferiore e Superiore; esamina la possibilità di scrivere quelle intestazioni su due righe, visto che sono intestazioni molo larghe (su una riga sola) rispetto al contenuto delle rispettive colonne.

    Per l’iniziale, pensavo di far bene quindi ti ringrazio e correggo subito.
    Purtroppo temo di non poter impostare l’intestazione su due righe, a meno che non riesco a posizionare la tabella altrove.
    Al momento è inserita nel testo ed è precisamente a fine pagina… come tocco qualcosa la mette alla pagina successiva.
    Avevo risolto un problema analogo (ma per una serie lunghissima di equazioni) con il display break, ma temo che per una tabella sia una cosa orrenda.

    Grazie ancora.

    Io farei così:
    `% !TEX TS-program = pdflatex
    % !TEX encoding = UTF-8 Unicode

    % This is a simple template for a LaTeX document using the “article” class.
    % See “book”, “report”, “letter” for other types of document.

    \documentclass[11pt]{article} % use larger type; default would be 10pt
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
    \usepackage[italian]{babel}

    %%% Examples of Article customizations
    % These packages are optional, depending whether you want the features they provide.
    % See the LaTeX Companion or other references for full information.

    %%% PAGE DIMENSIONS
    \usepackage{geometry} % to change the page dimensions
    \geometry{a4paper} % or letterpaper (US) or a5paper or….

    \usepackage{siunitx}
    \usepackage{booktabs}
    \usepackage{lipsum}

    \begin{document}
    \frenchspacing

    \section{Prima sezione}
    \lipsum[1-5]
    \begin{table}
    \centering
    \caption{Una tabella}
    \label{tab:tabella}
    \begin{tabular}{c
    S[table-number-alignment = right]
    S[table-number-alignment = right]
    S[table-number-alignment = right]}
    \toprule
    Semilato & {Estremo} & {Picco} & {Estremo} \\
    &{inferiore}&{superiore}\\
    \midrule
    50 & 4560 & 5240 & 5980\\
    75 & 9760 & 11340 & 13020 \\
    100 & 16800 & 19680 & 22760 \\
    125 & 25660 & 30240 & 35140 \\
    150 & 36280 & 43000 & 50160 \\
    175 & 48680 & 57940 & 67800 \\
    200 & 62800 & 75040 & 88060 \\
    225 & 78660 & 94280 & 110940 \\
    250 & 96220 & 115680 & 136420 \\
    \bottomrule
    \end{tabular}
    \end{table}

    \lipsum[1-3]

    \end{document}
    `

    Go to top