Notepad/enter/Coding Tips (Classical)/Terminal Tips/Languages/LaTeX.md

2.8 KiB

LaTeX

LaTex is an extremely high quality document creator and type-setting software and programming language. You can produce sophisticated articles, reports, books, letters, and slides this way for presentation of information to the scientific community.

Make sure to read the README.md file upon installation also found here.

You can learn more at learnlatex.org. Or watch this amazing youtube video preparing math notes in LaTeX using vim and terminal!


Some really great extra features

  • it is possible to create/write books and publish them directly to github with BookDown
    • the example is able to view here.
    • the git repo is here
    • for elegantPaper instead of Book, the repo is here
    • your ElegantBook latex project is here
    • all the available "elegant" projects are here

For a letter for instance, a document class will look like this:

\documentclass{letter}
\usepackage[T1]{fontenc}
\begin{document}

\begin{letter}{Some Address\\Some Street\\Some City}

\opening{Dear Sir or Madam,}

This is an example of a highly sophisticated & educated correspondence.

\closing{Yours,}

\end{letter}

\end{document}

In another example, we may see an article document may be written:

\documentclass{article} % Change the class here
\usepackage[T1]{fontenc}

\begin{document}

\section{Introduction}

This is a sample document with some dummy
text\footnote{and a footnote}. This paragraph is quite
long as we might want to see the effect of making the
document have two columns.

\end{document}

LaTeX Presentations

  • some examples and templates can be found here
    • They are very clean and academic-looking
  • How to create your own LaTeX Presentation!
    • follow this tutorial to get started :)

We start by defining the document-class

\documentclass[landscape]{slides}

But you may be better off editing a document simply through Overleaf as well.

!Pasted image 20220825004820.png

Latex Cheatsheet:


  • use \ for spaces if not already handles
  • for the Obsidian plugin use $$ to enable
  • for multi-integer exponentiation use a^{34 + 65}