Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 2.34 KB

LaTeX.md

File metadata and controls

91 lines (66 loc) · 2.34 KB

LaTeX section

For handy things in LaTeX

Images

Add border to an image

Read here

Crop an image

Read here

Tables

Color a single cell

Read here

Text format

Whole paragraph identation

\vspace{0.6cm}
\hfill\begin{minipage}{\dimexpr\textwidth-2cm}

  Hello!

\xdef\tpd{1cm}
\end{minipage}
\vspace{0.6cm}

Read here

Math

Create conditional equations

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\[
    f(x)= 
\begin{cases}
    \frac{x^2-x}{x},& \text{if } x\geq 1\\
    0,              & \text{otherwise}
\end{cases}
\]
\end{document}

Read here

Equation generator

Visit here

XOR symbol in math

$\xor$ Read here

Text striketrough (crossed)

Read here

Code

Copy-pasteable listings (no spaces)

\lstset{basicstyle = \ttfamily,columns=fullflexible}

Read here

Assembly language listings

\begin{lstlisting}[language={[x86masm]Assembler}]
push eax
\end{lstlisting}

Read here

Miscellaneous

Opening and closing quotation marks

Read here

References to chapters/sections by name and number

Read here

Prevent line break

Read here

Different column width

Read here