0

I created a table using the following code:

\begin{tabular}{>{\centering\arraybackslash}c >{\centering\arraybackslash}p{3.5cm} p{7cm}}

Parameter& Value & Remark      \\  
\hline \hline
     $\alpha$            & $1[-]$   & Reference angle.          \\
    \hline
     $\alpha_{\scaleto{1}{3.5pt}}$       & $\beta_{\scaleto{1}{3.5pt}}$     &Inflow angle.  \\
    \hline
    $\delta$      & $\num{0.5894}c = \SI{0.59475}{\mm}$  $\num{9.87}  / c_{ax} = \num{5.874}$    & \multicolumn{1}{c}{$-$}           \\
    \hline
\end{tabular}

The output of which is: enter image description here

I would like to center align only the text in the fourth row and third column vertically i.e., -. I want other entries in the third column to be left aligned. How can I achieve this?

Aim
  • 633

1 Answers1

1

You can load multirow and count the maximum number of lines in the other cells:

\begin{tabular}{c >{\centering\arraybackslash}p{3.8cm} p{7cm}}
Parameter& Value & Remark \\
\hline \hline
     $\alpha$ & $1[-]$ & Reference angle. \\
    \hline
     $\alpha_{\scaleto{1}{3.5pt}}$ & $\beta_{\scaleto{1}{3.5pt}}$ &Inflow angle. \\
    \hline
    $\delta$ & $\num{0.5894}c = \SI{0.59475}{\mm}$ $\num{9.87} / c_{ax} = \num{5.874}$ & \multirow{2}{=}{\centering $-$} \\
    \hline
\end{tabular}

Unrelated: >{\centering\arraybackslash} is useless in a c column.

enter image description here

Bernard
  • 271,350
  • Bernard am I supposed to use any package to use the command \multirow{2}{=}{\centering $-$} ? I am not getting the desired output. I am getting this – Aim Mar 27 '20 at 15:25
  • @Giri: add the multirow package in order to use the \multirow command. Without the multirow package, you should recieve an error message. As soon as you get an error message, don't look at the output. – leandriis Mar 27 '20 at 15:35
  • Yes, I said so (load \multirow) – Bernard Mar 27 '20 at 16:25