LaTeX

Installation:

  • Ubuntu

    1
    2
    sudo apt-get install texlive-full	
    sudo apt-get install texmaker
  • Windows

    1. Install Miktex: https://miktex.org/download
    2. Install texmaker or texstudio

Extension:

  1. Latexdiff

Math input:

  1. Include the definition.tex file with macro definition. \input{definition} in the main text.

  2. Mathpix Snip can convert images to LaTeX.

  3. IguanaTex allows you to insert LaTeX formulations in PowerPoint.

Tips:

  1. Refer to this for commonly used symbols

  2. Set color: \usepackage{xcolor} and \textcolor{red}{}

  3. Setlength: set the indentation in paragraphs \setlength\parindent{0pt}; set the separation between paragraphs \setlength{\parskip}{10pt}; set column width in table \setlength{\tabcolsep}{12pt}; set the space below table/figure \setlength{\textfloatsep}{2pt}

  4. Math annotation: expectation \usepackage{amsfonts} and \mathbb{E}; not imply: \usepackage{amssymb} and \nRightarrow

  5. Encoding error: try adding \UseRawInputEncoding or \usepackage[utf8x]{inputenc} or \usepackage{newunicodechar} \newunicodechar{fi}{fi}