mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix HTML display of math matrices.
This commit is contained in:
parent
752c89ae13
commit
60ce2b7570
@ -26,6 +26,7 @@
|
|||||||
#include "CutAndPaste.h"
|
#include "CutAndPaste.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "FuncStatus.h"
|
#include "FuncStatus.h"
|
||||||
|
#include "LaTeXFeatures.h"
|
||||||
#include "TexRow.h"
|
#include "TexRow.h"
|
||||||
|
|
||||||
#include "frontends/Clipboard.h"
|
#include "frontends/Clipboard.h"
|
||||||
@ -1237,6 +1238,19 @@ void InsetMathGrid::htmlize(HtmlStream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void InsetMathGrid::validate(LaTeXFeatures & features) const
|
||||||
|
{
|
||||||
|
if (features.runparams().math_flavor == OutputParams::MathAsHTML
|
||||||
|
&& (nrows() > 1 || ncols() > 1)) {
|
||||||
|
// CSS taken from InsetMathCases
|
||||||
|
features.addCSSSnippet(
|
||||||
|
"table.mathtable{display: inline-block; text-align: center; border: none;"
|
||||||
|
"border-left: thin solid black; vertical-align: middle; padding-left: 0.5ex;}\n"
|
||||||
|
"table.mathtable td {text-align: left; border: none;}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetMathGrid::write(WriteStream & os) const
|
void InsetMathGrid::write(WriteStream & os) const
|
||||||
{
|
{
|
||||||
write(os, 0, 0, nrows(), ncols());
|
write(os, 0, 0, nrows(), ncols());
|
||||||
|
@ -239,6 +239,8 @@ public:
|
|||||||
///
|
///
|
||||||
void htmlize(HtmlStream &, std::string attrib) const;
|
void htmlize(HtmlStream &, std::string attrib) const;
|
||||||
///
|
///
|
||||||
|
void validate(LaTeXFeatures & features) const;
|
||||||
|
///
|
||||||
//void octave(OctaveStream &) const;
|
//void octave(OctaveStream &) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user