End
InsetLayout Caption
+ LaTeXType command
+ LatexName caption
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"
// FIXME: actually, it is moving only when there is no
// optional argument.
runparams.moving_arg = true;
- os << "\\caption";
- getOptArg(os, runparams);
- os << '{';
InsetText::latex(os, runparams);
- os << "}\n";
runparams_in.encoding = runparams.encoding;
}
}
-void InsetCaption::getOptArg(otexstream & os,
- OutputParams const & runparams) const
-{
- latexArgInsets(paragraphs()[0], os, runparams, getLayout().latexargs());
-}
-
-
int InsetCaption::getCaptionAsPlaintext(odocstream & os,
OutputParams const & runparams) const
{
docstring layoutName() const;
/// return the mandatory argument (LaTeX format) only
void getArgument(otexstream & os, OutputParams const &) const;
- /// return the optional argument(s) only
- void getOptArg(otexstream & os, OutputParams const &) const;
/// return the caption text
int getCaptionAsPlaintext(odocstream & os, OutputParams const &) const;
/// return the caption text as HTML
if (runparams.moving_arg)
os << "\\protect";
os << '\\' << from_utf8(il.latexname());
+ getOptArg(os, runparams);
if (!il.latexparam().empty())
os << from_utf8(il.latexparam());
os << '{';
return docstring();
}
+void InsetText::getOptArg(otexstream & os,
+ OutputParams const & runparams) const
+{
+ latexArgInsets(paragraphs()[0], os, runparams, getLayout().latexargs());
+}
+
void InsetText::cursorPos(BufferView const & bv,
CursorSlice const & sl, bool boundary, int & x, int & y) const
XHTMLOptions) const;
///
void validate(LaTeXFeatures & features) const;
+
+ /// return the optional argument(s) only
+ void getOptArg(otexstream & os, OutputParams const &) const;
/// return x,y of given position relative to the inset's baseline
void cursorPos(BufferView const & bv, CursorSlice const & sl,