From dbe55fe938a575775707d8253e1a3312fe52efea Mon Sep 17 00:00:00 2001 From: Miguel Alejandro Salgado Zapien Date: Wed, 8 Nov 2023 17:43:33 -0800 Subject: [PATCH] Nuevos archivos del dia 2 --- src/d2-01-ejemplo.tex | 94 +++++++++++++++++++++++++++++++++++++++++++ src/d2-02-ejemplo.tex | 36 +++++++++++++++++ src/d2-03-ejemplo.tex | 28 +++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 src/d2-01-ejemplo.tex create mode 100644 src/d2-02-ejemplo.tex create mode 100644 src/d2-03-ejemplo.tex diff --git a/src/d2-01-ejemplo.tex b/src/d2-01-ejemplo.tex new file mode 100644 index 0000000..3eee917 --- /dev/null +++ b/src/d2-01-ejemplo.tex @@ -0,0 +1,94 @@ +% -- Preámbulo +\documentclass{article} + +% idioma y entrada +\usepackage[utf8]{inputenc} +\usepackage[spanish]{babel} + +% config de página +\usepackage{fullpage} +\usepackage{caption,subcaption} + +% info. del documento +\title{\textbf{Día 2} \\ \Large\textit{Ángulos}} +\author{Introducción a la creación de gráfico científico con \LaTeX} +\date{19 de abril de 2023} + +% TikZ +\usepackage{tikz} + +% -- Cuerpo del documento +\begin{document} + + % Título + \maketitle + + % -- Ejemplo 1 + \section{Álgebra} + + \begin{figure}[h!] + \centering + + \begin{tikzpicture}[scale = 0.75] + + \def \R {2} + \draw[gray] (0, 0) circle (\R); + + \coordinate (A) at (90:\R); + \coordinate (B) at (90 + 120:\R); + \coordinate (C) at (90 + 240:\R); + \node[above] at (A) {$A$}; + \node[below left] at (B) {$B$}; + \node[below right] at (C) {$C$}; + + + \draw + (A) to node[above left] {$l$} + (B) to node[below] {$l$} + (C) to node[above right] {$l$} + (A); + \draw[fill=black] (A) circle (1.25pt); + \draw[fill=black] (B) circle (1.25pt); + \draw[fill=black] (C) circle (1.25pt); + + + \coordinate (P) at (160:\R); + + \draw[gray] (A) to node[above] {$a$} (P); + \draw[gray] (B) to node[left] {$b$} (P); + \draw[gray] (C) to node[above] {$c$} (P); + + + \end{tikzpicture} + + \caption{Representación del cuadrado de un binomio.} + \end{figure} + + % -- Ejemplo 2 + \section{Geometría} + + % -- fig. principal + \begin{figure}[h!] + \centering + + % -- subfig. a + \begin{subfigure}{0.45\textwidth} + \centering + + % -- código de dibujo + + \caption{Ángulos en un círculo.} + \end{subfigure} + % -- subfig. b + \begin{subfigure}{0.45\textwidth} + \centering + + % -- código de dibujo + + \caption{Ángulos de un polígono irregular.} + \end{subfigure} + + \caption{} + \end{figure} + +\end{document} diff --git a/src/d2-02-ejemplo.tex b/src/d2-02-ejemplo.tex new file mode 100644 index 0000000..d399c8f --- /dev/null +++ b/src/d2-02-ejemplo.tex @@ -0,0 +1,36 @@ +% -- Preámbulo +\documentclass[border = 5mm]{standalone} + +% entrada +\usepackage[utf8]{inputenc} + +% TikZ +\usepackage{tikz} +\usetikzlibrary{angles,quotes} + +% -- Cuerpo del documento +\begin{document} + + \begin{tikzpicture}[scale = 1.2] + + % -- cuadrícula de referencia + \draw[help lines] (-3,-3) grid (3,3); + + % -- círculo principal + \draw[gray] (0,0) circle (2); + + % -- definición de coordenadas + + % -- polígono 1 + + % -- polígono 2 + + % -- ángulos + + % -- puntos + + % -- etiquetas de los puntos + + \end{tikzpicture} + +\end{document} diff --git a/src/d2-03-ejemplo.tex b/src/d2-03-ejemplo.tex new file mode 100644 index 0000000..ce84841 --- /dev/null +++ b/src/d2-03-ejemplo.tex @@ -0,0 +1,28 @@ +% -- Preámbulo +\documentclass[border = 5mm]{standalone} + +% idioma y entrada +\usepackage[utf8]{inputenc} + +% TikZ +\usepackage{tikz} +\usetikzlibrary{angles,quotes} + +% -- Cuerpo del documento +\begin{document} + + \begin{tikzpicture}[scale = 1] + + % -- cuadrícula de referencia + \draw[help lines] (0,0) grid (6,6); + + \coordinate (A) at (1,1); + \coordinate (B) at (0,0); + \coordinate (C) at (0,0); + \coordinate (D) at (0,0); + + % -- ángulos + + \end{tikzpicture} + +\end{document}