Re: allineare testo a destra all’interno di tabella

#54053
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::

    se il teso è su più righe non va bene ‘r’, dato che non va a capo

    `\usepackage{booktabs}

    \begin{tabular}{lr}
    \toprule
    & testo \\
    & su \\
    & più \\
    & righe \\
    \bottomrule
    \end{tabular} `
    Oppure (ma qui bisogna vedere quello che vuoi fare):
    `\usepackage{booktabs,tabularx}
    \newcolumntype{W}{>{\raggedleft\arraybackslash}X}

    \begin{tabularx}{0.5\textwidth}{lW}
    \toprule
    & testo su più righe
    testo su più righe
    testo su più righe \\
    \bottomrule
    \end{tabularx} `

    Ciao,
    L.

    Go to top