-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
131 lines (121 loc) · 3.38 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
# title: |
# {width=100%}
title: "Cómo usar Google Earth Engine y no fallar en el intento"
author: "Jonathan Vidal Solórzano Villegas y Gabriel Alejandro Perilla Suárez"
documentclass: book
# output:
# bookdown::pdf_document2:
# fig_caption: yes
# number_sections: true
# global_numbering: true
# bibliography: [book.bib] # para usar referencias bibliográficas
# biblio-style: apalike
link-citations: yes
linestretch: 1.1
linkcolor: darkblue
urlcolor: darkblue
toccolor: black
toc-title: "Índice"
subparagraph: true
papersize: letter
# mainfont: "Latin Modern Roman"
# monofont: "Monospace"
fontsize: 12pt # tamaño puede ser 10, 11 o 12pt solo
fontfamily: times # palatino, helvet, utopia, times, pifont, courier, bookman, newcent y avant
classoption: twoside # dos caras
pagestyle: empty
openright: yes # los capitulos siempren empiezan a la derecha en pag nueva
number_sections: true
# lot_title: "Índice de Ejercicios"
# lot: true
# lof: true
# lofcolor: black
geometry:
- tmargin=2.5cm
- bmargin=2.5cm
- lmargin=2.5cm
- rmargin=2.5cm
- headheight=2.5cm
- bottom=2.5cm
---
```{r setup, include=FALSE, echo = F}
library(formatR)
# para automatizar la referencia a las figuras
library(captioner)
fig_nums <- captioner()
# Set global options for chunks
knitr::opts_chunk$set(out.width = "80%",
fig.align = "center",
dpi = 150,
tidy.opts=list(width.cutoff=80),
tidy=TRUE,
fig.pos = "H",
fig.show = "hold")
# Function to color
colorize <- function(x) {
color <- "darkblue"
if (knitr::is_latex_output()) {
sprintf("\\textcolor{%s}{%s}", color, x)
} else if (knitr::is_html_output()) {
sprintf("<span style='color: %s;'>%s</span>", color,
x)
} else x
}
colorize2 <- function(x) {
color <- "darkpurple"
if (knitr::is_latex_output()) {
sprintf("\\boldpurple{%s}", x)
} else if (knitr::is_html_output()) {
sprintf("<span style='color: %s;'>%s</span>", color,
x)
} else x
}
colorize3 <- function(x) {
color <- "darkpurple"
if (knitr::is_latex_output()) {
sprintf("\\textcolor{%s}{%s}", color, x)
} else if (knitr::is_html_output()) {
sprintf("<span style='color: %s;'>%s</span>", color,
x)
} else x
}
colorizered <- function(x) {
color <- "red"
if (knitr::is_latex_output()) {
sprintf("\\textcolor{%s}{%s}", color, x)
} else if (knitr::is_html_output()) {
sprintf("<span style='color: %s;'>%s</span>", color,
x)
} else x
}
colorizeblue <- function(x) {
color <- "blue"
if (knitr::is_latex_output()) {
sprintf("\\textcolor{%s}{%s}", color, x)
} else if (knitr::is_html_output()) {
sprintf("<span style='color: %s;'>%s</span>", color,
x)
} else x
}
# # Set Ejercicio as "language"
# knitr::knit_engines$set(Ejercicio = function(options) {
# # the source code is in options$code; just do
# # whatever you want with it
# })
#
# def_list = list()
# knitr::knit_hooks$set(engine = function(before, options) {
# if (before && options$engine == 'Ejercicio') {
# # collect Ejercicio terms from options$name
# def_list[[options$label]] <<- options$name
# }
# NULL
# })
```
```{=latex}
\setlength{\aweboxleftmargin}{0.1\linewidth}
\setlength{\aweboxcontentwidth}{0.85\linewidth}
\setlength{\aweboxvskip}{1mm}
\setlength{\aweboxrulewidth}{5pt}
```