Uncategorized

test WordPress default latex, no mathjax

Centered regular text.

 

Non-centered latex text:

asdf

In-line latex text – does not work with certain WordPress themes: zxcv

Centering equation by centering the latex text:

\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}. \\ \displaystyle\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}. \\ \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}. \\ 445asdf123asdfasdfasdfasdfasdfasdfasdf

Above does not work with tables.  Multiple lines with \\ look awkward.  First line is centered but later lines start from the same position as the first line.

 

Aligning equations using \begin{array}.  To center, begin latex with <p align=”center”>\ and \ end ~ with \quad </p>.  Will need to check by going between Visual and Text modes.  Note that there probably will be strange behavior by the location of </p> in the Text mode when going between the two modes and will probably have to correct it multiple times.  Note that the lines need to be tight in Text mode – no extra line of space between the latex code, and this needs to be edited and checked in Text mode, not Visual mode.:

 

\begin{array}{rcl} f: R^3 & \to & R \\  (x,y,z) & \to & x + y + z \\  f(x,y,z) & = & x + y + z  \end{array}

 

Centered table:

\begin{tabular}{ |c|c|c| }  \hline  One & Two & Three \\  \hline  1/2 & 49 & 6 \\  1/3 & 32 & 8 \\  \hline  \end{tabular}

 

asdf

rcl: three columns, the first column right-justified, the middle one centered, and the third column left-justified

Leave a Reply

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