From 9f8b99720370698604df527088a2c0b328065f71 Mon Sep 17 00:00:00 2001 From: tiagorg Date: Tue, 25 Oct 2022 16:00:17 +0100 Subject: [PATCH] Initial tools and latex-cheatsheet commit. --- tools/README.md | 5 ++ tools/latex-cheatsheet/README.md | 12 +++ tools/latex-cheatsheet/estrutura.md | 15 ++++ tools/latex-cheatsheet/math.md | 122 ++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+) create mode 100644 tools/README.md create mode 100644 tools/latex-cheatsheet/README.md create mode 100644 tools/latex-cheatsheet/estrutura.md create mode 100644 tools/latex-cheatsheet/math.md diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 0000000..156c4a0 --- /dev/null +++ b/tools/README.md @@ -0,0 +1,5 @@ +# Material Extra +## Material que pode ser util ao longo do curso +--- +#### Lista de ferramentas: +1.  [Latex CheatSheet](https://github.com/TiagoRG/uaveiro-leci/blob/master/tools/latex-cheatsheet)   ·   PDF Download (Não disponível) \ No newline at end of file diff --git a/tools/latex-cheatsheet/README.md b/tools/latex-cheatsheet/README.md new file mode 100644 index 0000000..220db09 --- /dev/null +++ b/tools/latex-cheatsheet/README.md @@ -0,0 +1,12 @@ +# LaTeX CheatSheet +### -- Under Development -- +--- +## Índice +|ID |Tópico | +|---------------------:|-----------------------------------------| +|Comandos de estrutura |[estrutura.md](https://github.com/TiagoRG/uaveiro-leci/blob/master/tools/latex-cheatsheet/estrutura.md)| +|Expressões matemáticas|[math.md](https://github.com/TiagoRG/uaveiro-leci/blob/master/tools/latex-cheatsheet/math.md) +#### Todos os comandos são introduzidos no ficheiro latex usando o caracter \\ atrás do comando. +#### { }  representam argumentos obrigatórios +#### [ ]  representam argumentos facultativos +  \ No newline at end of file diff --git a/tools/latex-cheatsheet/estrutura.md b/tools/latex-cheatsheet/estrutura.md new file mode 100644 index 0000000..7047acf --- /dev/null +++ b/tools/latex-cheatsheet/estrutura.md @@ -0,0 +1,15 @@ +## Compilação em terminal +|Comando|Função| +|-|-| +|pdflatex {ficheiro.tex}|Compila o ficheiro .tex e converte para pdf.| +|bibtex {ficheiro}|Compila o determinado ficheiro de biblioteca, para o ficheiro .tex o reconhecer terá de usar `pdflatex {ficheiro.tex}` após.| + +  + +--- +## Comandos de estrutura +|Comando|Função/Uso| +|-|-| +|`documentclass[options]{class}`|Comando responsável por definir a estrutura do documento.
As 5 classes de codumento são:
· article
· report
· book
· slides
· letter
Dentro das opções está o tamanho da folha (a4paper, etc.), tamanho da letra (11pt, 12pt, ect.), número de colunas (onecolumn, twocolumn), etc.| +|`begin{document}`
...
`end{document}`|Usado para indicar o início e o fim do documento.| +|`begin{thebibliography}`
...
`end{thebibliography}`|Usado para indicar o início e o fim de uma bibliografia. Usado num ficheiro `.bib`. \ No newline at end of file diff --git a/tools/latex-cheatsheet/math.md b/tools/latex-cheatsheet/math.md new file mode 100644 index 0000000..486300c --- /dev/null +++ b/tools/latex-cheatsheet/math.md @@ -0,0 +1,122 @@ +Disclaimer +============================ +### The credits for this sheet goes to [LKS90](https://gist.github.com/LKS90). I just made a few changes! +##### [Original](https://gist.github.com/LKS90/252ac41bd4a173be35b0) +--- +Example expressions / functions +============================ + +Input | Rendered | +-----------------:|----------------:| +`$a = b + c − d$` | $a = b + c − d$ | +`$\sqrt{?\frac{\pi}{2}}$` | $\sqrt{\frac{\pi}{2}}$ | +`$y = a x_1^2 + b x_2 + c$` | $y = a x_1^2 + b x_2 + c$ | + +Special characters / Symbols +============================ +### Latin: +##### No dot: +`\imath` $\rightarrow$ $\imath$, +`\jmath` $\rightarrow$ $\jmath$ + +##### Hat: +`\hat{\imath}` $\rightarrow$ $\hat{\imath}$, +`\hat{\jmath}` $\rightarrow$ $\hat{\jmath}$ + +### Greek Letters: +##### Capital: +LaTex | | LaTex | | +----------:|--:|---------:|--:| +`\Gamma` | Γ | `\Delta` | ∆ | +`\Lambda` | Λ | `\Phi` | Φ | +`\Pi` | Π | `\Psi` | Ψ | +`\Sigma` | Σ | `\Theta` | Θ | +`\Upsilon` | Υ | `\Xi` | Ξ | +`\Omega` | Ω | | | + +##### Lowercase: +LaTex | | LaTex | | +----------:|--:|----------:|--:| +`\alpha` | α | `\nu` | ν | +`\beta` | β | `\kappa` | κ | +`\gamma` | γ | `\lambda` | λ | +`\delta` | δ | `\mu` | µ | +`\epsilon` | ϵ | `\zeta` | ζ | +`\eta` | η | `\theta` | θ | +`\iota` | ι | `\xi` | ξ | +`\pi` | π | `\rho` | ρ | +`\sigma` | σ | `\tau` | τ | +`\upsilon` | υ | `\phi` | φ | +`\chi` | χ | `\psi` | ψ | +`\omega` | ω | | | + +##### Other: +LaTex | | LaTex | | +-----------:|---|------------:|--:| +`\digamma` | ϝ | `varepsilon`| ε | +`\varkappa` | ϰ | `\varphi` | ϕ | +`\varpi` | ϖ | `\varrho` | ϱ | +`\varsigma` | ς | `\vartheta` | ϑ | +`\eth` | ð | `\hbar` | $\hbar$ | + + +### Other: +#### Other Symbols +LaTex | | LaTex | | +-------------:|---|-----------------:|--:| +`\partial` | ∂ | `\infty` | ∞ | +`\wedge` | ∧ | `\vee` | ∨ | +`\neg` `\not` | ¬ | | | +`\bot` | ⊥ | `\top` | ⊤ | +`\nabla` | ∇ | `\varnothing` | ∅ | +`\angle` | ∠ | `\measuredangle` | ∡ | +`\surd` | √ | `\forall` | ∀ | +`\exists` | ∃ | `\nexists` | ∄ | + +#### Relational Symbols +LaTex | | LaTex | | +-----------------:|---|-------------------:|---------:| +`\hookrightarrow` | ↪ | `\Rightarrow` | ⇒ | +`\rightarrow` | → | `\Leftrightarrow` | ⇔ | +`\nrightarrow` | ↛ | `\mapsto` | $\mapsto$ | +`\geq` | ≥ | `\leq` | ≤ | +`\equiv` | ≡ | `\sim` | ∼ | +`\gg` | ≫ | `\ll` | ≪ | +`\subset` | ⊂ | `\subseteq` | ⊆ | +`\in` | ∈ | `\notin` | ∉ | +`\mid` | $\mid$ | `\propto` | ∝ | +`\perp` | ⊥ | ` \parallel` | ∥ | +`\vartriangle` | $\vartriangle$ + +#### Binary operators +LaTex | | LaTex | | +------------:|---|-------:|--:| +`\wedge` | ∧ | `\vee` | ∨ | +`\neg``\not` | ¬ | | | + +#### Cumulative operators +LaTex | | LaTex | | +---------:|-----------|------------:|------------:| +`\int` | ∫ | `\iint` | $\iint$ | +`\iiint` | $\iiint$ | `\idotsint` | $\idotsint$ | +`\prod` | $\prod$ | `\sum` | $\sum$ | +`\bigcup` | $\bigcup$ | `\bigcap` | $\bigcap$ | + +#### Named operators +|LaTex||LaTex|| +|--------:|---------|---------:|----------| +|`\arccos`|$\arccos$|`\injlim` |$\injlim$ | +|`\arcsin`|$\arcsin$|`\lg` |$\lg$ | +|`\arctan`|$\arctan$|`\lim` |$\lim$ | +|`\arg` |$\arg$ |`\liminf` |$\liminf$ | +|`\cos` |$\cos$ |`\limsup` |$\limsup$ | +|`\cosh` |$\cosh$ |`\ln` |$\ln$ | +|`\cot` |$\cot$ |`\log` |$\log$ | +|`\coth` |$\coth$ |`\max` |$\max$ | +|`\deg` |$\deg$ |`\min` |$\min$ | +|`\det` |$\det$ |`\Pr` |$\Pr$ | +|`\dim` |$\dim$ |`\projlim`|$\projlim$| +|`\exp` |$\exp$ |`\sec` |$\sec$ | +|`\gcd` |$\gcd$ |`\sin` |$\sin$ | +|`\hom` |$\hom$ |`\sinh` |$\sinh$ | +|`\inf` |$\inf$ |`\sup` |$\sup$ | \ No newline at end of file