\TestPackage{subfig}
\TestPackage{subscript}
\TestPackage{Sweave}
+\TestPackage{tablefootnote}
\TestPackage{tcolorbox}
\TestPackage{textcomp}
\TestPackage{thswitch}
footnote
\family default
is needed by \SpecialChar LyX
- to allow footnotes in non-floating tables and multi-page
- table headers and footers.
+ to allow footnotes in description items, non-floating tables
+ and multi-page table headers and footers.
\end_layout
to be able to output correctly multipage tables.
\end_layout
+\begin_layout Subsection
+tablefootnote
+\end_layout
+
+\begin_layout Description
+Found:
+\begin_inset Info
+type "package"
+arg "tablefootnote"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+CTAN:
+\family typewriter
+macros/latex/contrib/tablefootnote/
+\end_layout
+
+\begin_layout Description
+Notes: The package
+\family sans
+tablefootnote
+\family default
+ is needed by \SpecialChar LyX
+ to be able to output footnotes in floating tables.
+\end_layout
+
\begin_layout Subsection
textcomp
\end_layout
EndHTMLStyle
End
+InsetLayout Foot:InFloatTable
+ CopyStyle Foot
+ LatexName tablefootnote
+ Requires tablefootnote
+End
+
+
InsetLayout Note:Comment
LabelString Comment
LatexType environment
"forest",
"varwidth",
"footnote",
+ "tablefootnote",
};
char const * bibliofeatures[] = {
namespace lyx {
InsetFoot::InsetFoot(Buffer * buf)
- : InsetFootlike(buf), intitle_(false)
+ : InsetFootlike(buf), intitle_(false), infloattable_(false)
{}
docstring InsetFoot::layoutName() const
{
- return intitle_ ? from_ascii("Foot:InTitle") : from_ascii("Foot");
+ if (intitle_)
+ return from_ascii("Foot:InTitle");
+ else if (infloattable_)
+ return from_ascii("Foot:InFloatTable");
+ return from_ascii("Foot");
}
}
intitle_ = false;
- for (size_type sl = 0 ; sl < it.depth() ; ++ sl) {
+ infloattable_ = false;
+ bool intable = false;
+ if (it.innerInsetOfType(TABULAR_CODE) != 0)
+ intable = true;
+ if (it.innerInsetOfType(FLOAT_CODE) != 0)
+ infloattable_ = intable;
+ for (size_type sl = 0 ; sl < it.depth() ; ++sl) {
if (it[sl].text() && it[sl].paragraph().layout().intitle) {
intitle_ = true;
break;
docstring custom_label_;
///
bool intitle_;
+ ///
+ bool infloattable_;
};
// Tell footnote that we need a savenote
// environment in non-long tables or
// longtable headers/footers
- if (!is_long_tabular)
+ else if (!is_long_tabular && !features.inFloat())
features.saveNoteEnv("tabular");
else if (!isValidRow(cellRow(cell)))
features.saveNoteEnv("longtable");