Archive

Archive for February, 2010

Display math formula on WordPress

February 28, 2010 Leave a comment

There are quite several plugins that can display complex math formula in wordpress blog. You can add this sort of plugin easily by search “latex” in plugins search. The plugin I’m using is “wp-latex”. Here is the link
http://wordpress.org/extend/plugins/wp-latex/faq/

Example: You can do something like this

p(\bar{x}_{i}|\mathbf{y})=\frac{1}{Z}\exp\left[ \sum_{i}A_{i}(x_{ij}^{T}\alpha_{i})\right]

Advertisements
Categories: Academics, Reviews

Slides presentation using LaTeX

February 16, 2010 Leave a comment

I found some good tutorial on how to use LaTeX for presentation slides. Looks like there are several packages to do the job; Beamer and Prosper. However, it seems to me like Beamer is easier to use. I guess I’m going to try Beamer package first.

Beamer

Prosper

Categories: Tutorials

My first LaTeX

February 15, 2010 Leave a comment

Normally I use Microsoft word to type up all my equations. That’s a lot of work to do. I keep postponing using LaTex for years, but now I think the time arrives!!! This is my note on LaTex.

\documentclass{article}
\usepackage{amsmath}
%\usepackage{amssymbol}
\usepackage{amsfonts}
\title{My first LaTex}
\author{Bot}
\begin{document}
\maketitle
\begin{abstract}
This is a test
\end{abstract}
Hello

\begin{eqnarray}
p(\bar x | \bar y) &=& \frac{1}{2} \exp \left \{ \sum _{i \in S} A_i(x_i,\bar y) +\sum _{i \in S} \sum_{j \in N_i} I_{ij}(x_i,x_j,\bar y) \right \}
\label{Drf}\\
A&=&mc+b\\
\rho \varrho \mathcal{N}
\Leftrightarrow
\end{eqnarray}
As shown in eq (\ref{Drf}), $ \rho A=mc+b$ mass is equivalent to energy.

\end{document}

Note on impressive thing:

  • summation, and parenthesis need not to be symmetry!!!
  • equations can be reference easily
  • in-line eqati0n can be done easily by $equation here$
  • to run the compiler pdflatex filename.tex

Here are some useful links:

http://stackoverflow.com/questions/270121/best-latex-editor-for-windows
http://www.latexeditor.org/how_to_start.html

Categories: Tutorials

LDA

February 9, 2010 Leave a comment
Categories: Uncategorized