- if (lex.IsOK()) {
- lex.next();
- string token = lex.GetString();
- if (token == "collapsed") {
- lex.next();
- collapsed = lex.GetBool();
- }
- }
- InsetText::Read(lex);
-}
-
-
-bool InsetFoot::InsertInset(BufferView * bv, Inset * inset)
-{
- if ((inset->LyxCode() == Inset::FOOT_CODE) ||
- (inset->LyxCode() == Inset::MARGIN_CODE)) {
- return false;
- }
- return InsetText::InsertInset(bv, inset);
+ os << "%\n\\footnote{";
+
+ int const i = inset.latex(buf, os, fragile, fp);
+ os << "%\n}";
+
+ return i + 2;