How do I put units below parameter names in LaTeX tables?

  • Topic: LaTeX 
  • Thread starter leviathanX777
  • Start date
  • Tags Tags
    Latex Units
5 replies · 6K views · last reply
leviathanX777
Messages
39
Reaction score
0
Hello,

I'm just wondering is it possible to put the units of a parameter underneath it rather than next to it. My table is pretty long and I could free up space if I could do this.

For example, let's say I have Velocity (m/s)

I want it to have (m/s) below velocity

I can't figure out how to do this in a table!
 
Last edited:
I'm by no means an expert, but I'm pretty sure you would have to specify text wrapping on each column when you introduce the table.

Someone please correct me if there is a simpler method.
 
Either don't put an \hline between two rows as suggested or use the \multirow command found in the multicol package. Also, if you specify the width (p{*}, * is the width in some unit), [itex]\LaTeX{}[/itex] will automatically wrap text in a table.
 
I tried, here's the code but no luck!

\begin{table}[htbp]
\centering
\small
\begin{tabular}{rrrrr}
\toprule
Fabricated & RMS BG (nm) & RMS Flake (nm) & E Mobility (cm$^2$/V.s) & H Mobility (cm$^2$/V.s) \\
\midrule
C2 (small) & 0.683 & 0.316 & 64.1 & 64.4 \\
C2 (big) & 0.984 & 0.565 & & \\
C8 & 0.287 & 1.057 & 171 & 165 \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\centering
\caption{Roughness and mobility values of GFEDs as fabricated}
\end{table}%

Also something really annoying has happened now... some of my images don't appear till the end of the document even though there's room for the images where I set them to and using [h!] doesn't put them where I inserted them... gah!
 
For the moving images, use the float package and the H option to fix their locations.

For the table, try something like:
Code:
\begin{table}[htbp] 
  \centering 
\small 
 \begin{tabular}{rrrrr} 
    \toprule 
    Fabricated & RMS BG & RMS Flake & E Mobility & H Mobility \\ 
                   & (nm) & (nm) & (cm$^2$/V.s) & (cm$^2$/V.s) \\
    \midrule 
    C2 (small) & 0.683 & 0.316 & 64.1  & 64.4 \\ 
    C2 (big) & 0.984 & 0.565 &       &  \\ 
    C8    & 0.287 & 1.057 & 171   & 165 \\ 
    \bottomrule 
    \end{tabular}% 
  \label{tab:addlabel}% 
\centering   
\caption{Roughness and mobility values of GFEDs as fabricated} 
\end{table}