We \cprotect them in fragile context. This allows \input, \include as
well as \verbatiminput and \lstinputlisting in sections etc.
They still don't work in titling (#2528)
}
+bool InsetInclude::needsCProtection(bool const /*maintext*/, bool const fragile) const
+{
+ // We need to \cprotect all types in fragile context
+ return fragile;
+}
+
+
void InsetInclude::doDispatch(Cursor & cur, FuncRequest & cmd)
{
switch (cmd.action()) {
static std::string defaultCommand() { return "include"; }
///
static bool isCompatibleCommand(std::string const & s);
+ ///
+ bool needsCProtection(bool const maintext = false,
+ bool const fragile = false) const;
//@}
protected: