% Comandos personalizados

\providecommand{\abs}[1]{\lvert#1\rvert}
\providecommand{\norm}[1]{\lVert#1\rVert}
\newcommand{\grad}{^{\circ}}
\newcommand{\IN}{\mathbb{N}}
\newcommand{\IZ}{\mathbb{Z}}
\newcommand{\IQ}{\mathbb{Q}}
\newcommand{\IR}{\mathbb{R}}
\newcommand{\IC}{\mathbb{C}}
\newcommand{\bt}{\begin{tabular}}
\newcommand{\et}{\end{tabular}}
\newcommand{\dd}[2]{\dfrac{d #1}{d #2}\;}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\I}{\mathbb{I}}
\newcommand{\raya}{\rule{2cm}{0.01cm}\\}
\newcommand{\ds}{\displaystyle}
\newcommand{\sen}{\mathop{\rm sen}\nolimits}
\newcommand{\senh}{\mathop{\rm senh}\nolimits}
\newcommand{\arcsen}{\mathop{\rm arcsen}\nolimits}
\newcommand{\arcsec}{\mathop{\rm arcsec}\nolimits}
\newcommand{\arccot}{\mathop{\rm arccot}\nolimits}
\newcommand{\bc}{\begin{center}}
\newcommand{\ec}{\end{center}}
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\newcommand{\lbe}{\begin{enumerate}[leftmargin=\parindent,align=left,labelwidth=\parindent,labelsep=1pt]}
\newcommand{\p}[1]{$\,#1\,$}
\newcommand{\gfrac}{\dfrac}
\newcommand{\dpr}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\dep}[2]{\,\dfrac{\partial #1}{\partial #2}\,}
\newcommand{\bv}[1]{\left.#1\right|}% uso \bv{}_P
\newcommand{\es}{\,\in\,}
\newcommand{\esp}{\bigskip}
\usepackage{makecell}
%%-------------------------------------------------------------------------
\usepackage{calc}
\newlength{\maxmin}
\setlength{\maxmin}{\widthof{$\max$}-\widthof{$\min$}}
%%-------------------------------------------------------------------------
\tikzset{>=latex} % for LaTeX arrow head
%\usepackage{xcolor}
\newcommand{\wred}[1]{{\textcolor{magenta}{#1}}}
\newcommand{\wblue}[1]{{\textcolor{blue}{#1}}}
\newcommand{\rr}[1]{{\textcolor{magenta}{#1}}}
\colorlet{myblue}{black!40!blue}
\colorlet{myred}{black!40!red}
%%-------------------------------------------------------------------------
\newcommand{\block}[1]{
	\underbrace{1 \cdots 1}_{#1}
}
%%-------------------------------------------------------------------------
\newcommand{\bs}[1]{\boldsymbol{#1}}
\newcommand{\vlg}{!{\color{lightgray}\vrule}}
\newcommand{\hlg}{\arrayrulecolor{lightgray}\hline}
\newcommand{\no}{\bs{\;\neg \;}}
\newcommand{\y}{\bs{\;\wedge\;}}
\newcommand{\oo}{\bs{\;\vee\;}}
\newcommand{\eqv}{\,\bs{\;\;\equiv}\,\;}
\newcommand{\fl}{\bs{\rightarrow}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

%%-------------------------------------------------------------------------
\newcommand{\ff}{\mathtt{f}}
%%-------------------------------------------------------------------------
\newcolumntype{A}{>{\columncolor{red!20}}c}
\newcolumntype{B}{>{\columncolor{blue!20}}c}
%%-------------------------------------------------------------------------
\newcommand{\sys}[2]{\left\{\begin{array}{#1}
#2
 \end{array}\right.}
\newcommand{\warr}[2]{\begin{array}{#1}
#2
 \end{array}}
 \definecolor{azulF}{rgb}{.0,.0,.3}
\newcommand{\azulf}{\color{azulF}}
%^\usepackage[d]{esvect}
\renewcommand{\vec}[1]{\boldsymbol{#1}}
\newcommand{\paren}[1]{\left(#1\right)}
\newcommand{\wfnt}[1]{{\fontfamily{pag}\fontsize{10}{1}\fontseries{b}\fontshape{n}\selectfont{#1}}}
\newcommand{\wsolu}{\fvnp{Soluci\'on.} }


\newcommandx*\mpage[4][1=0.45,2=0.45]{\begin{minipage}[t]{#1 \textwidth} #3
\end{minipage}
\  \ \hfill \begin{minipage}[t]{#2 \textwidth} #4
\end{minipage}}
%%% Que no haga nada!
\renewcommandx*\mpage[4][1=0.45,2=0.45]{#3#4}


\newcommand{\inxx}[1]{} % nada por ahora
\DeclareRobustCommand{\Colon}{{%
  \ooalign{%
    \hidewidth\raisebox{0.2ex}{/}\kern0.1em\hidewidth\cr
    C\cr
    \hidewidth\kern0.1em\raisebox{0.2ex}{/}\hidewidth\cr
  }%
}}
%%--------------------------------------------------------------------------
% Colores para graficos

\definecolor{cgraf7}{RGB}{147,178,195}   % azul claro
\definecolor{cgraf6}{RGB}{237,125,49}    % naranja
\definecolor{cgraf8}{RGB}{116,179,54}    % verde
\definecolor{cgraf4}{RGB}{235,98,53}     % rojo-anaranjado
\definecolor{cgraf5}{RGB}{142,124,195}   % morado
\definecolor{cgraf2}{RGB}{165,103,0}     % caf\'e
\definecolor{cgraf1}{RGB}{35,101,224}    % azul intenso
\definecolor{cgraf3}{RGB}{255,191,0}     % amarillo
\definecolor{cgraf9}{RGB}{204,102,194}   % magenta
\definecolor{cgraf10}{RGB}{162,166,0}    % verde oliva
\definecolor{cgraf11}{RGB}{226,85,54}    % rojo
\definecolor{cgraf12}{RGB}{96,126,205}   % azul medio
\definecolor{cgraf13}{RGB}{240,150,17}   % naranja oscuro
\definecolor{cgraf14}{RGB}{188,91,128}   % rosado
\definecolor{cgraf15}{RGB}{71,182,109}   % verde claro

\definecolor{magentaencabezado}{HTML}{CC66C2}
\definecolor{grislinea}{HTML}{C8C8C8}
%
% \definecolor{cgraf7}{HTML}{93B2C3} % azul claro
% \definecolor{cgraf6}{HTML}{ED7D31} % naranja
% \definecolor{cgraf8}{HTML}{74B336} % verde
% \definecolor{cgraf4}{HTML}{EB6235} % rojo-anaranjado
% \definecolor{cgraf5}{HTML}{8E7CC3} % morado
% \definecolor{cgraf2}{HTML}{A56700} % caf\'e         %% 2do
% \definecolor{cgraf1}{HTML}{2365E0} % azul intenso %% INI
% \definecolor{cgraf3}{HTML}{FFBF00} % amarillo
% \definecolor{cgraf9}{HTML}{CC66C2} % magenta
% \definecolor{cgraf10}{HTML}{A2A600} % verde oliva
% \definecolor{cgraf11}{HTML}{E25536} % rojo
% \definecolor{cgraf12}{HTML}{607ECD} % azul medio
% \definecolor{cgraf13}{HTML}{F09611} % naranja oscuro
% \definecolor{cgraf14}{HTML}{BC5B80} % rosado
% \definecolor{cgraf15}{HTML}{47B66D} % verde claro
\newcommand{\ExternalLink}{%
   \,\tikz[x=1.2ex, y=1.2ex, baseline=-0.05ex]{%
        \begin{scope}[x=1ex, y=1ex]
            \clip (-0.1,-0.1)
                --++ (-0, 1.2)
                --++ (0.6, 0)
                --++ (0, -0.6)
                --++ (0.6, 0)
                --++ (0, -1);
            \path[draw,
                line width = 0.5,
                rounded corners=0.5]
                (0,0) rectangle (1,1);
        \end{scope}
        \path[draw, color=ocre,line width = 0.5] (0.5, 0.5)
            -- (1, 1);
        \path[draw, line width = 0.5] (0.6, 1)
            -- (1, 1) -- (1, 0.6);
        }
    }
