Phantom is fragile (#9456)

This commit is contained in:
Juergen Spitzmueller 2015-03-16 17:25:15 +01:00
parent 48774ed56f
commit b7d2169413
2 changed files with 5 additions and 0 deletions

View File

@ -309,6 +309,8 @@ docstring InsetPhantom::toolTip(BufferView const &, int, int) const
void InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const
{
if (runparams.moving_arg)
os << "\\protect";
if (params_.type == InsetPhantomParams::Phantom)
os << "\\phantom{";
else if (params_.type == InsetPhantomParams::HPhantom)

View File

@ -69,6 +69,9 @@ What's new
- Do not output \protect unnecessarily in subfigure contents (bug 9421).
- Do \protect phantoms in fragile environments (such as captions)
(bug 9456).
- Fix LaTeX error with font sizes in caption.
- Fix wrong listings preamble encoding (bug 9382).