Beruflich Dokumente
Kultur Dokumente
¿Qué es LATEX?
1 Markup Language.
1
¿Por qué LATEX?
2
¿Por qué LATEX?
3
Compilador
Distribuciones
• MiKTeX para Windows
• TeX Live para Linux y S.O. sobre UNIX
• MacTeX es una redistribución de Tex Live para Mac.
4
Editores
Editores
• Bloc de Notas o cualquier editor de texto
• TexStudio
• TexMaker
5
Hello World!
\documentclass{article}
\begin{document}
Hello World!
\end{document}
6
Basics
Componentes de un documento LATEX
1. Document Class
2. Preamble
3. El documento
4. Section, subsection y subsubsection
5. Environments
6. Comandos
7
Document Class
\documentclass{article}
2Y sus tareas.
3 Como esta presentación
8
Preamble
\usepackage{amsmath,amsfonts,graphicx}
\usepackage{showexpl,listings}
\usepackage[usenames,dvipsnames]{xcolor}
4 Ver slide 10
9
El documento (\begin{document}..)
\begin{document}
NO HAY PAN!
\end{document}
5 Ver slide 12
10
Section, subsection y subsubsection
1. \section
2. \subsection
3. \subsubsection
4. \paragraph
5. \subparagraph
11
Environments
\begin{center}
Hola, estoy centrado!
\end{center}
produce lo siguiente:
12
Comandos
\textbf{Estoy en negrita.} \\
\Large{Soy muy grande!} \\
$\hat{a} = \frac{\vec{a}}{|\vec{a}|}$
\includegraphics[width=.4\linewidth]{img/appa.jpg}
Estoy en negrita.
Soy muy grande!
⃗a
â = |⃗a|
14
Math mode: Inline
15
Math mode: Display
Demuestre que:
$$A \cup B = B \cup A$$
Demuestre que:
A∪B=B∪A
16
Algunos símbolos
18
Simbolos y comandos matemáticos en acción
1. ai+2 = ai + ai+1
$a_{i+2} = a_i + a_{i+1}$
2. a2 + b2 = c2
$a^2 + b^2 = c^2$
3. {∀a ∈ A | a es primo}
$\{\forall a \in A \mid a \text{es primo}\}$
19
Simbolos y comandos matemáticos en acción
4.
∑
n
n ∗ (n + 1)
k=
2
k=0
$$\sum_{k=0}^{n} k = \frac{n*(n+1)}{2}$$
5. {
1 if n = 0
f(n) =
f(n − 1) ∗ n if n > 0.
$$f(n) =
\begin{cases}
1 & \text{if } n = 0 \\
f(n-1) * n & \text{if } n > 0.
\end{cases} $$
20
LaTeX like a boss
BibTex
@article{jlreuttermagic2002,
author = {Juan L. Reutter},
title = {Building a winning Deck},
journal = {MtG},
year = {2002}
}
\cite{jlreuttermagic2002}
\bibliographystyle{acm}
\bibliography{refs}
22
Un buen código debe estar ordenado (?)
\begin{document}
\begin{center}
{\huge Tarea 1}
\end{center}
\begin{enumerate}
\item Pregunta 1\\
\input{p1.tex}
\item Pregunta 2\\
\input{p2.tex}
\end{enumerate}
\end{document}
23
Environments útiles! :D
Array
\begin{equation*}
\begin{array}{lcccr}
a, b, c & \in & A_1 & \subset & A\\
b, d, e, f, g, h & \in & A_2 & \subset & A
\end{array}
\end{equation*}
a, b, c ∈ A1 ⊂ A
b, d, e, f, g, h ∈ A2 ⊂ A
24
Enumerate
\begin{enumerate}
\item Soy un item numerado.
\item Yo tambien!
\end{enumerate}
25
Itemize
\begin{itemize}
\item Solo me dieron un punto ordinario! :(
\item También quiero un numero.
\end{itemize}
26
Tabular
\begin{tabular}{ c | c | c }
x & o & x \\ \hline
o & x & o \\ \hline
o & &
\end{tabular}
x o x
o x o
o
27
Paquetes útiles
Paquetes útiles
28
Links útiles
Y cómo hago un backslash? :(
http://detexify.kirelabs.org
29
Links útiles
1. https://google.com
2. http://sharelatex.com/learn
3. http://tex.stackexchange.com
4. http://en.wikibooks.org/wiki/LaTeX
5. https://www.codecogs.com/latex/eqneditor.php
6. http://www.tablesgenerator.com/
30
Fin