* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Jürgen Vigna
- * \author Lars Gullik Bjønnes
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
int InsetMarginal::latex(odocstream & os, OutputParams const & runparams) const
{
- os << "%\n\\marginpar{";
+ os << "%\n";
+ if (runparams.moving_arg)
+ os << "\\protect";
+ os << "\\marginpar{";
int const i = InsetText::latex(os, runparams);
os << "%\n}";
return i + 2;
docstring str;
str = getNewLabel(str);
toc.push_back(TocItem(pit, 0, str));
+ // Proceed with the rest of the inset.
+ InsetFootlike::addToToc(cpit);
}
} // namespace lyx