Reduce horizontal spacing for simple inline equations

This commit is contained in:
Jean-Marc Lasgouttes 2016-11-17 16:17:49 +01:00
parent a48581f48c
commit f5fe3c17be
2 changed files with 24 additions and 0 deletions

View File

@ -2120,6 +2120,24 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
}
int InsetMathHull::leftMargin() const
{
return (getType() == hullSimple) ? 0 : InsetMathGrid::leftMargin();
}
int InsetMathHull::rightMargin() const
{
return (getType() == hullSimple) ? 0 : InsetMathGrid::rightMargin();
}
int InsetMathHull::border() const
{
return (getType() == hullSimple) ? 0 : InsetMathGrid::border();
}
/////////////////////////////////////////////////////////////////////

View File

@ -200,6 +200,12 @@ protected:
/// do we want to handle this event?
bool getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & status) const;
/// override to set to 0 for inline equation
int leftMargin() const;
/// override to set to 0 for inline equation
int rightMargin() const;
/// override to set to 0 for inline equation
int border() const;
///
docstring eolString(row_type row, bool fragile, bool latex,
bool last_eoln) const;