1
0

Modificacion a ejemplos

This commit is contained in:
Miguel Salgado 2023-11-08 11:56:37 -08:00
parent 1d050b0873
commit 8ed674f8de
5 changed files with 45 additions and 17 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.tmp .tmp
videos videos
build build
.DS_Store

2
.nvimrc Normal file
View File

@ -0,0 +1,2 @@
au BufWritePost src/*.tex silent make build/%:t:r.pdf | echo "Done"

View File

@ -1,5 +1,3 @@
build/%.pdf: src/%.tex build/%.pdf: src/%.tex
mkdir -p $(shell dirname $@) mkdir -p $(shell dirname $@)
rm -rf .tmp rm -rf .tmp
@ -8,6 +6,5 @@ build/%.pdf: src/%.tex
cd .tmp ; pdflatex input.tex cd .tmp ; pdflatex input.tex
cp .tmp/input.pdf $@ cp .tmp/input.pdf $@
serve: clean:
mkdir -p build rm -rf build
python -m http.server --directory build/

40
src/d1-01-ejemplo.tex Normal file
View File

@ -0,0 +1,40 @@
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
% -- Cuerpo del documento
\begin{document}
Hola mundo.
\section{Ejemplo}
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\draw[thick, OliveGreen, fill=OliveGreen!25] (0, 0) rectangle (4, 4);
\draw[thick, OliveGreen, fill=White!0] (2, 2) circle (2);
\draw[semithick, dashed, gray] (2, 2) to (4, 2);
\node[above] at (3, 2) {$R$};
\node[below] at (2, 0) {$A = (4 - \pi) R^2$};
\end{tikzpicture}
\caption{Área de la región sombreada.}
\end{figure}
\section{Ejemplo}
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\draw[thick, Green, fill = Green!15] (0,0) rectangle (5,3);
\node at (2.5,1.5) {$2x(3x + 7)$};
\draw[|-|] (5.5,3) to node[fill = white] {$2x$} (5.5,0);
\draw[|-|] (0,-0.5) to node[fill = white] {$3x + 7$} (5,-0.5);
\end{tikzpicture}
\caption{Expresión algebraica del área de un rectángulo.}
\end{figure}
\end{document}

View File

@ -1,12 +0,0 @@
% -- Preámbulo
\documentclass{article}
% idioma y entrada
\usepackage[utf8]{inputenc}
% -- Cuerpo del documento
\begin{document}
Hola mundo 3
\end{document}