Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Graphics in LaTeX

  1. Generally PDF figures are preferred for LaTeX code.

  2. There are many useful commands in Linux for converting between different types of figures, e.g., convert, pdf2ps, etc. So it does not matter much which types of figures you produce. You can always convert them into other format when needed.

  3. The …

Convert LaTeX to Word

pandoc is a general purpose tool for converting between different type of documents, however, it is not good at converting LaTeX code to word. tex4ht is a better tool for converting LaTeX code to word. The following are instructions to use tex4ht to convert LaTeX to word.

  1. Compile your LaTeX …

Useful Packages and Commands for LaTex

Math Packages

  1. \usepackage{amssymb}
    • popular math fonts
  2. \usepackage{dsfont}
    • \mathds font
  3. \usepackage{bm} % bold math symbols
    • bold math symbols
  4. \usepackage{amsmath}
    • math formulas.
  5. \usepackage{amsthm}
    • theorem environments
    • proof enviroment

List Packages

  1. \usepackage{enumerate}
    • universal list

Graphics Packages

  1. \usepackage{ifpdf}
    • allow including figures without extensions and select the right type of …