-
Notifications
You must be signed in to change notification settings - Fork 1
/
arso.tex
76 lines (64 loc) · 1.78 KB
/
arso.tex
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
\usepackage{tcolorbox}
\usepackage{caption}
\usepackage{amsmath}
% Add required stuff for kableExtra
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{colortbl}
\usepackage{pdflscape}
\usepackage{tabu}
\usepackage{threeparttable}
\usepackage{threeparttablex}
\usepackage[normalem]{ulem}
\usepackage{makecell}
\usepackage{xcolor}
\setlength{\fboxsep}{.8em}
% make it spanish
\ifxetex
\usepackage{polyglossia}
\setmainlanguage{spanish}
% Tabla en lugar de cuadro
\gappto\captionsspanish{\renewcommand{\tablename}{Tabla}
\renewcommand{\listtablename}{Índice de tablas}}
\else
\usepackage[spanish,es-tabla]{babel}
\fi
\newtcolorbox{infobox}{
colback = lightgray,
colframe = black,
coltext = black,
boxsep = 5pt,
arc = 4pt
}
\newenvironment{row}[1][]{}{}
\newenvironment{col}[1]{\begin{minipage}[t]{#1}\ignorespaces}{%
\end{minipage}
\ifhmode\unskip\fi
\aftergroup\useignorespacesandallpars}
\def\useignorespacesandallpars#1\ignorespaces\fi{%
#1\fi\ignorespacesandallpars}
\makeatletter
\def\ignorespacesandallpars{%
\@ifnextchar\par
{\expandafter\ignorespacesandallpars\@gobble}%
{}%
}
\makeatother
\newenvironment{lcolumn-20}[1]{\col{#1}}{\endcol}
\newenvironment{rcolumn-80}[1]{\col{#1}}{\endcol}
\newenvironment{lcolumn-50}[1]{\col{#1}}{\endcol}
\newenvironment{rcolumn-50}[1]{\col{#1}}{\endcol}
% Extra template...
% \newenvironment{col}[1]{\template{#1}}{\endtemplate}
%% change fontsize of R code
%\let\oldShaded\Shaded
%\let\endoldShaded\endShaded
%\renewenvironment{Shaded}{\footnotesize\oldShaded}{\endoldShaded}
%% change fontsize of output
%\let\oldverbatim\verbatim
%\let\endoldverbatim\endverbatim
%\renewenvironment{verbatim}{\footnotesize\oldverbatim}{\endoldverbatim}