LaTeX

General

  • Use \input{filename.tex} to include content of another latex file in the main tex file.
  • For making PPTs in Latex Beamer is very useful. For customization options refer Beamer appearance cheat sheet

Images

  • For creating publication ready images, I recommend the following 2 things * Dia (Available on both Ubuntu and OSX). On Mac, the controls are slightly different.

    • Dia has some installation issues on OSX. This blog helps us fix it.
    • ctrl+x, ctrl+c, ctrl+v, ctrl+s for cut, copy, paste and save (Don’t use command button)
    • ctrl+e for viewing the entire image on a single page canvas.
    • fn+delete to delete an object.
    • fn+left arrow, fn+right arrow for jumping to beginning or ending of the text.
    • Space + double click on canvas to insert an image from system.
    • fn+shift+click to select multiple objects.
    • Dia has the capability to export the diagram to tikz/latex code. One can use that functionality to further improve the diagram by editing the tikz code.

Tables

If your table spans more space than the width of a page, you can use the command scriptsize to fit it exactly in 1 coloumn.

Spell Correction

  • Use aspell -t -c file.tex from terminal to highlight the mis-spelled words in a latex file.