Latex Support

We have been asked to include LaTeX support for our blog. And here it is!

latex6

You may also use display environments equation, align, displaymath, eqnarray, multline, flalign, gather, and alignat.

Here is an example:

latex

The above code is rendered as:


 

[latexpage] At first, we sample $f(x)$ in the $N$ ($N$ is odd) equidistant points around $x^*$:
[
f_k = f(x_k),: x_k = x^*+kh,: k=-frac{N-1}{2},dots,frac{N-1}{2}
] where $h$ is some step.
Then we interpolate points ${(x_k,f_k)}$ by polynomial
begin{equation} label{eq:poly}
P_{N-1}(x)=sum_{j=0}^{N-1}{a_jx^j}
end{equation}
Its coefficients ${a_j}$ are found as a solution of system of linear equations:
begin{equation} label{eq:sys}
left{ P_{N-1}(x_k) = f_kright},quad k=-frac{N-1}{2},dots,frac{N-1}{2}
end{equation}
Here are references to existing equations: (ref{eq:poly}), (ref{eq:sys}).
Here is reference to non-existing equation (ref{eq:unknown}).

 

For the display environments, equation numbering is automatic, but this may be overridden and the number set explicitly with tag{..} placed within the display expression.

A number of options may be set for an expression with attribute tags such as size, color, background, align, as arguments of quicklatex{} placed within the expression:

latex2

renders with green font of 25 pixels height:

QuickLaTeX Example

Compilation of an expression may be suppressed, showing instead the LaTeX source, by preceding the expression with a !.

For mathematical graphs you may use tikzpicture and pgfplots, e.g. :

latex3

compiles to

QuickLaTeX Example

Realized with WP QuickLaTeX.

 

 

 

 

3 comments on “Latex Support

  • Wolfgang Huang wrote (19/06/2014):
    > We have been asked to include LaTeX support for our blog. And here it is!

    How nice of you; thanks a bunch.

    > Activate LaTeX on a comment with the shortcode [latexpage]. Then you may insert LaTeX expressions directly in the text by surrounding them with $..$ or place them displayed with [..] […]

    Let me try that (hopefully contributing something worthwhile ;):

    [latexpage]

    $ a circ f = f circ b , imples , forall j, k in mathbb Z : a circ (a^j circ f circ b^k) = (a^j circ f circ b^k) circ b $.

    p.s.
    Comment preview test:

    Beatrice Lugger wrote (24/06/2014; elsewhere):
    > […] there’s a great difference between writing scientific papers or than composing articles and commentaries for newspapers and magazines

    Reply
    • Frank Wappler wrote [16/07/2014 at 14:27]:
      > [latexpage&#93
      > $ a circ f = f circ b , imples , forall j, k in mathbb Z : a circ (a^j circ f circ b^k) = (a^j circ f circ b^k) circ b $.

      Oops – there are two “i”s in “implies”:

      [latexpage]

      $ a circ f = f circ b , implies , forall j, k in mathbb Z : a circ (a^j circ f circ b^k) = (a^j circ f circ b^k) circ b $.

      Reply
    • Frank Wappler wrote [16/07/2014 at 14:27]:
      > [latexpage]
      > $ a circ f = f circ b , imples , forall j, k in mathbb Z : a circ (a^j circ f circ b^k) = (a^j circ f circ b^k) circ b $.

      Oops – there are two “i”s in “implies”:

      [latexpage]

      $ a circ f = f circ b , implies , forall j, k in mathbb Z : a circ (a^j circ f circ b^k) = (a^j circ f circ b^k) circ b $.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *