Graphics, Figures & Tables ⇒ Table Notes Alignment
Table Notes Alignment
Hello everyone,
I have some problems adjusting the alignment between the table notes and the table. I have attached the picture here. What I am looking for is to spread out the current table notes across the 3 columns. Could anyone please help me out? On the side note, I use the \usepackage[flushleft]{threeparttable}
Thank you for helping
I have some problems adjusting the alignment between the table notes and the table. I have attached the picture here. What I am looking for is to spread out the current table notes across the 3 columns. Could anyone please help me out? On the side note, I use the \usepackage[flushleft]{threeparttable}
Thank you for helping
- Stefan Kottwitz
- Site Admin
- Posts: 10310
- Joined: Mon Mar 10, 2008 9:44 pm
Table Notes Alignment
Hi,
welcome to the forum!
Can you please post your table code here in the forum? Then we can test it and help improving it. Otherwise it's a bit theoretical and we cannot post working code.
The best would be a small document with the table that is compilable (with \documentclass, \usepackage[flushleft]{threeparttable} etc.) since the forum has an online compiler and we can work on it right away. If you look at one of my posts from 2013
: Alignment for Table Notes, you can see what I mean (click the "Run LaTeX here" button).
Stefan
welcome to the forum!
Can you please post your table code here in the forum? Then we can test it and help improving it. Otherwise it's a bit theoretical and we cannot post working code.
The best would be a small document with the table that is compilable (with \documentclass, \usepackage[flushleft]{threeparttable} etc.) since the forum has an online compiler and we can work on it right away. If you look at one of my posts from 2013

