LaTeX Creating Latex Tables with Units Beneath Parameters

  • Thread starter Thread starter leviathanX777
  • Start date Start date
  • Tags Tags
    Latex Units
AI Thread Summary
The discussion revolves around formatting a table in LaTeX to display units of measurement beneath the corresponding parameters, which can help save space in lengthy tables. Users suggest using text wrapping for columns and adding an additional row for units without horizontal lines between them. The \multirow command from the multicol package is also recommended for better layout control. Additionally, issues with images not appearing in the correct locations are addressed, with a suggestion to use the float package and the H option to resolve placement problems. A sample code snippet is provided to illustrate the proposed table format.
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:
Physics news on Phys.org
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.
 
if you add another row to the table, I think you can turn off the lines between and you should get something close to what you want.
 
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), \LaTeX{} 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}
 
Back
Top