You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a threeparttable environment is created with the corresponding tablenotes environment, then the folding of the table environment does not work correctly, as the text below (outside) the table environment gets folded too (see images below). This problem does not occur if only the threeparttable environment is present without the tablenotes (which of course makes no sense in practice).
Before folding:
After folding:
Steps to reproduce
Create a *.tex file with the following content:
\documentclass[a4paper]{article}
\usepackage{threeparttable}
\begin{document}
\begin{table}[tbp]
\caption{Test caption}
\label{tab:test}
\begin{threeparttable}
\begin{tabular}{cc}
a & b\tnote{*} \\
1 & 2 \\
\end{tabular}
\begin{tablenotes}
\item[*] note 1
\end{tablenotes}
\end{threeparttable}
\end{table}
Some text, which is hidden when the table is folded.
\end{document}
Place the cursor on the table environment and close the fold e.g. with zc.
Observe that not only the table environment got hidden, but also the text that comes after the table.
Expected behavior
Only the table environment should fold.
Actual behavior
The text below the table environment gets hidden too.
cristobaltapia
changed the title
Incorrect folding of table environment if a threeparttable with a tablenots env is present
Incorrect folding of table environment if a threeparttable with a tablenotes env is present
Aug 17, 2023
Should be fixed now. Notice that the tablenotes environment is clearly a list environment, so the problem would also be resolved by adding it to the g:vimtex_indent_lists option. But this is not really well documented behaviour. :\
Description
When a
threeparttable
environment is created with the correspondingtablenotes
environment, then the folding of the table environment does not work correctly, as the text below (outside) the table environment gets folded too (see images below). This problem does not occur if only thethreeparttable
environment is present without thetablenotes
(which of course makes no sense in practice).Before folding:
After folding:
Steps to reproduce
*.tex
file with the following content:zc
.table
environment got hidden, but also the text that comes after the table.Expected behavior
Only the
table
environment should fold.Actual behavior
The text below the
table
environment gets hidden too.Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: