mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use InsetLayout for LaTeX output.
This commit is contained in:
parent
1c33d95adf
commit
33022ebb5a
@ -477,12 +477,19 @@ InsetLayout Preview
|
|||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Script:superscript
|
InsetLayout Script:superscript
|
||||||
|
LyXType standard
|
||||||
|
LatexType command
|
||||||
|
LaTeXName textsuperscript
|
||||||
MultiPar false
|
MultiPar false
|
||||||
HTMLTag sup
|
HTMLTag sup
|
||||||
HTMLIsBlock 0
|
HTMLIsBlock 0
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Script:subscript
|
InsetLayout Script:subscript
|
||||||
|
Requires subscript
|
||||||
|
LyXType standard
|
||||||
|
LatexType command
|
||||||
|
LaTeXName textsubscript
|
||||||
MultiPar false
|
MultiPar false
|
||||||
HTMLTag sub
|
HTMLTag sub
|
||||||
HTMLIsBlock 0
|
HTMLIsBlock 0
|
||||||
|
@ -326,29 +326,6 @@ docstring InsetScript::toolTip(BufferView const &, int, int) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetScript::validate(LaTeXFeatures & features) const
|
|
||||||
{
|
|
||||||
if (params_.type == InsetScriptParams::Subscript)
|
|
||||||
features.require("subscript");
|
|
||||||
InsetText::validate(features);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void InsetScript::latex(otexstream & os, OutputParams const & runparams) const
|
|
||||||
{
|
|
||||||
switch (params_.type) {
|
|
||||||
case InsetScriptParams::Subscript:
|
|
||||||
os << "\\textsubscript{";
|
|
||||||
break;
|
|
||||||
case InsetScriptParams::Superscript:
|
|
||||||
os << "\\textsuperscript{";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
InsetText::latex(os, runparams);
|
|
||||||
os << "}";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int InsetScript::plaintext(odocstream & os, OutputParams const & runparams) const
|
int InsetScript::plaintext(odocstream & os, OutputParams const & runparams) const
|
||||||
{
|
{
|
||||||
odocstringstream oss;
|
odocstringstream oss;
|
||||||
|
@ -86,10 +86,6 @@ public:
|
|||||||
///
|
///
|
||||||
bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
||||||
///
|
///
|
||||||
virtual void validate(LaTeXFeatures &) const;
|
|
||||||
///
|
|
||||||
void latex(otexstream &, OutputParams const &) const;
|
|
||||||
///
|
|
||||||
int plaintext(odocstream &, OutputParams const &) const;
|
int plaintext(odocstream &, OutputParams const &) const;
|
||||||
///
|
///
|
||||||
int docbook(odocstream &, OutputParams const &) const;
|
int docbook(odocstream &, OutputParams const &) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user