Re: Centratura verticale in tabella con multirow

#90813
alegenn
Partecipante
    Up
    0
    Down
    ::

    Misterx76″ post=90371Nella seguente tabella, per centrare il $\Delta<0$ verticalmente, ho introdotto, per tentativi, la quantità \vspace{-0.25cm}.
    Esiste un metodo più preciso?
    Grazie
    `
    \begin{table}[H]
    \centering%{
    \begin{tabular}{ccccc}
    \toprule
    \textbf{Discriminante}&\phantom{trenta}&\textbf{Disequazione}&\phantom{trenta}&\textbf{Risultato}\\
    \bottomrule
    \multirow{10}*{{$\vspace{-0.25cm}\Delta<0$}}&&&&\multirow{5}*{$\forall\,x\in\mathbb{R}$}\\
    &&$ax^2+bx+c>0$&&\\
    &&&&\\
    &&$ax^2+bx+c\geqslant0$&&\\
    &&&&\\
    \cmidrule{3-5}
    &&&&\\
    &&$ax^2+bx+c<0$&&\multirow{3}*{\emph{Impossibile}}\\
    &&&&\\
    &&$ax^2+bx+c\leqslant0$&&\\
    &&&&\\
    \bottomrule
    \end{tabular}\vspace{0.5cm}
    \caption{Schema riassuntivo per la risoluzione delle disequazioni $ax^2+bx+c\gtreqless0$ con $\Delta<0$, avendo supposto $a>0$.}
    \label{tabella Delta<0}
    \vspace{0.5cm}\end{table}
    `

    Prova così:
    `\documentclass{article}
    \usepackage{booktabs,multirow,amssymb}
    \usepackage{bigstrut}

    \begin{document}

    \begin{tabular}{ccc}
    \toprule
    \textbf{Discriminante} & \textbf{Disequazione} & \textbf{Soluzioni} \\
    \midrule
    \multirow{4}{1cm}{$\Delta<0$} & $ax^2+bx+c>0$ &$\mathbb{R}$\\
    & $ax^2+bx+c\geqslant0$ & \\
    \cmidrule{2-3}
    & $ax^2+bx+c<0$ & $\emptyset$ \\
    & $ax^2+bx+c\leqslant0$ &\\
    \bottomrule
    \end{tabular}
    \end{document}`
    Saluti

    Go to top