Stefan
LaTeX.org admin
Table Notes Alignment
Hi Stefan, here is my codes I used for my table:
My document class is "article". Thank you for your help again.
Code: Select all
\documentclass[12pt]{article}
\usepackage{setspace}
\usepackage{rotating}
%\usepackage{esint}
%\usepackage{subfig}
\usepackage{amssymb}
\usepackage{color, graphics, graphicx}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[authoryear]{natbib}
\usepackage{mathrsfs}
% \usepackage{hypernat}
\usepackage{fontenc}
\usepackage{lscape}
\setcounter{MaxMatrixCols}{10}
\usepackage{url}
\usepackage{bbm}
\usepackage{dsfont}
\usepackage{lmodern} % try to avoid timid font
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\usepackage{float}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%\usepackage{footnote}
%\makesavenoteenv{tabular}
%\makesavenoteenv{table}
\usepackage{booktabs,caption,fixltx2e}
\usepackage[flushleft]{threeparttable}
\usepackage{tabularx,pbox}
\usepackage{graphicx} % "demo" option just for this example
\usepackage[utf8x]{inputenc}
\usepackage{subcaption}
\usepackage{soul}
\usepackage{titling}
\usepackage[table]{xcolor}
\usepackage[multiple]{footmisc}
\usepackage[toc,page]{appendix}
\usepackage{setspace}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{rotating}
\usepackage[paper=portrait,pagesize]{typearea}
\usepackage{multirow}
\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\DeclareMathOperator*{\argmin}{arg\,min}
%\newtheorem{proof}[theorem]{Proof}
\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]}
\newcommand\Thickvrule[1]{%
\multicolumn{1}{!{\vrule width 2pt}c!{\vrule width 2pt}}{#1}%
}
\usepackage{array}
\newlength\Origarrayrulewidth
\newcommand{\Cline}[1]{%
\noalign{\global\setlength\Origarrayrulewidth{\arrayrulewidth}}%
\noalign{\global\setlength\arrayrulewidth{2pt}}\cline{#1}%
\noalign{\global\setlength\arrayrulewidth{\Origarrayrulewidth}}%
}
\RequirePackage[OT1]{fontenc}
\numberwithin{equation}{section}
\RequirePackage[colorlinks]{hyperref}
\hypersetup{
colorlinks,%
citecolor=blue,%
filecolor=red,%
linkcolor=black,%
urlcolor=black
}
\begin{document}
\begin{table}[H]
\centering
\caption{Summary Statistics of the key variables in estimation analysis.\label{sum_sipp}}
\begin{tabular}{l|l|l}
\textbf{Variables } & \multicolumn{2}{c}{ } \\ \hline
& Mean & Std.Dev \\ \hline
\textbf{\textit{Individuals' characteristics}} & & \\
Age (years) & 44.779 & 11.974 \\
Male*& 0.502 & 0.500 \\
Year of birth & 1969 & 12.021 \\
Marital status* & 0.563 & 0.496 \\
Years of education (years) & 13.336 & 2.971 \\
No qualification* & 0.110 & 0.313 \\
High school graduate* & 0.5004 & 0.500 \\
Associate degree graduate* & 0.093 & 0.291 \\
Bachelor's degree graduate* & 0.190 & 0.392 \\
Master's degree graduate* & 0.094 & 0.291 \\
Doctor's degree graduate* & 0.013 & 0.114 \\ \hline
\textbf{\textit{Workers' characteristics}} & & \\
Potential years of experience (years) & 26.443 & 12.417 \\
Potential years of experience squared & 853.40 & 659.405 \\
Weekly hours worked in the main job & 43.254 & 6.475 \\
Weekly wage from the main job (\$) & 1104.8 & 1325.226 \\
Hourly wage from the main job (\$) & 17.597 & 19.448 \\
STEM* & 0.062 & 0.241 \\ \hline
\end{tabular}
\end{table}
\begin{tablenotes}
\item \footnotesize{Note: * denotes dummy variables}
\item \footnotesize{Note: Weekly and hourly wages have been converted into the real term.}
\item \footnotesize{Source: Survey of Income and Program Participation (SIPP) of full-time workers (2013 to 2016).}
\end{tablenotes}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10310
- Joined: Mon Mar 10, 2008 9:44 pm
Table Notes Alignment
Unlike the picture, the table notes in the code example output span over three columns.
So what is the issue, or is it just the other table?
Stefan
So what is the issue, or is it just the other table?
Stefan
LaTeX.org admin
Table Notes Alignment
I don't know why it looks so nice here, it does not look like that in my pdf output :/
- Stefan Kottwitz
- Site Admin
- Posts: 10310
- Joined: Mon Mar 10, 2008 9:44 pm
Table Notes Alignment
How does this code example output look when you run it on your machine?
Stefan
Stefan
LaTeX.org admin
Table Notes Alignment
I got it alreadyyyy hahahahahah! I forgot to put everything between \begin{threeparttable} and \end{threeparttable}. It looks better now! Thank you for your help anywayyy. Stay safe.
- Stefan Kottwitz
- Site Admin
- Posts: 10310
- Joined: Mon Mar 10, 2008 9:44 pm
Table Notes Alignment
That was easy
funny that there's no error if you use the
Stefan

tablenotes
environment in a standard table. However, it seems that you don't use \tnote
commands, otherwise there would be an error.Stefan
LaTeX.org admin
- Stefan Kottwitz
- Site Admin
- Posts: 10310
- Joined: Mon Mar 10, 2008 9:44 pm
Table Notes Alignment
Btw. the fixed example may look like this:
I notice that the left side is not perfectly aligned. That's because there's a note marker symbol expected, such as with \item[3] Source: Survey of Income ... A note marker would be perfectly aligned. I wonder if table notes (cross-references like footnotes) are the best solution here, or if it's rather a caption with notes.
Stefan
Code: Select all
\documentclass[12pt]{article}
\usepackage{setspace}
\usepackage{rotating}
%\usepackage{esint}
%\usepackage{subfig}
\usepackage{amssymb}
\usepackage{color, graphics, graphicx}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[authoryear]{natbib}
\usepackage{mathrsfs}
% \usepackage{hypernat}
\usepackage{fontenc}
\usepackage{lscape}
\setcounter{MaxMatrixCols}{10}
\usepackage{url}
\usepackage{bbm}
\usepackage{dsfont}
\usepackage{lmodern} % try to avoid timid font
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\usepackage{float}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%\usepackage{footnote}
%\makesavenoteenv{tabular}
%\makesavenoteenv{table}
\usepackage{booktabs,caption,fixltx2e}
\usepackage[flushleft]{threeparttable}
\usepackage{tabularx,pbox}
\usepackage{graphicx} % "demo" option just for this example
\usepackage[utf8x]{inputenc}
\usepackage{subcaption}
\usepackage{soul}
\usepackage{titling}
\usepackage[table]{xcolor}
\usepackage[multiple]{footmisc}
\usepackage[toc,page]{appendix}
\usepackage{setspace}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{rotating}
\usepackage[paper=portrait,pagesize]{typearea}
\usepackage{multirow}
\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\DeclareMathOperator*{\argmin}{arg\,min}
%\newtheorem{proof}[theorem]{Proof}
\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]}
\newcommand\Thickvrule[1]{%
\multicolumn{1}{!{\vrule width 2pt}c!{\vrule width 2pt}}{#1}%
}
\usepackage{array}
\newlength\Origarrayrulewidth
\newcommand{\Cline}[1]{%
\noalign{\global\setlength\Origarrayrulewidth{\arrayrulewidth}}%
\noalign{\global\setlength\arrayrulewidth{2pt}}\cline{#1}%
\noalign{\global\setlength\arrayrulewidth{\Origarrayrulewidth}}%
}
\RequirePackage[OT1]{fontenc}
\numberwithin{equation}{section}
\RequirePackage[colorlinks]{hyperref}
\hypersetup{
colorlinks,%
citecolor=blue,%
filecolor=red,%
linkcolor=black,%
urlcolor=black
}
\begin{document}
\begin{threeparttable}
\centering
\caption{Summary Statistics of the key variables in estimation analysis.\label{sum_sipp}}
\begin{tabular}{l|l|l}
\textbf{Variables } & \multicolumn{2}{c}{ } \\ \hline
& Mean & Std.Dev \\ \hline
\textbf{\textit{Individuals' characteristics}} & & \\
Age (years) & 44.779 & 11.974 \\
Male*& 0.502 & 0.500 \\
Year of birth & 1969 & 12.021 \\
Marital status* & 0.563 & 0.496 \\
Years of education (years) & 13.336 & 2.971 \\
No qualification* & 0.110 & 0.313 \\
High school graduate* & 0.5004 & 0.500 \\
Associate degree graduate* & 0.093 & 0.291 \\
Bachelor's degree graduate* & 0.190 & 0.392 \\
Master's degree graduate* & 0.094 & 0.291 \\
Doctor's degree graduate* & 0.013 & 0.114 \\ \hline
\textbf{\textit{Workers' characteristics}} & & \\
Potential years of experience (years) & 26.443 & 12.417 \\
Potential years of experience squared & 853.40 & 659.405 \\
Weekly hours worked in the main job & 43.254 & 6.475 \\
Weekly wage from the main job (\$) & 1104.8 & 1325.226 \\
Hourly wage from the main job (\$) & 17.597 & 19.448 \\
STEM* & 0.062 & 0.241 \\ \hline
\end{tabular}
\begin{tablenotes}
\item \footnotesize{Note: * denotes dummy variables}
\item \footnotesize{Note: Weekly and hourly wages have been converted into the real term.}
\item \footnotesize{Source: Survey of Income and Program Participation (SIPP) of full-time workers (2013 to 2016).}
\end{tablenotes}
\end{threeparttable}
\end{document}
Stefan
LaTeX.org admin