mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Reduce horizontal spacing for simple inline equations
This commit is contained in:
parent
a48581f48c
commit
f5fe3c17be
@ -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();
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user