From ed2f6a85998c22eab8b1237c4361ae3900d58f6a Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 21 Apr 2013 20:45:56 +0200 Subject: [PATCH] Use MathML on the clipboard for formulas in HTML This speeds up the copying, and although not many applications understand MathML currently (MS word is supposed to understand it), their number should go up in the future. --- src/CutAndPaste.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index d346361a6d..0ed82d6d86 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -494,6 +494,11 @@ void putClipboard(ParagraphList const & paragraphs, ErrorList el; pasteSelectionHelper(dit, paragraphs, docclass, el); + // We don't want to produce images that are not used. Therefore, + // output formulas as MathML. Even if this is not understood by all + // applications, the number that can parse it should go up in the future. + buffer->params().html_math_output = BufferParams::MathML; + // The Buffer is being used to export. This is necessary so that the // updateMacros call will record the needed information. MarkAsExporting mex(buffer); -- 2.39.2