diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index e25cda9454..1dd92c5901 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -204,7 +204,7 @@ void InsetSpecialChar::read(Lexer & lex) int InsetSpecialChar::latex(odocstream & os, - OutputParams const &) const + OutputParams const & rp) const { switch (kind_) { case HYPHENATION: @@ -226,6 +226,8 @@ int InsetSpecialChar::latex(odocstream & os, os << "\\slash{}"; break; case NOBREAKDASH: + if (rp.moving_arg) + os << "\\protect"; os << "\\nobreakdash-"; break; }