Modificacion a ejemplos
This commit is contained in:
parent
1d050b0873
commit
8ed674f8de
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.tmp
|
||||
videos
|
||||
build
|
||||
.DS_Store
|
||||
|
||||
2
.nvimrc
Normal file
2
.nvimrc
Normal file
@ -0,0 +1,2 @@
|
||||
au BufWritePost src/*.tex silent make build/%:t:r.pdf | echo "Done"
|
||||
|
||||
7
Makefile
7
Makefile
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
build/%.pdf: src/%.tex
|
||||
mkdir -p $(shell dirname $@)
|
||||
rm -rf .tmp
|
||||
@ -8,6 +6,5 @@ build/%.pdf: src/%.tex
|
||||
cd .tmp ; pdflatex input.tex
|
||||
cp .tmp/input.pdf $@
|
||||
|
||||
serve:
|
||||
mkdir -p build
|
||||
python -m http.server --directory build/
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
40
src/d1-01-ejemplo.tex
Normal file
40
src/d1-01-ejemplo.tex
Normal 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}
|
||||
12
src/d1.tex
12
src/d1.tex
@ -1,12 +0,0 @@
|
||||
% -- Preámbulo
|
||||
\documentclass{article}
|
||||
|
||||
% idioma y entrada
|
||||
\usepackage[utf8]{inputenc}
|
||||
|
||||
|
||||
% -- Cuerpo del documento
|
||||
\begin{document}
|
||||
Hola mundo 3
|
||||
|
||||
\end{document}
|
||||
Loading…
Reference in New Issue
Block a user