Insert complex LateX formula into article

  • Unknown's avatar

    According to the support documents(https://en.support.wordpress.com/latex/), a LaTeX formula can be inserted into an article by typing
    $latex e^{ipi}=-1$,
    which is a convenient way to input an inline formula.

    However, for some for more complex LaTeX environment, such as
    1. The display formula, like
    $$latex e^{ipi}=-1$$
    2. Some specific environment, like
    begin{align*}
    C(t) &= int_0^t f(x)dx
    &= F(t)-F(0)
    end{align*},
    the document does not give any suggestions on these topics.

    I have tried some methods, encapsulating these code with $latex …$ for instance. But it only raises an error of ‘Formula does not parse.’

    So my question is how to insert these complex LaTeX formula into my article?

    Thanks a lot!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Dear David,

    Try leaving the ampersand symbols out, so if you put: $latex C(t) = int_0^t f(x)dx = F(t)-F(0)$ it will render.

    Kind regards,
    Thomas

  • Unknown's avatar

    Dear Thomas,

    Thanks for your kind help and concrete example.

    The ampersand symbols are essential in the multi-line formula environmnt, the align environment, because it indicates the point at which the lines should be aligned. See Wiki LaTeX pages for details. Although the meanings are the same, the formats are different. And the align environment is inevitable in the presentation of long formulas.

    Still thank you very much.

    Best regards,
    David

  • The topic ‘Insert complex LateX formula into article’ is closed to new replies.