I use threeparttable
to format my tables. I also use brackets for footnote references. As you can see in the following picture, the 2nd line of footnote [a]
is not aligned. The line starting with 0.0
is starting to far left.
How can I correct this?
Best regards, wewa00
PS: Here is the sample LaTeX code to reproduce this issue.
% Preview source code
%% LyX 2.3.6 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english]{article}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=3cm,rmargin=2.5cm}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{array}
\usepackage{setspace}
\onehalfspacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% --------- change figure and table caption size -----------
\usepackage{caption} % to change font size of image caption
\captionsetup[figure]{font=footnotesize,labelfont=footnotesize} % available values are scriptsize, footnotesize, small, normalsize, large, and Large.
\captionsetup[table]{font=footnotesize,labelfont=footnotesize} % available values are scriptsize, footnotesize, small, normalsize, large, and Large.
% -----------------------------------------------
\usepackage{threeparttable}
\usepackage{booktabs} % booktabs: to support centering of table
\usepackage{etoolbox} % to support footnotesize within table
\appto\TPTnoteSettings{\footnotesize} % footnote font size within table
\def\tnote#1{\protect\TPToverlap{\textsuperscript{[\TPTtagStyle{#1}]}}} % brackets in table footnotes
\makeatother
\usepackage{babel}
\begin{document}
\begin{table}
\caption{}
\centering
\begin{threeparttable}
\begin{tabular}{>{\centering}m{1.2cm}>{\centering}m{4cm}>{\centering}m{3cm}>{\centering}m{1.8cm}>{\centering}m{1.9cm}}
\hline
\noalign{\vskip\doublerulesep}
1 & 2 & 3 & 4 & 5\tabularnewline[\doublerulesep]
\hline
\noalign{\vskip\doublerulesep}
\end{tabular}
\begin{tablenotes}
\item [a] Loremips umdolor sit ahmet 0.00 lore mipsum, 00 lor\% ipsumlor emi 0.00 lore ipsumlor ip 0.0 lo remipsu mlo 00 l lo remi psumloremip.
\item [b] Loremipsum lor emipsu LORE.
\item [c] Loremipsum dol ORE.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
flushleft
(either globally as a package option of locally as an option for thetablenotes
environment. For the latter, you could try\def\TPTnoteSettings{\setlength\labelwidth{1em}}
.\def\TPTnoteSettings{\setlength\labelwidth{1em}}
is working as desired. Could you please write an answer?\def\TPTnoteSettings{\setlength\labelwidth{1em}}
does a lot more to the appearance of the table notes than just affect the indentation amount. Unless you want to clobber the default properties of\TPTnoteSettings
, you really ought to run\apptocmd{\TPTnoteSettings}{\setlength\labelwidth{1em}}{}{}
.