From 354a7f00258bc30b2dac3de41ef305a988bcd8ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sun, 7 Nov 2004 10:32:15 +0000 Subject: [PATCH] \tfrac support, fixing #1425 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9194 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/Makefile.am | 2 ++ src/mathed/math_factory.C | 3 +++ src/mathed/math_oversetinset.C | 1 + src/mathed/math_undersetinset.C | 1 + 5 files changed, 9 insertions(+) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 55899256d5..f406468cee 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -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 * ref_inset.[Ch] (docbook): diff --git a/src/mathed/Makefile.am b/src/mathed/Makefile.am index 425b47b976..beecd168e6 100644 --- a/src/mathed/Makefile.am +++ b/src/mathed/Makefile.am @@ -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 \ diff --git a/src/mathed/math_factory.C b/src/mathed/math_factory.C index 5ed3010ee4..5f1a8a0167 100644 --- a/src/mathed/math_factory.C +++ b/src/mathed/math_factory.C @@ -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, diff --git a/src/mathed/math_oversetinset.C b/src/mathed/math_oversetinset.C index c9be27e05e..1d8a8ee8f3 100644 --- a/src/mathed/math_oversetinset.C +++ b/src/mathed/math_oversetinset.C @@ -82,5 +82,6 @@ void MathOversetInset::normalize(NormalStream & os) const void MathOversetInset::validate(LaTeXFeatures & features) const { features.require("amsmath"); + MathNestInset::validate(features); } diff --git a/src/mathed/math_undersetinset.C b/src/mathed/math_undersetinset.C index 3a95effd53..b0ee5632df 100644 --- a/src/mathed/math_undersetinset.C +++ b/src/mathed/math_undersetinset.C @@ -94,5 +94,6 @@ void MathUndersetInset::normalize(NormalStream & os) const void MathUndersetInset::validate(LaTeXFeatures & features) const { features.require("amsmath"); + MathNestInset::validate(features); } -- 2.39.5