\tfrac support, fixing #1425

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9194 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-11-07 10:32:15 +00:00
parent 4c7f883059
commit 354a7f0025
5 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@
* math_overset.[Ch] (validate):
* math_underset.[Ch] (validate): require ams
* math_tfracinset.[Ch]: new \tfrac support
2004-11-02 José Matos <jamatos@lyx.org>
* ref_inset.[Ch] (docbook):

View File

@ -141,6 +141,8 @@ libmathed_la_SOURCES = \
math_symbolinset.h \
math_tabularinset.C \
math_tabularinset.h \
math_tfracinset.C \
math_tfracinset.h \
math_unknowninset.C \
math_unknowninset.h \
math_undersetinset.C \

View File

@ -46,6 +46,7 @@
#include "math_substackinset.h"
#include "math_symbolinset.h"
#include "math_tabularinset.h"
#include "math_tfracinset.h"
#include "math_undersetinset.h"
#include "math_unknowninset.h"
#include "math_xarrowinset.h"
@ -320,6 +321,8 @@ MathAtom createMathInset(string const & s)
return MathAtom(new MathColorInset(false));
if (s == "dfrac")
return MathAtom(new MathDfracInset);
if (s == "tfrac")
return MathAtom(new MathTfracInset);
if (MacroTable::globalMacros().has(s))
return MathAtom(new MathMacro(s,

View File

@ -82,5 +82,6 @@ void MathOversetInset::normalize(NormalStream & os) const
void MathOversetInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
MathNestInset::validate(features);
}

View File

@ -94,5 +94,6 @@ void MathUndersetInset::normalize(NormalStream & os) const
void MathUndersetInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
MathNestInset::validate(features);
}