Guys, please don't top post.

Brian Williams wrote:
>> has anyone successfully transferred information between LyX / LaTeX and
>> Mathcad 2000i?

> samar wrote:
> I wonder if you could elaborate on what you want to do. Transferring text
> is a cut and paste operation. Have just
> tried it out. It would however, end up as a text field in Mathcad 2000.
> 
> Transferring formulae is unlikely to work if you want them to be part of
> the maths in mathcad. That would appear to be a very different protocol
> from the Lyx math protocol, but someone else may have better ideas.

Brian Williams wrote:
> sorry I should have clarified. Mathcad is supposed to be able to import
> MathML and there are supposed to be latex > MathML translators, but I'm
> not convinced anyone has successfully  moved formulae from one app to the
> other. Just wondered if this list knew of anyone who had done it.

Brian,
LyX has some support for communication with a number of math engines. See
Edit->Math->Use Computer Algebra System->
    Octave
    Maxima
    Mathematica
    Maple, simplify
    Maple, factor
    Maple, evalm
    Maple, evalf

So, whilst there's no support for Mathcad yet, the infrastructure exists.
Perhaps you might be interested in adding the functionality?

Meanwhile, you could try exporting your document to Docbook because then
math equations are translated to MathML:

int InsetFormula::docbook(Buffer const * buf, ostream & os, bool) const
{
    MathMLStream ms(os);
    ms << MTag("equation");
    ms <<   MTag("alt");
    ms <<    "<[CDATA[";
    int res = ascii(buf, ms.os(), 0);
    ms <<    "]]>";
    ms <<   ETag("alt");
    ms <<   MTag("math");
    ms <<    par_;
    ms <<   ETag("math");
    ms << ETag("equation");
    return ms.line() + res;
}

To export to Docbook? Reset your article to be "Docbook article (SGML)" in
the "Document Class" combobox of the Layout pane of the Layout->Document
dialog and then hit Edit->Export-Docbook. You should find
your_article.sgml...

Regards,
-- 
Angus

Reply via email to