Graphics, Figures & TablesReduce vertical Space between specific Table Rows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kriss
Posts: 3
Joined: Fri Jul 27, 2012 5:15 pm

Reduce vertical Space between specific Table Rows

Post by kriss »

What about if I wanted to reduce the vertical space only between two specific rows, leaving the rest of the table (or other tables) untouched? Here is my code, and I want to reduce the space between the "Note" rows to make it look more compact

Code: Select all

\begin{table}[htbp]\footnotesize
\caption{$\sigma_{\mu_m}$ and $\sigma_{\nu c}$ estimates}
\centering
\begin{tabular*}{0.35\textwidth}{ l r@{.}l r@{.}l }
\hline 
\label{Table_movie_quality_expectations}
Variable \hspace{20px} & \multicolumn{2}{l}{Estimate \hspace{10px} } & \multicolumn{2}{l}{s.e. \hspace{10px} } \\
\hline
$\sigma_{\mu_m}$ & 0 & 65& \multicolumn{2}{l}{n/a} \\
$\sigma_{\nu 1}$ & 0 & 55***& 0&020 \\
$\sigma_{\nu 2}$ & 1 & 15***& 0&015 \\
\hline
\multicolumn{5}{l}{\scriptsize Note: ***, **, and * indicate significance} \\
\multicolumn{5}{l}{\scriptsize at the 1\%, 5\% and 10\% levels.}
\end{tabular*}
\end{table}
Last edited by localghost on Fri Jul 27, 2012 5:40 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Reduce vertical Space between specific Table Rows

Post by localghost »

Do it in another way.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[tableposition=top]{caption}
\usepackage{booktabs}
\usepackage[para]{threeparttable}
\usepackage{siunitx}

\begin{document}
  \begin{table}[!htb]
    \caption{$\sigma_{\mu_m}$ and $\sigma_{\nu c}$ estimates}
    \label{tab:movie-quality-expectations}
    \centering
    \begin{threeparttable}[b]
      \footnotesize
      \begin{tabular*}{0.35\textwidth}{
        @{\extracolsep{\fill}}
        l
        S[table-space-text-post={***},table-format=1.2]
        S[table-format=1.3]
      }\toprule
      Variable & {Estimate} & {s.e.} \\ \midrule
      $\sigma_{\mu_m}$ & 0.65 & {n/a} \\
      $\sigma_{\nu 1}$ & 0.55*** & 0.02 \\
      $\sigma_{\nu 2}$ & 1.15*** & 0.015 \\ \bottomrule
    \end{tabular*}
    \begin{tablenotes}
      \scriptsize
      Note: ***, **, and * indicate significance at the 1\%, 5\% and 10\% levels.
    \end{tablenotes}
    \end{threeparttable}
  \end{table}
\end{document}
For a deeper understanding of the involved packages and details about their purpose and capabilities, take a look at the respective manuals.


Best regards and welcome to the board
Thorsten
Post Reply