Graphics, Figures & TablesProblem with long footnote on table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
di-mk1
Posts: 5
Joined: Fri Mar 25, 2011 11:23 pm

Problem with long footnote on table

Post by di-mk1 »

Hello everybody,

I have created the following table:

Code: Select all

\begin{table}
\centering
\renewcommand{\arraystretch}{1.2}
\begin{threeparttable}
\caption{Normalized area complexity comparisons}
\label{table_6}
\centering
\begin{tabular}{|c|c|c|}
\hline
\multirow{2}{*}{\textbf{Work}}  & \multirow{2}{*}{\textbf{Area}} & \textbf{Area} \\
{} & {} & \textbf{complexity}\\   
\hline
This work & $LA_{MAC}$  & $g(L,r,m,h)$\tnote{5} \\
bla bla bla
\end{tabular}
\begin{tablenotes}
    \item [5] $g(L,r,m,h)=\frac{L}{m}\left(0.38+1.14h+8.04m+7.47hm+0.19h^2m+1.14r+18.85mr+0.38mr^2+(2.19+2.19h) 
    m\left\lceil \frac{\log{\frac{h}{2}}}{\log{\frac{3}{2}}}\right\rceil +
    (2.19hm+2.19mr)\left\lceil \frac{\log{\frac{r}{2}}}{\log{\frac{3}{2}}}\right\rceil)
          \right)$
\end{tablenotes}
  \end{threeparttable}
\end{table}
The problem is obviously with footnote 5. It is a very long equation which i want to be splitted in lines. However, it seems that threeparttable does not issues line brakes so my footnote goes into one line and overlaps with another column. Is there a way that my footnote catches more lines and stays in one column?
Last edited by di-mk1 on Sun Mar 27, 2011 2:55 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Re: Problem with long footnote on table

Post by localghost »

Split the single long math expression into several short ones.


Best regards and welcome to the board
Thorsten
di-mk1
Posts: 5
Joined: Fri Mar 25, 2011 11:23 pm

Re: Problem with long footnote on table

Post by di-mk1 »

Hi localghost! I tried to do so by inserting \\ but it didn't work out.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with long footnote on table

Post by localghost »

I didn't tell you to insert line breaks but to split the expression into several $…$ which means to interrupt the in-line math mode at appropriate places.
di-mk1
Posts: 5
Joined: Fri Mar 25, 2011 11:23 pm

Re: Problem with long footnote on table

Post by di-mk1 »

That seems to solve the problem. The only problem now is that at the first line of the footnote i want to start a \left( and at the last line of the footnote issue a \right), which due to several $...$ it fails. Any ideas?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with long footnote on table

Post by localghost »

Replace the \left( … \right) delimiter pairs with \big( … \big)*. These are manually adjusted delimiters where you don't have to take care that always a complete pair is in one line. But you have to choose the size that fits best on your own.

*There exist further manual size adjustments for (paired) delimiters with \Big, \bigg and \Bigg. See lshort.
di-mk1
Posts: 5
Joined: Fri Mar 25, 2011 11:23 pm

Re: Problem with long footnote on table

Post by di-mk1 »

That seems to solve the problem. Many thanks! \Big( and \Big) seem to restore the braking. It was the \left( and \right) that were preventing correct breaking.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with long footnote on table

Post by localghost »

di-mk1 wrote:That seems to solve the problem. […]
Then please mark the topic (not th last post) exactly as written in Section 3 of the Board Rules (to be read before posting) and as you have already been asked for.
Post Reply