Text Formatting ⇒ text at the bottom of a table
text at the bottom of a table
I am trying to put some explanatory text at the bottom of a table with regression results; the text spans several lines, and by default if appears uglily centered. Using \flushleft does not improve the way it looks. Is there a way to force full justification? do you have other suggestions?
many thanks in advance
Serena
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text at the bottom of a table
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
text at the bottom of a table
Code: Select all
\begin{table}[ht]
\caption{Regression Results} % title of Table
\centering
\begin{center}
\begin{tabular}{l c c c}
\hline\hline
& (1) & (2) & (3) \\ [0.5ex]
\hline
GDP & 0.667*** & 0.696*** & 0.654*** \\
& (0.139) & (0.102) & (0.131) \\
Observations & 1034 & 1050 & 1050 \\ [1ex]
\hline
\end{tabular}
\end{center}
\footnotesize{Notes: Coefficient estimates from GLS regressions.
Dependent variable is bilateral trade flows. Robust standard errors clustered on the importer are in parentheses.Column (1) reports the basic specifciation;
columns (2) and (3) include time and exporter fixed effects, respectively. ***, ** and * denote significance at the 1, 5 and 10% levels, respectively.}
\label{table:reg}
\end{table}- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text at the bottom of a table
You could use the threeparttable package to get your notes fully justified with the width of the table.
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{booktabs,threeparttable}
\parindent0em
\begin{document}
\begin{table}[!ht]
\centering
\begin{threeparttable}[b]
\caption{Regression Results}\label{table:reg}
\begin{tabular}{lccc}\toprule
& (1) & (2) & (3) \\ \midrule
GDP & 0.667\tnote{***} & 0.696\tnote{***} & 0.654\tnote{***} \\
& (0.139) & (0.102) & (0.131) \\
Observations & 1034 & 1050 & 1050 \\ \bottomrule \addlinespace
\end{tabular}
\scriptsize
Notes:\hfill\parbox[t]{6.4cm}{Coefficient estimates from GLS regressions. Dependent variable is bilateral trade flows. Robust standard errors clustered on the importer are in parentheses.Column (1) reports the basic specifcation; columns (2) and (3) include time and exporter fixed effects, respectively. ***, ** and * denote significance at the 1, 5 and 10\% levels, respectively.}
% \begin{tablenotes}[flushleft,para]
% \item[*] 1\%
% \item[**] 5\%
% \item[***] 10\%
% \end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10