diff --git a/lib/symbols b/lib/symbols index 71ade6c824..f28529c0d0 100644 --- a/lib/symbols +++ b/lib/symbols @@ -33,11 +33,11 @@ widetilde decoration none dots dots none cdots dots none ddots dots none -dotsb dots none -dotsc dots none -dotsi dots none -dotsm dots none -dotso dots none +dotsb dots none amsmath +dotsc dots none amsmath +dotsi dots none amsmath +dotsm dots none amsmath +dotso dots none amsmath ldots dots none vdots dots none diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp index a8dcec6aa0..4c2f71fa33 100644 --- a/src/mathed/InsetMathDots.cpp +++ b/src/mathed/InsetMathDots.cpp @@ -12,6 +12,8 @@ #include #include "InsetMathDots.h" + +#include "LaTeXFeatures.h" #include "MathStream.h" #include "MathSupport.h" #include "MathParser.h" @@ -78,4 +80,11 @@ docstring InsetMathDots::name() const } +void InsetMathDots::validate(LaTeXFeatures & features) const +{ + if (!key_->requires.empty()) + features.require(to_utf8(key_->requires)); +} + + } // namespace lyx diff --git a/src/mathed/InsetMathDots.h b/src/mathed/InsetMathDots.h index af3d26bd97..2c5b4d39eb 100644 --- a/src/mathed/InsetMathDots.h +++ b/src/mathed/InsetMathDots.h @@ -30,6 +30,8 @@ public: void draw(PainterInfo & pi, int x, int y) const; /// docstring name() const; + /// request "external features" + void validate(LaTeXFeatures & features) const; protected: /// cache for the thing's height mutable int dh_; diff --git a/status.15x b/status.15x index 64dbd2a286..7397e7cf35 100644 --- a/status.15x +++ b/status.15x @@ -96,6 +96,8 @@ What's new - The LaTeX package amscd is now loaded automatically after math diagrams have been created (bug 5090). +- Load amsmath automatically for ams dots such as \dotsb (bug 5376). + - Fix inputenc error with ligature glyphs in utf8 encoding (bug 5086). - Fix LaTeX error with deleted straight quotes in change tracking mode