Skip to content

Latest commit

 

History

History
137 lines (106 loc) · 1.91 KB

latex.md

File metadata and controls

137 lines (106 loc) · 1.91 KB

LaTex

Symbols

Find Symbols with Dexterify

\lor %Logical OR ∨
\land %Logical AND ∧
\lnot %Logical NOT ¬

% Set
\mathbb{R}
\setminus & without 

%Brackets
\langle \rangle % Angled Brackets 〈〉

\ddots % Diagonal dots
\vdots % Vertical dots
\hdots % Horizontal dots

\usepackage{ marvosym }
\Lightning % lightning bolt, contradiction
\usepackage{amssymb}
\checkmark % checkmark

\overset{!}{=} % Gives a equal with a exclamation point above

\usepackage{mathtools}
\coloneqq % := (define symbol) 

Braces

\underbrace{2*p}_{\text{even number}}

Function

f : \mathbb{N} \to \mathbb{R}


\usepackage{amsmath} % cases
f(x) = \begin{cases} 
  0 & x\leq 0 \\
  \pi & 100\leq x 
\end{cases}

Fonts

% Caligraphic font in math
\mathcal{text}

\usepackage{amsfonts} 
% or 
\usepackage{amssymb}
\mathbb{R}

Include Graphic

\begin{center}
  \includegraphics[width = 0.85\textwidth]{graphic.png}
\end{center}

Include Code

{\tt file\_name.m }
\lstinputlisting[language=MatLab]{file_name.m}

Inline code

\begin{lstlisting}[escapeinside={(*}{*)},language=MatLab]
  if foo
  list= { (*$S_1,S_2,S_3$*) }
\end{lstlisting}

Multi colum formulas

\usepackage{multicol}

\begin{multicols}{2}
  \begin{align*}
    1 + 1 &= 2
  \end{align*}
  \columnbreak
  \begin{align*}
    2 + 1 &= 3
  \end{align*}
\end{multicols}

Tables

\begin{center}
  \begin{tabular}{|l|c|r|}
    \hline
    Title1 & Tile2 & Tile3 \\
    \hline
    1      & test  & 51989 \\
    2      & test  & 62782 \\
    \hline
  \end{tabular}
\end{center}

Matrix / Vector

\begin{align*}
  \begin{bmatrix}
  0 & 1 \\
  2 & 3 \\
  \end{bmatrix}
\end{align*}

QED, black square after proof

\newcommand{\QED}{\tag*{$\blacksquare$}}
\begin{align*}
  x + 0 &= x
  \QED
\end{align*}