Nuevos archivos del dia 2
This commit is contained in:
parent
a010905e6c
commit
dbe55fe938
94
src/d2-01-ejemplo.tex
Normal file
94
src/d2-01-ejemplo.tex
Normal file
@ -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}
|
||||||
36
src/d2-02-ejemplo.tex
Normal file
36
src/d2-02-ejemplo.tex
Normal file
@ -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}
|
||||||
28
src/d2-03-ejemplo.tex
Normal file
28
src/d2-03-ejemplo.tex
Normal file
@ -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}
|
||||||
Loading…
Reference in New Issue
Block a user