Arch Ivo

March 30, 2018 | Author: rhh_artista | Category: Graphic Design, Typography, Application Software, Computing And Information Technology


Comments



Description

%------------------------------------------------------------------------% ARCHIVO .TEX DE DISEÑO % PAQUETES Y ESTILO DEL LIBRO %------------------------------------------------------------------------% Paquetes \usepackage[english,spanish]{babel} \usepackage[latin1]{inputenc} % Entrada de acentos \usepackage[T1]{fontenc} \usepackage[autostyle, spanish = mexican]{csquotes}% manejo de comillas: " " \MakeOuterQuote{"} \usepackage{pslatex} % Fuentes finas postscript %\usepackage[sc]{mathpazo} % Fuentes mathpazo \usepackage{helvet} \linespread{1.05} % Fuente Palatino necesita espaciado \usepackage[full]{textcomp} % Caracteres especiales como ' (recto) \usepackage{xcolor} % Color: X11names (en el documentclass) % COLORES personales-------------------------------------------------\definecolor{colortitulo}{RGB}{11,17,79} % \definecolor{colordominante}{RGB}{11,17,79} \definecolor{colordominanteF}{RGB}{219,68,14} \definecolor{colordominanteD}{RGB}{137,46,55} \definecolor{mostaza}{RGB}{231,196,25} \definecolor{amarilloM}{RGB}{248,199,90} \definecolor{amarilloD}{RGB}{251,237,121} \definecolor{azulF}{rgb}{.0,.0,.3} \definecolor{grisD}{rgb}{.3,.3,.3} \definecolor{grisF}{rgb}{.6,.6,.6} \definecolor{grisamarillo}{RGB}{248,248,245} \definecolor{miverde}{RGB}{44,162,67} \definecolor{verdep}{RGB}{166,206,58} \definecolor{verdencabezado}{RGB}{166,206,58} \definecolor{verdeF}{RGB}{5,92,8} \colorlet{mygray}{black!20} \newcommand{\verde}{\color{miverde}} % Fin COLORES personales-----------------------------------------------\usepackage{psboxit} \usepackage{pstricks} \usepackage{xparse} \usepackage{tcolorbox} \tcbuselibrary{skins,breakable} % Librerías tcolorbox \usepackage{tikz,tkz-tab}% Cajas de Teoremas, ejemplos, etc. \usetikzlibrary{positioning,shadows,backgrounds,calc}% \usepackage{tikzpagenodes} \usepackage{xargs} % Comandos con opciones \DeclareGraphicsExtensions{.pdf,.png,.jpg} \usepackage{multicol} % %\usepackage{epstopdf}% Conversión - Miktes 2.9 o inferior, TexLive 2009. o inferior \usepackage[small,bf]{caption} \usepackage[breaklinks,colorlinks=true, pdfstartview=FitV, linkcolor=azulF, citecolor=azulF, urlcolor=azulF]{hyperref} \usepackage{amsmath,amssymb,amsfonts,latexsym,cancel,stmaryrd}% \usepackage[ruled,,vlined,lined,linesnumbered,algochapter]{algorithm2e } \usepackage{framed} \usepackage{titletoc} \usepackage{calc} \usepackage{colortbl} \usepackage{tabularx} \usepackage{fancyvrb} %\usepackage{minted} %habilitar solo en Ubuntu (Linux) \usepackage{array} \usepackage{wasysym} \usepackage{supertabular} \usepackage{booktabs} %--------------------------------------------------------------------------------------% Fuentes %--------------------------------------------------------------------------------------% Comandos para fuentes especiales \newcommandx*{\fnte}[4][1=pag,2=9,3=n]{{\color{azulF}\fontfamily{#1} \fontsize{#2}{1}\fontshape{#3}\selectfont{#4}}} \newcommandx*{\fntb}[4][1=pag,2=9,3=n]{{\color{azulF}\fontfamily{#1}\f ontsize{#2}{1}\fontseries{b}\fontshape{#3}\selectfont{#4}}} \newcommandx*{\fntg}[4][1=pag,2=9,3=n]{{\color{grisF}\fontfamily{#1}\f ontsize{#2}{1}\fontshape{#3}\selectfont{#4}}} \newcommand{\fhv}[2]{{\fontfamily{pag}\fontsize{#1}{1}\selectfont{#2}} } \newcommand{\fhvb}[2]{{\fontfamily{pag}\fontseries{b}\fontsize{#1}{1}\ selectfont{#2}}} % Fin fuentes--------------------------------------------------------%********************************** DISENO ************************************* %--------------------------------------------------------------------------------------% Cabeceras %--------------------------------------------------------------------------------------\usepackage{fancyhdr} % Números de página en rectángulos y capítulo. Necesitamos posicionar los nodos \usepackage[absolute]{textpos} \setlength{\TPHorizModule}{10mm}% 1 generic horizontal unit is equivalent to 10mm \setlength{\TPVertModule}{10mm}% 1 generic vertical unit is equivalent to 10mm \textblockorigin{0mm}{0mm}% top left corner set as origin %----------------------------------------------------------------------------- % Decoración de cabeceras % Texto en secciones \newcommand{\helvb}{% \fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont} \newcommand{\helv}{% \fontfamily{phv}\fontsize{9}{11}\selectfont} \renewcommand{\sectionmark}[1]{\markright{\thesection\hspace{5pt}#1}{} } % Configuración de fuentes para el número de página en el encabezado \fancyhf{} %OP 1: Todas las páginas con la sección a la izquierda %\fancyhead[LO,LE]{\rightmark} % L=Left, O=Odd y E=Even pages %OP 2: Todas las páginas con la sección a la izquierda en un rectángulo (todo el header) \fancyhead[LO,LE]{\helv\rightmark \begin{textblock}{1}(0,0) \begin{tikzpicture}[remember picture,overlay] %\fill[grisamarillo] (current page.north west) \fill[verdencabezado,opacity=0.7] (current page.north west) rectangle ([xshift=2pt,yshift=-3pt]current page.east|-current page header area.south east); \end{tikzpicture} \end{textblock} } % Fin decoración cabeceras \renewcommand{\headrulewidth}{0pt} % Ancho de la línea bajo el encabezado \addtolength{\headheight}{2.5pt} % Aumente el espacio alrededor de la cabecera \renewcommand{\footrulewidth}{0pt} % Elimina la línea en el pie de página % Estilo para cuando se especifica "pagestyle plain" \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}} % Elimina el encabezado de las páginas impares vacías al final de los capítulos \makeatletter \renewcommand{\cleardoublepage}{ \clearpage\ifodd\c@page\else \hbox{} \vspace*{\fill} \thispagestyle{empty} \newpage \fi} \makeatother % Números de página en el borde \fancyfoot[LO]{ \begin{textblock}{3}(21,1) % y=1 inch = margen \begin{tikzpicture}[overlay] \node[draw=colordominante, rectangle,minimum width=2cm, minimum height=2cm, anchor=west, fill=colordominante,font=\fontsize{25}{1}\sffamily\bfseries,inner sep=2pt,outer sep=2pt] at (-1.5cm,0pt){\textcolor{gray!10}{\thepage}}; \end{tikzpicture} \end{textblock} outer sep=2pt] at (-1. anchor=west.1)% y=1 inch = margen \begin{tikzpicture}[overlay] \node[draw=colordominante. rectangle. minimum height=2cm.minimum width=2cm.0pt){\textcolor{gray!10}{\thepage}}.Fin cabeceras %--------------------------------------------------------------------------------------% Color en los márgenes %--------------------------------------------------------------------------------------% \pagecolor{grisamarillo} % \usepackage{eso-pic} % \pagecolor{grisamarillo} % \AddToShipoutPictureBG{% % \AtTextLowerLeft{\color{grisamarillo}% % \rule[-\footskip]{\textwidth}{\dimexpr\textheight+\footskip}}} % Fin color márgenes %--------------------------------------------------------------------------------------% Prólogo %--------------------------------------------------------------------------------------\NewDocumentEnvironment{prologo}{O{}}{% \addcontentsline{toc}{schapter}{% \hspace{6em}{\color{azulF}{\fontfamily{phv}\fontsize{9}{10}\selectfont Prol\'ogo}} \qquad} \chapter*{Prólogo} \smallskip\smallskip \begin{minipage}{0. \end{tikzpicture} \end{textblock} } %-.167\textheight] % Autor {\LARGE\bfseries#2}\\[\baselineskip] % pre-título {\textcolor{colortitulo}{\Huge#3}}\\[\baselineskip] % Título {\Large\textit{#4}}\par% Descripción adicional .} \fancyfoot[RE]{ \begin{textblock}{3}(18.5cm. fill=colordominante.9\textwidth} #1}{\end{minipage}} %--------------------------------------------------------------------------------------% Título %--------------------------------------------------------------------------------------\newcommand*{\titulo}[4]{\begingroup% \raggedleft \vspace*{\baselineskip} % Espacio en blanco en la parte superior de la página {\Large#1}\\[0.font=\fontsize{25}{1}\sffamily\bfseries.inner sep=2pt. ISBN..} \fntg[pag][8]{\color{grisF} \href{http://www.202} % \definecolor{mycolorB}{RGB}{166.4cm]{images/logo}} \end{minipage} \\\hfill\begin{minipage}[t]{0.itcr. ..\vfill% Espacio en blanco entre el bloque de título y "la editorial" {\raggedright \begin{minipage}[c]{0.58} % % patching of \tableofcontents to use sans serif font for the tile \patchcmd{\tableofcontents}{\contentsname}{\contentsname}{}{} % patching of \@part to typeset the part number inside a framed box in its own line % and to add color \makeatletter \patchcmd{\@part} {\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}} {\addtocontents{toc}{\protect\addvspace{20pt}} \addcontentsline{toc}{part}{\huge{\protect\color{colordominante}% \setlength\fboxrule{2pt}\protect\Circle{% \hfil\thepart\hfil% }% }\\[2ex]\color{colordominante}\sffamily\large#1}}{}{} \makeatother % this is the environment used to typeset the chapter entries in the ToC .206.ac.ac. %--------------------------------------------------------------------------------------\def\copyrightpage{\thispagestyle{empty}% \vbox to\textheight\bgroup\vfill\obeylines\obeyspaces\xcopyrightpage} \def\xcopyrightpage#1#2\end#3{\scriptsize\parindent=0pt Copyright\copyright{#1} \vskip40pt #2\vskip200pt\egroup\endgroup} \let\endcopyrightpage\relax % Fin Copyright %-------------------CONTENIDO ---------------------------------------------------\definecolor{mycolorA}{RGB}{0. Educación e Internet.9\textwidth} {\color{gray} \fhv{9}{Revista digital}\\ \fhvb{9}{\color{azulF}Matemática.0cm}{\includegraphics[width=1.cr/revistamatematica/).tecdigital.08\textwidth} \raisebox{-2.itcr.cr/revistamatematica/}{(http://www.tecdigital.133.}}} \end{minipage} }%raggedright \vspace*{3\baselineskip} % Espacio en blanco antes del final de página \endgroup} % Fin Titulo-------------------------------------------------------%--------------------------------------------------------------------------------------% Copypright. and subsections \titlecontents{part} [0em]{\centering} {\contentslabel} {}{} \titlecontents{chapter} [0em]{\vspace*{2\baselineskip}} {\parbox{4.4ex} {1ex\@plus.5em}{% \hfill\Huge\bfseries\color{mycolorA}\thecontentspage}% \vspace*{2.5em}\nobreak\itshape\color{mycolorA}\contentspage} % Fin Contenido %--------------------------------------------------------------------------------------% CAPITULO Estilo simple %--------------------------------------------------------------------------------------\usepackage{titlesec.2ex } {\normalfont\large\sffamily\bfseries}} . color} \newcommand{\hsp}{\hspace{20pt}} \titleformat{\chapter}[hang]{\huge\bfseries}{{ \fontsize{6em}{6em}\selectfont\black \thechapter}\hsp\textcolor{verdep}{\vrule height 4em width 1pt}\hsp}{0pt}{\huge\bfseries} %--------------------------------------------------------------------------------------% Numeración de las secciones -. chapters.% it is a modification of the leftbar environment of the framed package \renewenvironment{leftbar} {\def\FrameCommand{\hspace{6em}% {\color{mycolorB}\vrule width 2pt depth 6pt}\hspace{1em}}% \MakeFramed{\parshape 1 0cm\dimexpr\textwidth6em\relax\FrameRestore}\vskip2pt% } {\endMakeFramed} % using titletoc we redefine the ToC entries for parts.5em}\nobreak\itshape\color{mycolorA}\contentspage} \titlecontents{subsection} [8. sections.4em] {\sffamily\contentslabel{3em}}{}{} {\hspace{0. blindtext.en el margen %--------------------------------------------------------------------------------------\makeatletter \renewcommand{\@seccntformat}[1]{\llap{\textcolor{verdeF}{\csnamethe#1 \endcsname}\hspace{1em}}} \renewcommand{\section}{\@startsection{section}{1}{\z@} {-4ex\@plus -1ex\@minus -.3\baselineskip}\leftbar{\fhvb{12}{\chaptername~\thecontentslabel}}\\ } {}{\endleftbar} \titlecontents{section} [8.4em] {\sffamily\contentslabel{3em}}{}{} {\hspace{0. ejercicio \newcounter{tcbteo}[chapter] \renewcommand{\thetcbteo}{\thechapter.2ex\@plus. inner sep=1mm. top color=white.1ex\@minus -. proposición.1ex} {\normalfont\small\sffamily\bfseries}} \makeatother % Fin numeración secciones %-------------------------------------------------------------------------------% Entornos: Ejemplo.\renewcommand{\subsection}{\@startsection {subsection}{2}{\z@} {-3ex\@plus -0.\arabic{tcbteo}} \newcounter{tcbdefi}[chapter] \renewcommand{\thetcbdefi}{\thechapter.4ex} {0.anchor=west. % caja interludio.2ex} {0. text=azulF. proposicion.2ex\@minus .inner sep=1mm.style={% rectangle.anchor=west. lema.2ex } {\normalfont\sffamily\bfseries}} \renewcommand{\subsubsection}{\@startsection {subsubsection}{3}{\z@} {-2ex\@plus -0.font=\small\bf\sffamily}. top color=gray!5.5ex\@plus.font=\small\bf\sffamily} } . bottom color=gray!5. teorema. definicion.2ex } {\normalfont\small\sffamily\bfseries}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@} {-2ex\@plus-. lema. bottom color=white. corolario.2ex} {0.\arabic{tcblema}} \newcounter{tcbcoro}[chapter] \renewcommand{\thetcbcoro}{\thechapter. teorema.1ex\@minus -.\arabic{tcbvoca}} % \newcounter{tcbListaEjercicios}[chapter] % \renewcommand{\thetcbListaEjercicios}{\thechapter.\arabic{tcbdefi}} \newcounter{tcblema}[chapter] \renewcommand{\thetcblema}{\thechapter.\arabic{tcbListaEjer cicios}} \newcounter{tcbpropo}[chapter] \renewcommand{\thetcbpropo}{\thechapter.\arabic{tcbcoro}} \newcounter{tcbvoca}[chapter] \renewcommand{\thetcbvoca}{\thechapter. caja simple %-------------------------------------------------------------------------------% Cajas con el paquete tcbcolor % CONTADORES: ejemplo.\arabic{tcbpropo}} \newlength{\examlen} \tikzset{ wnodeTeorema/.style={% rectangle. wnodeminimo/. lista de ejercicios. step and label={tcbpropo}{#3}.north west) {\textbf{\color{colordominante} Proposición\thetcbpropo\.enhanced.line width=0.north west)--([xshift=0pt]frame. yshift=4mm]frame.#2}}. }.5cm] ([xshift=1.3pt).north east).25cm.north west) {\textbf{\color{colordominante} Teorema\thetcbteo\. overlay ={% overlay first ={\draw[color=colordominante. fontupper=\normalsize.+(\examlen.2pt] (frame.+(\examlen. fontupper=\normalsize.line width=0.top=7mm. %Caja de Título: teo -\node[wnodeTeorema](tituloteo) at ([xshift=0pt.colback=gray!5.line width=2.#2}}.north west)--([xshift=0pt]frame.5cm] ([xshift=1. }.boxrule=0pt.north east).north east).north west)-. overlay ={% overlay first = {\draw[color=colordominante.line width=0.line width=2.north west)-.step and label={tcbteo}{#3}. yshift=0cm]frame. %Borde superior -\draw[colordominante. }.breakable.north west)--([xshift=0pt]frame.north west)--([xshift=0pt]frame.25cm. }. #1} %\NewDocumentEnvironment{proposicion}{O{} O{} O{}}{\smallskip\begin{wwpropo}{#1}{#2}% #3}{\end{wwpropo}\smallskip } % --------------------------------------------------------- .2pt] (frame. % % Mantener borde en cambio de página overlay last ={\draw[color=colordominante. %Caja de Título: propo -\node[wnodeTeorema](tituloteo) at ([xshift=0pt.boxrule=0pt.north east).%\begin{teorema} o \begin{teorema}[de tal] o \begin{teorema}[][ref] % Teorema ----------------------------------------------------\newtcolorbox{wwteorema}[3][]{% arc=0mm.top=7mm.breakable. yshift=4mm]frame.2pt] (frame.% % Mantener borde en cambio de página overlay last = {\draw[color=colordominante. }. yshift=0cm]frame.2pt] (frame.3pt). } #1} %\NewDocumentEnvironment{teorema}{O{} O{} O{}}{\smallskip\begin{wwteorema}{#1}{#2}% #3}{\end{wwteorema}\smallskip } % TEOREMA--------------------------------------------------------- %\begin{proposicion} o \begin{proposicion}[de tal] o \begin{proposicion}[][ref] % Proposición----------------------------------------------------\newtcolorbox{wwpropo}[3][]{% arc=0mm. %Borde superior -\draw[colordominante.line width=0.colback=gray!5.enhanced. north west)--([xshift=2pt] frame.south west).north west)--([xshift=2pt] frame.north west)-([xshift=2pt] frame.step and label={tcbdefi}{#3}.south west). } }.south west)."+texto del cuerpo overlay ={% overlay first = {%barra vertical \draw[color=gray.line width=3pt] ([xshift=2pt] frame.enhanced.left=3pt.breakable.% % Mantener borde en cambio de página overlay last ={\draw[color=gray.enhanced.south west).%"Lema. fontupper={\small\bf\sffamily {\color{azulF}Lema\thetcblema\.colback=gray!5. left=3pt.% LEMA ----------------------------------------------------------\newtcolorbox{wwlema}[3][]{% arc=0mm.#2}}~\normalfont. overlay ={% overlay first = {%barra vertical \draw[color=gray.line width=3pt] ([xshift=2pt] frame.south west). step and label={tcbcoro}{#2}. #1} %\NewDocumentEnvironment{lema}{O{} O{} O{}}{\smallskip\begin{wwlema}{#1}{#2}% #3}{\end{wwlema}\smallskip } %LEMA-------------------------------------------------------------% % Corolario ------------------------------------------------------\newtcolorbox{wwcoro}[2][]{% arc=0mm.colback=gray!5.line width=3pt] ([xshift=2pt] frame.boxrule=0pt.line width=3pt] ([xshift=2pt] frame. top=6mm. fontupper={\small\bf\sffamily {\color{azulF}Corolario\thetcbcoro}\.line width=3pt] ([xshift=2pt] frame.boxrule=0pt.fontupper=\normalsize.enhanced.}~\normalfont. } }. }. overlay ={% overlay first = { %barra vertical \draw[color=colordominante.breakable. top=1mm.north west)--([xshift=2pt] frame.breakable.north west)-([xshift=2pt] frame. %overlay first ...colback=gray!5.% % Mantener borde en cambio de página overlay last ={\draw[color=gray.boxrule=0pt. top=1mm. step and label={tcblema}{#3}. } #1} %\NewDocumentEnvironment{corolario}{O{} O{}}{\smallskip\begin{wwcoro}{#1}% }{\end{wwcoro}\smallskip } % Corolario-----------------------------------------------------% % Definición--------------------------------------------------\newtcolorbox{wwdefinicion}[3][]{% arc=0mm. }. north west)% {\fhvb{10}{\.south west).south west). yshift=3mm]frame.north west) {\textbf{Definición\thetcbdefi\. step and label={tcbejem}{#3}..} #1} %\NewDocumentEnvironment{definicion}{O{} O{} O{}}{\smallskip\begin{wwdefinicion}{#1}{#2}% #3}{\end{wwdefinicion}\smallskip } % %DEFINICION--------------------------------------------------------% Caja para Ejemplo -------------------------------------------------\newcounter{tcbejem}[chapter] \renewcommand{\thetcbejem}{\thechapter. anchor=west.} #1} %- .south west). colback=grisamarillo.5cm}{}}. text=black.line width=3pt] ([xshift=3pt] frame.yshift=-4. fontupper=\normalsize.}.line width=3pt] ([xshift=2pt] frame.anchor=west.north west)--([xshift=2pt] frame. overlay={ overlay first = {% %barra vertical \draw[color=verdep.0.line width=3pt] ([xshift=3pt] frame. top=8mm.\.1cm. %Separación vertical . text=black.south west). }.drop fuzzy shadow.9mm]frame.%Caja de Título: defi -\node[wnodeTeorema](titulodefi) at ([xshift=4.yshift=-2. boxrule=0pt. % overlay %Borde cambio de páginas overlay middle={\draw[color=grisamarillo.#2}}. % Caja numeración y descripción \node[rectangle. inner sep=1mm. %overlay % Mantener borde en cambio de página overlay last = {%barra vertical \draw[color=colordominante.pad at break=2mm.line width=3pt] ([xshift=2pt] frame. inner sep=1mm..#2}}. breakable. font=\normalsize] at ([xshift=1.inicia texto enlarge top by=\baselineskip/2+1mm.\thetcbejem\. }. enlarge top at break by=0mm.north west)--([xshift=2pt] frame.font=\small\bf\sffamily] at ([xshift=-14.north west)-([xshift=2pt] frame. }.0.3} % Ejemplo \newtcolorbox{wwejemplo}[3][]{% arc=0mm.\arabic{tcbejem}} \colorlet{colorfondoejemplo}{gray!5} \definecolor{colorejemplo}{rgb}{. enhanced.\.1mm]frame.%overlay first % Caja de imagen Ejemplo \node[rectangle.3pt. overlay last={\draw[color=grisamarillo.north west)--([xshift=2pt] frame.north west)% {\includegraphics{images/nodoejemplo}\raisebox{0.5pt. comentario.north west) --([xshift=0pt]frame.2pt] (frame.south west)--(frame.north west).5mm. top=3mm.south west)--(frame. boxrule=0pt.0cm.north west){\fhvb{10}{ #2}}.30mm]frame. %Separación vertical .line width=0.5pt. boxrule=0pt. yshift=2. % Caja de Título CAJA \node[ rectangle. enlarge top at break by=0mm.inicia texto enlarge top by=\baselineskip/2+1mm.} #1} %\NewDocumentEnvironment{caja}{O{} O{}}{\smallskip\begin{wwcaja}{#1}% #2}{\end{wwcaja}\smallskip } % CAJA de comentario %CAJA simple-------------------------------------------------------------------\newtcolorbox{wwbox}[1][]{% arc=0mm.inicia texto enlarge top by=\baselineskip/2+1mm.north east) --([xshift=0pt]frame.91.breakable. overlay ={% %Borde overlay first={\draw[color=amarilloD.font=\normalsize]at ([xshift=0.north west).pad at break=2mm. %minimum width=0cm. %Separación vertical .north west) --([xshift=0pt]frame. minimum height=0..colback=gray!4.}. %step and label={tcbca}{#3}. enhanced.}.north west) --([xshift=0pt]frame.anchor=west. inner sep=0.\NewDocumentEnvironment{ejemplo}{O{} O{} O{}}{\smallskip\begin{wwejemplo}{#1}{#2}% #3}{\end{wwejemplo}\smallskip } %EJEMPLO---------------------------------------------------------------- % CAJA (interludio. top=3mm.drop fuzzy shadow.line width=0.241.)-------------------------------------\definecolor{colrnodocaja}{RGB}{44. overlay ={% %Borde overlay first={\draw[color=gray!2.colback=grisamarillo..%drop fuzzy shadow.227} \newtcolorbox{wwcaja}[2][]{% arc=0mm. fontupper=\normalsize.north east) .pad at break=2mm.north east) --([xshift=0pt]frame. bottom color=amarilloD. top color=amarilloD.144} \definecolor{colrfondocaja}{RGB}{241.2pt] (frame.south east) --([xshift=0pt]frame. %Borde cambio de página overlay last={\draw[color=gray!2.5pt] (frame.breakable.south east) --([xshift=0pt]frame. %step and label={tcbca}{#3}. enhanced. fontupper=\normalsize. enlarge top at break by=0mm.line width=0. fontupper={\begin{tikzpicture}[overlay] \node[draw=colordominanteF.north east) --([xshift=0pt]frame.breakable.%"NOTA.3pt){\textcolor{colordominanteF}{N}}.. #1} %\NewDocumentEnvironment{vocabulario}{O{} O{} O{}}{\smallskip\begin{vocabox}{#1}{#2}% #3}{\end{vocabox}\smallskip } % Fin vocabulario %CAJA nota------------------------------------------------------\newtcolorbox{notabox}[1][]{% arc=0mm.north east) --([xshift=0pt]frame.font=\sffamily\bfseries.5pt] (frame.inicia texto left=25pt.line width=3pt] ([xshift=2pt] frame.south west).%"Vocabulario. top=1mm.} #1} \newenvironment{scaja}[1][]{\bigskip\begin{wwbox}% #1}{\end{wwbox}} % Fin CAJA simple %CAJA vocabulario-----------------------------------------------------\newtcolorbox{vocabox}[3][]{% arc=0mm. left=3pt.south west)--(frame.south west).line width=0.outer sep=0pt] at (15pt.#2}}~\normalfont.line width=1pt.breakable. %Borde cambio de página overlay last={\draw[color=amarilloD. enlarge top by=\baselineskip/2+1mm. fontupper={\small\bf\sffamily {\color{azulF}Vocabulario\thetcbvoca\. top=3mm. } }.line width=0. .north west).boxrule=0pt.--([xshift=0pt]frame. %Separación vertical . boxrule=0pt.} }.% % Mantener borde en cambio de página overlay last ={\draw[color=white.south west)--(frame.5pt] (frame.\end{tikzpicture}}~\normalfo nt.south east) --([xshift=0pt]frame."+texto del cuerpo overlay ={% overlay first = {%barra vertical \draw[color=white. }."+texto del cuerpo overlay ={% %Borde y círculo overlay first={ \draw[color=white.north west)-([xshift=2pt] frame.inner sep=2pt.colback=white.north west). enhanced. enlarge top at break by=0mm.colback=white.south east) --([xshift=0pt]frame. step and label={tcbvoca}{#3}.north west).south east) --([xshift=0pt]frame. .north west) --([xshift=0pt]frame.south west)--(frame.enhanced...line width=3pt] ([xshift=2pt] frame.fill=white.pad at break=2mm.north west) --([xshift=0pt]frame.north west)--([xshift=2pt] frame.circle. inner sep=1mm.colback=gray!5.south east) --([xshift=0pt]frame.top=8mm.colback=color1.south west)--(frame.} #1} %\newenvironment{nota}[1][]{\bigskip\begin{notabox}% #1}{\end{notabox}} % Fin nota %------------------------------------------------------------------------------% LISTAS DE EJERCICIOS %------------------------------------------------------------------------------\usepackage{answers} \newtheorem{exer}{}[chapter] \newenvironment{ejer}{\begin{exer}\normalfont}{\end{exer}} \Newassociation{solu}{Soln}{ans} % USO del entorno personalizado-------------------------------------------------%\begin{ejercicios} --.68} % color del nodo % Caja -. overlay ={ % nodo rectangular para "Ejercicios" \node[rectangle.boxrule=0pt. minimum width=4cm. solo caja gris #1} % Nuevo entorno personalizado---------------------------------------\NewDocumentEnvironment{cejercicios}{O{}}{% \bigskip\begin{wwlistaejercicios}% #1}{\end{wwlistaejercicios}\bigskip } % % ------------------------------------------------------------------% Ejercicio .5pt] (frame.yshift=-3mm]frame. top color=color2.} }.breakable.fontupper=\normalsize.}.north west) --([xshift=0pt]frame. bottom color=color2.\end{cejercicios} para listas en cajas \NewDocumentEnvironment{ejercicios}{O{}}{% \bigskip\begin{minipage}{\textwidth}{\bf\verdeEjercicios} #1}{\end{minipage}\bigskip} \colorlet{color1}{gray!5!white} % color fondo \definecolor{color2}{RGB}{117.anchor=west.enhanced.Caja para ejercicio solitario \newtcolorbox{wwejercicio}[1][]{% arc=0mm. enlarge top at break by=0mm. enlarge top by=\baselineskip/2+1mm.breakable.184. pad at break=2mm.enhanced.ejercicios \newtcolorbox{wwlistaejercicios}[1][]{% arc=0mm.boxrule=0pt. overlay last ={ } % cambio de página.north east) --([xshift=0pt]frame.north west)% {\textbf{Ejercicios}}. %Borde cambio de página overlay last={\draw[color=white.line width=0.\end{ejercicios} para listas simples %\begin{cejercicios} --. .font=\normalsize] at ([xshift=0pt.north west). top=7mm.north west)--([xshift=2pt] frame.2pt] (frame.south west).north east). } #1} %\NewDocumentEnvironment{cajaejercicios}{O{} O{} O{}}{\smallskip\begin{wwejercicios}{#1}{#2}% #3}{\end{wwejercicios}\smallskip } % ejercicios--------------------------------------------------------- .line width=0. font=\small\bf\sffamily](tituloejer) at ([xshift=5mm.line width=0.#2}}.}~\normalfont.boxrule=0pt.134} \newcounter{tcbejer}[chapter] \renewcommand{\thetcbejer}{\thechapter.south west). overlay ={% overlay first = {%barra vertical \draw[color=gray.left=3pt.north west)-([xshift=0pt]frame.south west)-([xshift=0pt]frame.2pt] (frame.north west) {\textbf{\color{miverde} Ejercicios\thetcbejer\.line width=3pt] ([xshift=2pt] frame.colback=gray!5.anchor=west. } #1} % Entorno con Caja para ejercicios---------------------------------------%\begin{cajaejercicios} o \begin{cajaejercicios}[de tal] % o \begin{cajaejercicios}[][ref] % Entorno personalizado-------------------------------------------------\definecolor{colorejercicios}{RGB}{99.north east).line width=3pt] (frame.north west)-([xshift=2pt] frame. %borde línea inferior \draw[color=colorejercicios.%drop fuzzy shadow.line width=0. yshift=0mm]frame. } }. overlay last = { %borde línea inferior \draw[color=colorejercicios.north west)--([xshift=0pt]frame.42. fontupper={\bf\sffamily {\color{miverde}Ejercicio.south east). % } overlay middle ={}. draw=colorejercicios.south east). overlay ={% overlay first = { %Borde grueso superior \draw[color=colorejercicios.2pt] (frame.inner sep=1mm.\arabic{tcbejer}} \newtcolorbox{wwejercicios}[3][]{% arc=0mm.step and label={tcbejer}{#3}. enhanced. top color=white. fontupper=\normalsize. bottom color=white.% % Mantener borde en cambio de página overlay last ={\draw[color=gray. } % overlay first }.line width=3pt] ([xshift=2pt] frame.breakable. %Caja de Título: Ejer -\node[rounded corners=3pt.%overlay % % Mantener borde en cambio de página % overlay middle = {\draw[color=colordominante.south west)-([xshift=0pt]frame. thick.}\.top=1mm. dot eqdot.fallingdotseq. commentstyle=\color{brown}.g .succsim. geqq.lesseqqgtr.approxeq.gtreqless.eqslantless.Supset.mathbb.thicksim.Soluciones al final del documento---------------------------\def\soluciones{ \expandafter\ifx\csnameClosesolutionfile\endcsname\relax\else \Closesolutionfile{ans}\fi } \def\solucionesCap#1{\section*{Solucionesdel Cap\'{\i}tulo#1}\input{ans#1}} % Fin Listas de Ejercicios------------------------------------------% Fin mis entornos-------------------------------------------------------------%-------------------------------------------------------------------------------% Código de programas (LaTeX en ese caso) %-------------------------------------------------------------------------------% Listings \usepackage{listings}% uso: \lstinline|section| \lstset{ % language={[LaTeX]TeX}. % lenguaje basicstyle=\bfseries\ttfamily.sqsubset. stringstyle=\ttfamily\color{blue}. showstringspaces=false.lessapprox.curlyeqsucc.gtrdot. extendedchars=true. flexiblecolumns=true. emph={rm. keywordstyle=\color{blue}.preccurlyeq.tt.lesssim .sl. backgroundcolor=\color{grisamarillo}.sf.backsim.curlyeqprec.mathbb.gtreqqless.it.bec ause.sqsupset.% Comandos para paquete answers % pregunta-solución \newcommand{\exersol}[2]{ \begin{ejer} #1\scantokens{\begin{solu}#2\end{solu}} \end{ejer}} % listas \item pregunta-solución \newcommand{\itemps}[2]{\item#1\scantokens{\begin{solu}#2\end{solu}}} \usepackage{enumitem} \newcommand{\bex}{\scantokens{\begin{solu} \end{solu}}\begin{enumerate}[label=\alph*.gtrless.bf.lessdot.precsim.mathbb.succcurlyeq.circeq.triangleq.therefore.)]} \newcommand{\eex}{\end{enumerate}} %\begin{sol} \end{sol} %\NewDocumentEnvironment{ejercicio}{O{} O{}}{\smallskip\begin{wwejercicio}{#1}% }{\end{wwejercicio}\smallskip } % Ejercicio------------------------------------------------------ % -.thickapox.leqq.sc.risingdotseq.leqslant. ball color=green] {\color{white}\Large\textbf. circle. circle.inner sep=1. \end{tikzpicture}} \newcommand{\ttptov}{\begin{tikzpicture} \node[scale=. shade.lessgtr. ball color=blue] {\color{white}\Large\bf#1}.} \newcommand*{\itembolasrojas}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=. \end{tikzpicture}} \newcommand{\ttptor}{\begin{tikzpicture} \node[scale=.5.Subset.5.5.shape=circle. ball color=blue] {\color{white}\Large\textbf#1}. ball color=red] {\color{white}\Large\textbf.tr ianglerighteq.subseteqq.eqslant.}.5. \end{tikzpicture}} \newcommand{\ptoazul}[1]{\begin{tikzpicture} \node[scale=. ball color=blue] {\color{white}\Large\textbf#1}.gtrapprox.vartriangleright. shade.to. circle.$} \newcommand{\ptomr}{\ttptor$\. shade.$} \newcommand{\ptomv}{\ttptov$\.ggg. shade.g trsim.backsimeq.succapprox.con puntos \usepackage{enumitem} %\usepackage{enumerate} \newcommand{\witem}[1]{\item[{\bf #1)}]} \newcommand*{\itembolasgrises}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[fill=gray!50.draw. circle.1cm). circle.5.} \newcommand{\ttpto}[1]{\begin{tikzpicture} \node[scale=.2pt. circle.eqslantgtr. circle. ball color=red] {\color{white}\Large\bf#1}.} \newcommand*{\itembolasazules}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=.line width=0.for. ball color=green] {\color{white}\Large\bf#1}.0) circle (.precapprox.5. shade.}. emphstyle={\color{blue}\textbf} } \newcommand{\wlatex}{\lstinline} %-------------------------------------------------------------------------------% Listas con Tikz %-------------------------------------------------------------------------------% PuntosTikz y Enumerate con Tikz \newcommand{\tpto}{\tikz \shadedraw [shading=ball] (0.$} % Listas -.5.do }.} \newcommand*{\itembolasverdes}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=. shade.lll.$} \newcommand{\itempto}{\item[\tpto]} \newcommand{\pto}{\tpto} \newcommand{\ptom}{\tpto$\.2mm](n1){#1}. \end{tikzpicture}} \newcommand{\ptomb}{\ptoazul$\. shade.maxint.} .lesseqgtr.supseteqq. %Comando para listas con bolas \newcommand{\beaz}{\begin{enumerate}[label=\itembolasazules{\arabic*}] } \newcommand{\eeaz}{\end{enumerate}} % Fin de cosasadicionales %---------------------------------------------------------------------------% TABLAS CON Tikz %---------------------------------------------------------------------------\usepackage{array} \usetikzlibrary{calc,fit,shadows,arrows,positioning} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground} %-%----------------------------------------------------------------------------% Data Table %----------------------------------------------------------------------------\newsavebox{\dataTableContent} % Box \newenvironment{dataTable}[1] % \new environment {% \begin{lrbox}{\dataTableContent}% \begin{tabular}{#1}}% % {% \end{tabular} \end{lrbox} \begin{tikzpicture} \node [inner xsep=0pt] (tbl){\usebox{\dataTableContent}}; \begin{pgfonlayer}{background} % table \draw[rounded corners=1pt,top color=gray!1,bottom color=gray!30,draw=black] (tbl.north east) rectangle (tbl.south west); % top line \draw[rounded corners=1pt,top color=gray!10!black,bottom color=gray!50!black,draw=black]% ($(tbl.north west)$) rectangle ($(tbl.north east)(0,1.5\baselineskip)$); % bottom rule \draw[rounded corners=0.25pt,fill=gray,draw=black]% (tbl.south west) rectangle ($(tbl.south east)+(0,0.05)$); \end{pgfonlayer} \end{tikzpicture}} % -- %---------------------------------------------------------------------------%- Modoficación de chapter para queabra y cierrearchivos ans--------------%---------------------------------------------------------------------------- %-----------------------------------------------------------------------------%- Modoficación de chapter para queabra y cierrearchivos ans delpaquete answers \newcount\ansj % contador de listas ans i \ansj=\thechapter % % -- Infiltrar \chapter ------------------------------------------\makeatletter \let\stdchapter\chapter % \stdchapter guarda la def original de \chapter \renewcommand*\chapter{ % -- Infiltrar: abrir y cerrararchivos ans j-\expandafter\ifx\csname Closesolutionfile\endcsname \relax\else \Closesolutionfile{ans}\fi \expandafter\ifx\csnameOpensolutionfile\endcsname \relax\else \Opensolutionfile{ans}[ans\number\ansj]\advance\ansj by 1\fi %-----------------------------------------------------% Volver a la def original de \chapter \@ifstar{\starchapter}{\@dblarg\nostarchapter}} \newcommand*\starchapter[1]{\stdchapter*{#1}} \def\nostarchapter[#1]#2{\stdchapter[{#1}]{#2}} \makeatother % -- ------------------------------------------------------------------------ %--------------------------------------------------------------------------------------% Comandosdellibro %--------------------------------------------------------------------------------------%--------------------------------------------------------------------------------------- \documentclass[11pt,fleqn,x11names,table]{book} % Dimensiones y márgenes=1 pulgada alrededor del texto \usepackage[margin=1in]{geometry} %--------------------------------------------------------------------\input{RevistaMatematica_ITCR_Estilo_Libro_LaTeX_B}% = Paquetes y código de diseño "B" %--------------------------------------------------------------------%---------------------------------------------------------------------% COMANDOS PERSONALES %---------------------------------------------------------------------\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{\rmsen}\nolimits} \newcommand{\senh}{\mathop{\rmsenh}\nolimits} \newcommand{\arcsen}{\mathop{\rmarcsen}\nolimits} \newcommand{\arcsec}{\mathop{\rmarcsec}\nolimits} \newcommand{\bc}{\begin{center}} \newcommand{\ec}{\end{center}} \newcommand{\be}{\begin{enumerate}} \newcommand{\ee}{\end{enumerate}} %-% Insertar portada \usepackage{pdfpages} \begin{document} % Insertar portada \includepdf[pages=-]{images/Portada} \parindent=0mm% Sangría \pagestyle{empty} \titulo{% Autor(es) \fnte[pag][20]{Walter Mora F.} }{% pre-título \fntb[ppl][14]{\verdePlantilla "B"} }{% Título principal \fntb[ppl][28]{Edición de libros con LaTeX} }{% Adicional \fntb[ppl][14]{Versión 1.0 -- Octubre 4, 2013} } % %--------------------------------------------------------------------------------------% % Página para "derechos reservados", ISBN, licencia creative commons, etc. % %--------------------------------------------------------------------------------------\clearpage \ -.itcr.3raed.Escuela de Matemática. Ustedpuedeobtenerunacopia de la Licencia en \url{http://creativecommons.}\parbox[c]{0. TeX.65\textwidth}{ \color{gray} \fhv{9}{Revista digital}\\ \fhvb{10}{Matemática. -.org/licenses/by-nc-nd/3. Estaediciónseproporciona``talcual''. 2010.ac. Composicióntipográfica-automatizada 3. Gráficos.\\ \end{copyrightpage} ~\vfill %\thispagestyle{empty} \noindent \parbox[s]{0.ac.ac. Cartago Tel\'efono (506)25502225 Fax (506)25502493}% Mora Flores. CorreoElectr\'onico:\url{mora2@itcr. Se distribuyegratuitamente con la esperanza de que sea útil. Parque Nacional Chirripó. El material publicado en ellaexpresa la opinión de susautores y no necesariamente la opinión de la revistani la delInstitutoTecnológico de Costa Rica. Educación e Internet esunapublicaciónelectrónica.0/}.\\ La Revista digital Matemáticas.tecdigital. \AlexánderBorbón A. \Edición de TextosCientíficos con \LaTeX.itcr.}} }\\\\% %\noindent {\color{colordominante} Photos by}: Viviana Loaiza.cr/revistamatematica/.InstitutoTecnológico de Costa Rica. Ustedpuedeutilizarestearchivo de conformidad con la Licencia.\begin{copyrightpage}{% Revista digital Matem\'aticaEducaci\'on e Internet (www. 159-7050.\\ Límite de responsabilidad y exención de garantía: El autor o losautoreshanhechosumejoresfuerzo en la preparación de este material.itcr.ac.\\ \includegraphics[scale=0. Walter. 2. Costa Rica. \xxx p. Tipos símbolosmatemáticos. En particular.cr} Escuela de Matem\'atica InstitutoTecnol\'ogico de Costa Rica Apdo. estalicenciapermitecopiado y distribucióngratuita.}\\ % %-------------------------------------------------------------------------------% % Tabla de contenidos % %-------------------------------------------------------------------------------- .cr/revistamatematica/). Inkscape y Presentaciones Beamer/Walter Mora F. pero no permiteventanimodificaciones de este material.Composición. \ ISBN 978-9977-66-227-5 \ 1.35\textwidth}{Licencia.tecdigital.tecdigital. pero sin ningunagarantíaexpresa o implícitarespecto a la exactitud o completituddelcontenido.7]{images/logocc} \noindent {{\fontsize{9}{1} \selectfontEstelibrosedistribuyebajo la licencia Creative Commons: Atribución-NoComercial-SinDerivadas CC BYNC-ND (la "Licencia").cr/revistamatematica/}{http://www.}\\ \fntg[pag][9]{% \href{http://www. Educación e Internet. Este material es de libredistribución.stackexchange.\\ Para editarlibros en esteformato.latextemplate s..stackexchange.com/} y delsitio\href{http://www.latextemplates. 2013.Fin Prólogo---------------------------% % \end{prologo} % %--FIN COSAS OPCIONALES %---------------------------------------------------------------------% Inicio %---------------------------------------------------------------------\cleardoublepage \pagestyle{fancy} % Habilitar encabezados \pagenumbering{arabic} % Numeración arabiga \ansj=1% Cap 1 inicializa listas %-%----------------------------------------------------------------------------------% Capítulo 1 %----------------------------------------------------------------------------------\chapter{Cómousarestaplantilla "B"} Lasplantillas para libros de la "revista digital Matemática.} \hfill{\sc El autor} % % %-----. aquí viene el prólogo de este libro.com/}. uno de losformatos de la "revista digital Matemática. Educación e Internet" son implementadas con ideas propias y también con ideas tomadas y modificadas de la documentación de lospaquetes\LaTeX{} y de variossitiospúblicos en Internet: \href{http://tex. Educación e Internet".\\\\ % % \textit{Cartago.com/}{http://www. sedebenusar . entreotros.% \tableofcontents \thispagestyle{empty} % %-------------------------------------------------------------------------------% % Cosas Opcionales % %-------------------------------------------------------------------------------% \begin{prologo} % % Prefacio o Prólogo --------------------------% % Bueno..com/}{http://tex. Gráficos. Luegopuedecompilar.tex+sepuedeus arcódigo\LaTeX\. \verb+Manual_Como_Usar_EstePaqueteDeEstilo. \end{lstlisting} Con elestilo\lstinline+RevistaMatematica_ITCR_Estilo_Libro_B. {\itesté en la mismacarpetaqueelarchivo} {\tt queestáeditando.22cm}.tex} de estedocumento.tex+\\\\ \begin{lstlisting} \documentclass{book} % Paquete de estilo (puedeabrirlosinecesitamodificaralgo) \usepackage{RevistaMatematica_ITCR_Estilo_Libro_B} . Composición.cls} y \verb+RevistaMatematica_ITCR_Estilo_Libro_B.tex+.showframe=false]{geometry} \end{lstlisting} \section{Plantilla general} El código {\tt . puede leer la documentacióndelpaquete "{\tt geometry}".losarchivos {\tt book.itcr. indicaqueeltextodellibrovienecentrado y con 18cm de ancho y 22cm de largo.text={18cm.com}{[email protected]ándarperosedebecompilar con {\bf\color{red} PDF\LaTeX}..tex+ adjunto. \href{mora2@gmail. sepuedeusarcomoplantilla para estelibro.tecdigital.9 o TeXLive 2012 porejemplo) Si tienealgún error de compilación.completa y {\itactualizada} (MikTeX 2. Si necesitamásinformación. puedeconsultar con Walter Mora.\\ Lospaquetesqueusaesteestilo son losmismosquesemencionan en ellibro\href{http://www.cr/revistamatematica/Libros/index. \end{scaja} .\\ \begin{lstlisting} \usepackage[centering..tex} \section{Dimensiones}Lasdimensionessepuedencambiar en elpreámbulo.ac. La instrucciónquesigue.htm}{\itEdición de TextosCientíficos con LATEX. Loscoloreslospuedemodificartal y comoseindica en la sección\ref{cambiarcolores}\\ .com}} \begin{scaja} Necesitaqueel archivo\verb+RevistaMatematica_ITCR_Estilo_Libro_B.tex| requiereunainstalación\TeX\. Inkscape y Presentaciones Beamer}\\ \section{Requisitos} {\color{azulF} El archivo\lstinline|RevistaMatematica_ITCR_Estilo_Libro_B. .linesnumbered.stmaryrd}% \usepackage[ruled.eps} \usepackage{multicol} % %\usepackage{epstopdf}% Conversión en versionesviejas \usepackage[small.pdf. Porejemplo.latexsym.\\ \begin{definicion} $A_\delta=\{\delta_1.7\textwidth}}\toprule Editor usado: &&Kile 2. linkcolor=azulF.. spanish = mexican]{csquotes} \MakeOuterQuote{"} \usepackage{pslatex} %\usepackage[sc]{mathpazo} \usepackage{helvet} \linespread{1..png...\.amssymb. 2^n > n$ \end{teorema} \bigskip \begin{ejemplo} $A_s=\{s_1... ejemplos..05} \usepackage[full]{textcomp} \usepackage{xcolor}% Color: X11names \usepackage{psboxit} \usepackage{pstricks} \usepackage{xparse} \usepackage{tcolorbox} \tcbuselibrary{skins.calc} \usepackage{xargs} \DeclareGraphicsExtensions{. Compilación} %Esta tabla usa paquete booktabs \begin{tabular}{lcp{0.tkz-tab}% Cajas de Teoremas.spanish]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[autostyle.s_n\}$ \end{ejemplo} \section{Paqueteshabilitados en estaplantilla.\\ Paquetesincluidos: &&\\\bottomrule \end{tabular} \begin{lstlisting} \usepackage[english.jpg..9 (con cargaautomática de paquetes) y TeXLive 2013 (versión full).breakable} \usepackage{tikz.cancel.3\\ Probado con: &&MikTeX 2..vlined.amsfonts.backgrounds.1 y Texmaker 4. citecolor=azulF. urlcolor=azulF]{hyperref} \usepackage{amsmath.bf]{caption} \usepackage[breaklinks..colorlinks=true.0.shadows.lined. algochapter]{algorithm2e} \usepackage{framed} . pdfstartview=FitV.\section{Entornos} Esteestilo define losentornos con cajas (versección\ref{cambiarcolores}). \usetikzlibrary{positioning.\delta_n\}$ \end{definicion} \bigskip \begin{teorema} $\forall n \in \N.. etc. . \end{entorno} \end{lstlisting} \subsection{Definiciones} \fntb{Definición SIN descripción NI referencias}. "ejercicio".. ver la sección\ref{cambiarcolores}...\\ Losentornospuedentenerdescripción y tambiénreferencia. \end{entorno} %Referencia \begin{entorno}[][referencia] %[] esmanadatorio . la sintaxissería. "definicion"... \end{definicion} . "caja" y "scaja" (caja simple)\\ El color de lascajassepuedecambiar. "proposicion". "corolario". "teorema". En general.\\\\ \begin{lstlisting} \begin{entorno} .\usepackage{titletoc} \usepackage{calc} \usepackage{colortbl} \usepackage{tabularx} \usepackage{fancyvrb} \usepackage{array} \usepackage{asysym} \usepackage{supertabular} \usepackage{booktabs} \usepackage{answers} \end{lstlisting} %---------------------------------------------------------------------% Capítulo 2 %---------------------------------------------------------------------\chapter{Entornos} En elpaquete de estilovienendefinidoslosentornos "ejemplo". \end{entorno} %Descripción \begin{entorno}[(Descripción)] .\\ \begin{lstlisting} \begin{definicion} . \end{entorno} %Descripción + referencia \begin{entorno}[(Descripción)][referencia] .. "lema"... .\\ \begin{lstlisting} \begin{definicion}[(Divisibilidad)][ref:defdivisibilidad] .b$enteros con $b \not = 0..\end{lstlisting} \begin{definicion} Sean $a.b$enteros con $b \not = 0..$\\ \item Si $b$ divide a $a$escribimos$b|a$ \ee \end{definicion} Referencia a la definición\ref{ref:defdivisibilidad}\\ \bigskip \fntb{Definición solo referencia}.$\\ \be \itemDecimosque$b$ divide a $a$siexisteunentero$c$talque$a=bc..$\\ \be \itemDecimosque$b$ divide a $a$siexisteunentero$c$talque$a=bc.\\ \begin{lstlisting} \begin{definicion}[][ref:defdivisibilidad] . \end{definicion} \end{lstlisting} \begin{definicion}[(Divisibilidad)][ref:defdivisibilidad]%no dejar líneas blancas al inicio Sean $a. \end{definicion} \end{lstlisting} \begin{definicion}[][ref:defdivisibilidad]%no dejar líneas blancas al inicio ..\\ \begin{lstlisting} \begin{definicion}[(Divisibilidad)] .b$enteros con $b \not = 0. \end{definicion} \end{lstlisting} \begin{definicion}[(Divisibilidad)] Sean $a.$\\ \be \itemDecimosque$b$ divide a $a$siexisteunentero$c$talque$a=bc.$ \item Si $b$ divide a $a$escribimos$b|a$ \item Si $b$ no divide a $a$escribimos$b\not|a$ \ee \end{definicion} \bigskip \fntb{Definición CON descripción y SIN referencia}..$\\ \item Si $b$ divide a $a$escribimos$b|a$ \ee \end{definicion} \bigskip \fntb{Definición CON descripción Y referencia}. \Longrightarrow\.Sean $a..$Muestrequesi$a|d$ y $d|b$entonces$a|b$\\ .d \in \Z.d \in \Z.\wedge\. \Longrightarrow\.\. d|b\.$\\ \be \itemDecimosque$b$ divide a $a$siexisteunentero$c$talque$a=bc.\Longrightarrow\. \wedge \. b=k_2d. \end{ejemplo} \end{lstlisting} \begin{ejemplo}[][ejemplo1] Sean $a. b=k_2d..$Muestrequesi$a|d$ y $d|b$entonces$a|b$\\ {\bfSolución:} Si $a|d\.$\\ Luego$b=k_2d=k_2(k_1a)\.\mbox{con}\. a|b$ \end{ejemplo} \bigskip \fntb{Ejemplo SIN descripción y CON referencia}.. k_1.b.\mbox{con}\.\. \wedge \.\.\\ \begin{lstlisting} \begin{ejemplo}[][ejemplo1] .d \in \Z.$\\ Luego$b=k_2d=k_2(k_1a)\.\.. k_1.b. d=k_1a \. a|b$ \end{ejemplo} \bigskip \fntb{Ejemplo CON descripción y sin referencia}.\wedge\.b$enteros con $b \not = 0.. d=k_1a \.b.k_2 \in \Z. \Longrightarrow\.\\ \begin{lstlisting} \begin{ejemplo}[ (De la igualdad)] .$\\ \item Si $b$ divide a $a$escribimos$b|a$ \ee \end{definicion} Referencia a la definición\ref{ref:defdivisibilidad}\\ \subsection{Ejemplos} \bigskip \fntb{Ejemplo sin descripciónnireferencia}.\\ \begin{lstlisting} \begin{ejemplo} . \. d|b\.$Muestrequesi$a|d$ y $d|b$entonces$a|b$\\ {\bfSolución:} Si $a|d\. \. \end{ejemplo} \end{lstlisting} \begin{ejemplo} Sean $a. \end{ejemplo} \end{lstlisting} \begin{ejemplo}[ (De la igualdad)] Sean $a.k_2 \in \Z.. \Longrightarrow \.\.y \in \Z$ \item Si $d|(p+q)$ y $d|p \.p..b \in \Z.a \geq b$ \item Si $a|b.. \end{teorema} \end{lstlisting} \begin{teorema}[(Divisibildad)] Sean $a.$ \item Si $a.\.p.\.b..\.k_2 \in \Z.$ \be \item Si $d|a$ y $d|b$entonces$d|(ax+by)$ para cualquier$x.|a|=|b|$ \ee \end{teorema} \bigskip .$ \be \item Si $d|a$ y $d|b$entonces$d|(ax+by)$ para cualquier$x.$ \item Si $a.$\\ Luego$b=k_2d=k_2(k_1a)\. \Longrightarrow \.\\ \begin{lstlisting} \begin{teorema}[(Divisibildad)].q \in \Z.$entonces$a|mb. \wedge \.$ \item Si $a.\Longrightarrow\..d|q.\Longrightarrow\. \Longrightarrow\. .$ con $m \in \Z. b=k_2d.$ con $m \in \Z.d.\Longrightarrow\.\Longrightarrow\.a \geq b$ \item Si $a|b.$$a|b$ y $b|a\. a|b$ \end{ejemplo} De acuerdo al ejemplo\ref{ejemplo1}.\.|a|=|b|$ \ee \end{teorema} \bigskip \fntb{Teorema CON descripción y SIN referencias}.d|q.b \in \Z^+$ y $b|a\. \.q \in \Z..$ \item Si $a.$$a|b$ y $b|a\.\wedge\. d=k_1a \.d.\mbox{con}\.b. d|b\. \end{teorema} \end{lstlisting} \begin{teorema} Sean $a.y \in \Z$ \item Si $d|(p+q)$ y $d|p \.b \in \Z..\\ \begin{lstlisting} \begin{teorema} .\\\\ \subsection{Teoremas} \bigskip \fntb{Teorema SIN descripción NI referencias}.{\bfSolución:} Si $a|d\..\Longrightarrow\.\.b \in \Z^+$ y $b|a\.$entonces$a|mb. k_1. $ \item Si $a. \\ \begin{lstlisting} \begin{lema}[--.\.$ El máspequeño divisor positivo$d > 1$ de $n$esprimo..y \in \Z$ \item Si $d|(p+q)$ y $d|p \.\\ \subsection{Proposición} .\Longrightarrow\. \end{corolario} \end{lstlisting} \begin{corolario}[corolario1] Sea $n\in \Z.$ El máspequeño divisor positivo$d > 1$ de $n$esprimo..$ con $m \in \Z.\fntb{Teorema CON descripción Y referencias}...\.d.$$a|b$ y $b|a\. \\ \begin{lstlisting} \begin{corolario}[corolario1]..\.. \end{lema} Referencia al lema\ref{lema1}.\Longrightarrow\.. comoantes.n>1..\\ \fntb{Lema CON descripción y referencia}.][lema1] Sea $n\in \Z.b \in \Z. \Longrightarrow \.$ \item Si $a.d|q.a \geq b$ \item Si $a|b.b \in \Z^+$ y $b|a\.\\ \fntb{Corolario CON referencia}.$ \be \item Si $d|a$ y $d|b$entonces$d|(ax+by)$ para cualquier$x.q \in \Z.(El divisor máspequeño).\\ \subsection{Lemas} Loslemasadmitendescripción y referencias.p. \end{lema} \end{lstlisting} \begin{lema}[--. \end{teorema} \end{lstlisting} \begin{teorema}[(Divisibildad)][teo1] Sean $a.(El divisor máspequeño).\.\\ \begin{lstlisting} \begin{teorema}[(Divisibildad)][teo1]. \end{corolario} Referencia: Segúnelcorolario\ref{corolario1}..\\ \subsection{Corolarios} Loscorolarios solo tienen la opción de referencia (no de descripción)..b.|a|=|b|$ \ee \end{teorema} Según\ref{teo1} setiene.][lema1].n>1..$entonces$a|mb. en estedocumentosehizounavariación de coloresagregando en el {\itpreámbulo}\\ \begin{lstlisting} % Podríacambiarel color de losentornos (preámbulo).3} \definecolor{grisD}{rgb}{.68. \end{proposicion} Referencia a la proposición\ref{propo1}.3.46.0..14} \definecolor{colordominanteD}{RGB}{137.\\ ...6.\\ \section{Cambiar los colores en el preámbulo}\label{cambiarcolores} Puederedefinirloscolores de lasdefiniciones.. porejemplo.3} \definecolor{grisF}{rgb}{..14} % \definecolor{colordominante}{RGB}{243.67} \renewcommand{\verde}{\color{miverde}} \end{lstlisting} %---------------------------------------------------------------------% Capítulo 3 %---------------------------------------------------------------------\chapter{Otrosentornos} \section{Cajas y cajassimples}Lascajas solo tienenopción de descripciónpero no de referencia.Lasproposicionesadmitendescripción y referencias..199. comoantes.\.196..245} \definecolor{azulF}{rgb}{. \end{proposicion} \end{lstlisting} \begin{proposicion}[][propo1] Sea $n\in \Z. ejemplos. % Losvalores de losformatosRGB y rgb lo % puedetomar de Inkscape.102.25} \definecolor{amarilloM}{RGB}{248. \definecolor{colortitulo}{RGB}{219.90} \definecolor{amarilloD}{RGB}{251..n>1.6} \definecolor{miverde}{RGB}{44.248..3. teoremas.$ El máspequeño divisor positivo$d > 1$ de $n$esprimo. \\ \begin{lstlisting} \begin{proposicion}[][propo1]..25} \definecolor{colordominanteF}{RGB}{219.\\ \fntb{Proposición CON referencia}. agregando en el {\itpreámbulo} suscolorespersonales.\\ \bigskip \fntb{Caja con descripción}. etc.0.68.162.237..6.121} \definecolor{grisamarillo}{RGB}{248.55} \definecolor{mostaza}{RGB}{231. \\ \begin{lstlisting} \begin{nota} .. \end{nota} \end{lstlisting} \begin{nota} $0^0$ no estádefinido. sepuedecrearotrosestilos de listas...\begin{lstlisting} \begin{caja}[ Interludio: Particiones y restos ].. como en $\ds e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}$. \end{nota} El entorno para elvocabularioes simple (aunque en elcódigodelarchivo de diseñoestapreparado para tenercaja)... porejemplo .. \end{caja} \end{lstlisting} \begin{caja}[ Interludio: Particiones y restos ] El resto de la divisiónpor$p>1 \in \Z$identifica a $p$grupos de númerosque .\\ \begin{lstlisting} \begin{vocabulario} .. \end{scaja} \end{lstlisting} \begin{scaja} Estaesunacaja simple \end{scaja} \section{Notas y vocabulario} Lasnotasvienen con uncírculo y unsímbolo. aunque a vecesseconviene en que$0^0=1$..] Se dice queunafunción ...\\ \end{caja} Lascajassimples son solo cajas\verb+\begin{scaja}. \end{vocabulario} %---------------------------------------------------------------------% Capítulo 4 %---------------------------------------------------------------------\chapter{Cosas de ediciónhabilitadas} \section{Listas de enumeraciónadicionales} Adicionalmente al códigoestándar. El paquete de estilousacomandosTiKz con losquesepuedencrearnuevosambientes {\tt enumerate}.. \end{vocabulario} \end{lstlisting} \begin{vocabulario}[(Función suave)...\end{scaja}+\\ \begin{lstlisting} \begin{scaja} . porejemplo\\\\ % Usando el comando '\lstinline' del paquete listings \lstinline|\newcommand{\beaz}{\begin{enumerate}[label=\itembolasazules {\arabic*}]}|\\ \lstinline|\newcommand{\eeaz}{\end{enumerate}}|\\ Así. podríamosescribir\\ \begin{lstlisting} \beaz \item paso \\ \item paso\\ \item paso \\ \item paso\\ \eeaz \end{lstlisting} .\begin{minipage}{.75\textwidth} \begin{lstlisting} \begin{enumerate}[label=\itembolasgrises{\arabic*}] \item paso \item paso \item paso \item paso \end{enumerate} \end{lstlisting} \end{minipage} \vspace{0.3cm} \begin{minipage}{.75\textwidth} \begin{lstlisting} \begin{enumerate}[label=\itembolasazules{\arabic*}] \item paso \\ \item paso\\ \item paso \\ \item paso\\ \end{enumerate} \end{lstlisting} \end{minipage} \bigskip Observe quepuededefiniruncomando para abreviaresteentorno.25\textwidth} \begin{enumerate}[label=\itembolasgrises{\arabic*}] \itempaso \itempaso \itempaso \itempaso \end{enumerate} \end{minipage}\\\hfill\begin{minipage}{.25\textwidth} \begin{enumerate}[label=\itembolasazules{\arabic*}] \itempaso \itempaso \itempaso \itempaso \end{enumerate} \end{minipage}\\\hfill\begin{minipage}{. 67} \definecolor{verdep}{RGB}{166.6.17.14} \definecolor{colordominanteD}{RGB}{137. \section{El entorno tabular} Es elentorno usual.17.79} \definecolor{colordominanteF}{RGB}{219..\bigskip Tambiénsepuedeusar\lstinline+\itembolasverdes+ y puntosindividuales con \lstinline+\ptom+ (\ptom) y \lstinline+\ptomv+ (\ptomv) y \lstinline+\ptomr+ (\ptomr). porejemplo.tex} de este manual.6} \definecolor{grisamarillo}{RGB}{248.46..162.245} \definecolor{miverde}{RGB}{44..3} \definecolor{grisF}{rgb}{.90} \definecolor{amarilloD}{RGB}{251.0.206. perorequiereinstalarprogramasadicionales.196.6.58} \definecolor{verdeF}{RGB}{5.237.55} \definecolor{mostaza}{RGB}{231.121} \definecolor{azulF}{rgb}{.3.8} \end{lstlisting} \section{Código de programas en color} El código en estefolletoestáiluminado con elpaquete {\tt listings}. \definecolor{colortitulo}{RGB}{11. Hay otrospaquetesquehacenlosmismo con otrasvariaciones: Lospaquetes {\tt minted} y {\ttverbments}.206.8 dellibro. etc.199.. porejemplo. agregando en el {\itpreámbulo} suscolorespersonales. %-------------- \section{Cambiar los colores en el preámbulo}\label{cambiarcolores} Puederedefinirloscolores de lasdefiniciones.68... teoremas.. Para verejemplosvaya al archivo {\red .92. en estedocumentosehizounavariación de coloresagregando en el {\itpreámbulo}\\ \begin{lstlisting} % Aquípodríacambiarel color de losentornos % Losvalores de losformatosRGB y rgb lo puedetomar de Inkscape.79} % \definecolor{colordominante}{RGB}{11.58} \definecolor{verdencabezado}{RGB}{166. \begin{lstlisting} \rowcolors{1}{}{gray!20} .25} \definecolor{amarilloM}{RGB}{248.3.0. Versección 9..248.3} \definecolor{grisD}{rgb}{. ejemplos.. 5$ & $1. \url{http://olivierlemaire.31799$\\ \hline \hline \end{lstlisting} \begin{center} \rowcolors{1}{}{gray!20} \begin{tabular}{lcl} \rowcolor{LightBlue2}$x_i$&&$y_i=f(x_i)$\\\hline $x_0=0$&&$0$\\ $x_1=0.75$&&$-0.0409838$\\ $1.5$ \end{tabular} && && && && $y_i=f(x_i)$\\ $0$\\ $-0.75$ & $-0.31799$\\ \end{dataTable} \captionof{table}{Tabla usandoTikz} \end{center} El códigoes \begin{lstlisting} % El entornoestádefinido en elarchivo de estilo. Lemaire.0409838$\\\midrule 3 &$x_2=1.5$&$1.5$&&$1.0409838$\\ $x_2=1.75$&$-0.75$ $x_2=1.com/2010/03/08/tableaux-tikz/?}) \begin{center} \begin{dataTable}{cll}% {\white$i$} & {\white$x_i$} & {\white$y_i=f(x_i)$} \\\midrule[0pt] 1 &$x_0=0$&$0$\\\midrule 2 &$x_1=0.31799$\\ \end{dataTable} \captionof{table}{Tabla usandoTikz} \end{center} \end{lstlisting} .wordpress.\begin{tabular}{lcl} \rowcolor{LightBlue2}$x_i$ $x_0=0$ $x_1=0.0409838$\\ \midrule 3 & $x_2=1.31799$\\\hline \end{tabular} \end{center} \medskip Note queseusóel color {\ttLightBlue2} delmodelo {\ttx11names} delpaquete {\tt xcolor}\\ \section{Tablas con elpaqueteTIKZ} En elarchivo de estiloestádefinidoelentorno {\ttdataTable} para generar tablas usandoTikz (idea original de O. \begin{center} \begin{dataTable}{cll}% {\white $i$} & {\white $x_i$} & {\white $y_i=f(x_i)$} \\ \midrule[0pt] 1 & $x_0=0$ & $0$\\ \midrule 2 & $x_1=0. png}} \end{minipage} \end{figure} \bigskip El logo de la revista digital ({\ttRevistaLogo.\\\\ {\bf\color{colordominante} Paquete "caption".eps} sin problemas. .}+ o \verb+\captionof{table}{.\\ \begin{figure}[ht] \begin{minipage}{12cm} \begin{lstlisting} \begin{figure}[ht] \centering \includegraphics{images/logocc} \caption{Figura {\tt logocc. para insertarunafigurasepuedeusarelentorno {\tt figure} (figurasflotantes) y tambiénpuedeusarelpaquete {\tt caption} para insertarfiguras (no flotantes).\section{Gráficos}RecordamosqueestamoscompilandoPDF\LaTeX.\\\\ .png}} \end{figure} \end{lstlisting} \end{minipage}\hfill\begin{minipage}{8cm} \centering \includegraphics{images/logocc} \caption{Figura {\ttlogocc. En general.9}}. puedeusarelpaquete "caption".}+después de estosentornos..\\ \itempto Si instaló la distribución {\red\ttTeXLive 2009} o {\red{\ttMikTeX 2.png} y {\tt ..\\\\ El usomínimodelpaqueteesusar\verb+\captionof{figure}{. . \ee En esteformato de librosepuedeusarentornos de figurasflotantes. . \end{figure}+ y la numeraciónseconserva.png}) sepuedencambiarporotraspero {\itconservandoelnombre}. Losobjetos (figuras. si no están no pasanada.} Si quiereel control.pdf}) y el logo de CreativeCommons ({\ttlogocc. Si deseausartambiénelformato {\tt . Se suponequeestán en la mismacarpetadelarchivo {\tt . En todocaso. . Aúnasípuedeusarestepaquete en conjunto con \verb+\begin{figure} .jpg. \be \itempto Si instaló la distribución {\red\ttTeXLive 2012 o 2013}. .eps}. debeusarelpaquete {\ttepstopdf} y habilitar {\tt shell escape} (vercapítulo 6 dellibro).png} sin problemas. puedeusarlosformatos {\tt pdf. . tablas) con losque use estepaqueteya no seránflotantes.\\ El códigoquesiguenosmuestralas dos posibilidades.. puedeusarlosformatos {\tt pdf..jpg.tex} o unasubcarpetallamada '{\tt images}'. .. El entornoestepaquete de estilo.. \begin{solu} soluciónejercicio#1 (sihubiera.png}} \end{center} \end{lstlisting} \end{minipage}\hfill\begin{minipage}{8cm} \centering \includegraphics{images/logocc} \captionof{figure}{Figura {\ttlogocc.. \begin{solu} soluciónejercicio#2 (sihubiera) \end{solu} \end{ejer} \end{ejercicios} \end{lstlisting} \bigskip Al final sedebeagregarlassolucionesporcapítulo (no importaelnúmero de listas de ejercicios en cadacapítulo).png}} \end{minipage} \section{Listas de ejercicios} Se usaelpaquete {\tt unentornopersonalizado.\\ \begin{lstlisting} . # 1 .\end{ejercicio} % un solo ejercicio en unacaja \end{lstlisting} \bigskip Se puedenagregartodaslaslistas de ejerciciosquesequiera. # 2 .. answers} con Puedeusartresentornos \begin{lstlisting} \begin{ejercicios} --. sale al final delPDF) \end{solu} \end{ejer} %----------------------\begin{ejercicios} \begin{ejer} Resolver .\begin{minipage}{10cm} \begin{lstlisting} \begin{center} \includegraphics{images/logocc} \captionof{figure}{Figura {\tt logocc.\end{cejercicios} % para listas en cajas \begin{ejercicio} --...\end{ejercicios} % para listassimples \begin{cejercicios} --. El formatoes\\ \begin{lstlisting} \section*{Ejercicios} \begin{ejercicios} \begin{ejer} Resolver .. Sin solución----\begin{ejer} Resolver \begin{enumerate} \item[a.)] $|2\sen(\theta)\cos(\theta)|=1$ con $\theta \in\. \Z$ \end{solu} \end{ejer} %----------------------\begin{ejer} Resolver $|\sen(\theta)|=1$ con $\theta \in\.Sin solución----\begin{ejer} Resolver \begin{enumerate} \item[a. \..)] $|2\sen(\theta)\cos(\theta)|=1$ con $\theta \in\.)] $|2\sen(\theta)\cos(\theta)|=1$ con $\theta \in\. \R. k \in\.$ \begin{solu} $|\cos(\theta)|=1 \Longrightarrow \theta=k\pi. k \in\. k \in\. \solucionesCap{N} \end{lstlisting} Porejemplo: \\ \begin{lstlisting} \begin{cejercicios} \begin{ejer} Resolver $|\cos(\theta)|=1$ con $\theta \in\. \. \. \R. \R$ \end{enumerate} \begin{solu} Mmmmmm \end{solu} \end{ejer} \end{cejercicios} \end{lstlisting} \begin{cejercicios} \begin{ejer} Resolver $|\cos(\theta)|=1$ con $\theta \in\. k \in\. \Z$ \end{solu} \end{ejer} %----------------------\begin{ejer} Resolver $|\sen(\theta)|=1$ con $\theta \in\. \.$ \begin{solu} $|\cos(\theta)|=1 \Longrightarrow \theta=k\pi. \R^+$ \item[b. \R^+$ \item[b.%Imprimirlassoluciones------------------\soluciones % Obligatorio \solucionesCap{1} \solucionesCap{2} . \R^+$ \begin{solu} $|\sen(\theta)|=1 \Longrightarrow \theta=(2k+1) \displaystyle\frac{\pi}{2}. \R$ .)] $|2\sen(\theta)\cos(\theta)|=1$ con $\theta \in\. \R^+$ \begin{solu} $|\sen(\theta)|=1 \Longrightarrow \theta=(2k+1) \displaystyle\frac{\pi}{2}. \Z^+$ \end{solu} \end{ejer} %----------------------. \Z^+$ \end{solu} \end{ejer} %----------------------.. Se debeusarelentorno\verb+\begin{cajaejercicios}.\\ \bex%Inicio lista de subproblemas \itemps{Subproblema 3.+.3} \eex% Fin lista subproblemas \end{ejer} \end{cajaejercicios} \medskip El códigoes. Porejemplo.\end{enumerate} \begin{solu} Mmmmmm \end{solu} \end{ejer} \end{cejercicios} Recuerdeque al final deldocumento {\tt .}{Solución 2.2} \itemps{Subproblema 3.\\ \begin{lstlisting} \bigskip \begin{cajaejercicios} \exersol{Pregunta 1..tex} sedebeponer\\ \begin{lstlisting} %Imprimirlassoluciones-------------------------------------------------------\soluciones % Obligatorio (seasumequesetiene \tableofcontents) \solucionesCap{1} .} \exersol{Pregunta 2.2 }{ Solución 3.} %Subproblemas \begin{ejer} Problema 3..3 }{ Solución 3. \end{lstlisting} \section{Caja para listas de ejercicios} El archivo de diseñoviene con comandossimplificados para hacerlistas de problemas y subproblemas en unacaja..}{Solución 1.\\}{Solución 2.} \exersol{Pregunta 2.1} \itemps{Subproblema 3.\\ \bigskip \begin{cajaejercicios} \exersol{Pregunta 1.\\}{Solución 1.\\ \bex %Iniciolista de subproblemas ..1 }{ Solución 3.} %Subproblemas \begin{ejer} Problema 3. Henrici. An Introduction. \R. \R. New York.1} \itemps{Subproblema 3. 1982.\itemps{Subproblema 3. New York. {\em Numerical Analysis. {\em Numerical Analysis... en esteestilosepuedeusarunentornopredefinido\\ \lstinline+\begin{thebibliography}.$ con $\theta \in\. 1997.3 \\}{ Solución 3.3} \eex % Fin listasubproblemas \end{ejer} \end{cajaejercicios} \end{lstlisting} \subsection{Un solo ejercicio} \begin{lstlisting} \begin{ejercicio} Resolver $|\cos(\theta)|=1$ \end{ejercicio} \end{lstlisting} \begin{ejercicio} Resolver $|\cos(\theta)|=1$ \end{ejercicio} con $\theta \in\. Gautschi. 1997. Henrici. Gautschi.{\it Essentials of Numerical Analysis. An Introduction.} Birkh\"{a}user. \bibitem{Henrici} P. .$ \section{Entornobibliografía}Ademásdelentornoestándar para la bibliografía.} Wiley.} Birkh\"{a}user.} Wiley. 1982. \end{thebibliography} \end{lstlisting} \thispagestyle{empty} \addcontentsline{toc}{section}{\color{azulF} Bibliografía} \begin{thebibliography}{AAAAAA}% define el tamano de la columna izquierda \bibitem{Gautschi} W.\end{thebibliography}+ \bigskip {\small \begin{lstlisting} \thispagestyle{empty} \addcontentsline{toc}{section}{\color{azulF} Bibliografía} \begin{thebibliography}{AAAAAA}% define eltamano de la columnaizquierda \bibitem{Gautschi} W.2} \itemps{Subproblema 3.1 \\}{ Solución 3. \bibitem{Henrici} P.2 \\}{ Solución 3.{\it Essentials of Numerical Analysis. ..\end{thebibliography} %-----------------------------------------------------------------------------------%Imprimir las soluciones %\chapter*{Soluciones} \soluciones%Obligatorio %\solucionesCap{1} \solucionesCap{4} %\solucionesCap{3} % . \end{document} . .png.backgrounds.. Habilitar mejor en Ubuntu (Linux) \renewcommand{\theFancyVerbLine}{\sffamily \textcolor[rgb]{0.sty DE DISE�O % PAQUETES Y ESTILO DEL LIBRO %-------------------------------------------------------------------------\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{RevistaMatematica_ITCR_Estilo_Libro_A}[2013/08/18] \RequirePackage[spanish]{babel} \RequirePackage[latin1]{inputenc} % Entrada de acentos \RequirePackage[T1]{fontenc} \RequirePackage[autostyle.%-------------------------------------------------------------------------% ARCHIVO .stmaryrd} %Soporte math s�mbolos-fonts.shadows.eps} %priorizaci�n de formatos \RequirePackage{multicol} \RequirePackage{amsmath..hyperref]{ntheorem} \RequirePackage[ruled.pdf.9 o inferior.0.breakable} % Librerias tcolorbox \RequirePackage{xargs} % Comandos con opciones \usetikzlibrary{positioning. etc. spanish = mexican]{csquotes} % manejo de comillas: " " \MakeOuterQuote{"} %\RequirePackage{pslatex} % Fuentes finas postscript %\RequirePackage[sc]{mathpazo} % Fuentes mathpazo \RequirePackage{helvet} \RequirePackage{palatino} % Fuente palatino \linespread{1.1} \frenchspacing %\thispagestyle{empty} \parindent=0mm .0.cancel.Miktes 2.calc}% \DeclareGraphicsExtensions{. TexLive 2009.linesnumbered.amsfonts.thmmarks.latexsym.bf]{caption} \RequirePackage{titlesec} \renewcommand{\baselinestretch}{1..jpg. \tcbuselibrary{skins.5}{\scriptsize \oldstylenums{\arabic{FancyVerbLine}}}} \RequirePackage{colortbl} \RequirePackage{tabularx} \RequirePackage{booktabs} %\RequirePackage{epstopdf} % Conversi�n .lined. ejemplos.vlined.algochapter]{algorithm2e} \RequirePackage{framed} \RequirePackage{titletoc} \RequirePackage{etoolbox} \RequirePackage{fancyvrb} %\RequirePackage{minted} %iluminar c�digo.amssymb. \RequirePackage[amsmath. o inferior \RequirePackage[small.05} % Fuente Palatino necesita espaciado %\RequirePackage[full]{textcomp} % Caracteres especiales como ' (recto) \RequirePackage{xcolor} % Color: usando X11names \RequirePackage{psboxit} \RequirePackage{pstricks} \RequirePackage{xparse} \RequirePackage{tcolorbox} % Paquete para cajas de Teoremas. .2=9.161} \definecolor{colorteorema}{RGB}{0..248.%-------------------------------------------------------------------------------% COLORES personales %-------------------------------------------------------------------------------\definecolor{colordominante}{RGB}{11.177} \definecolor{amarilloS}{RGB}{252.162.6.6.14} \definecolor{colorejemplo}{RGB}{77.3=n]{{\color{grisF}\fontfamily{#1}\fontsize{#2 }{1}\fontshape{#3}\selectfont{#4}}} \newcommand{\fhv}[2]{{\fontfamily{phv}\fontsize{#1}{1}\selectfont{#2}}} \newcommand{\fhvb}[2]{{\fontfamily{phv}\fontseries{b}\fontsize{#1}{1}\selectfont{ #2}}} %------------------------------------------------------------------------------%********************************** DISENO ************************************* %-------------------Dise�o de CAPITULO (estilo simple) ------------------------\newcommand{\hsp}{\hspace{20pt}} \titleformat{\chapter}[hang]{\huge\bfseries}{{ \fontsize{6em}{6em}\selectfont\black \thechapter}\hsp\textcolor{colorteorema}{\vrule height 4em width 1pt}\hsp}{0pt}{\huge\bfseries} %-----------------------------.252.208} \definecolor{colordefinicion}{RGB}{97.2=9..67} \newcommand{\verde}{\color{miverde}} %------------------------------------------------------------------------------% Comandos para fuentes especiales %------------------------------------------------------------------------------\newcommandx*{\fnte}[4][1=pag..2=11.190.121} \colorlet{colorfondoejemplo}{gray!10} \colorlet{colorfondodefinicion}{gray!10} \colorlet{colorfondoteorema}{gray!10} \definecolor{colorfondocaja}{RGB}{252.3..245} \definecolor{amarilloD}{RGB}{251.200} \definecolor{grisamarillo}{RGB}{248.244} \definecolor{rosado}{RGB}{201.133.17.199} \definecolor{violeta}{RGB}{117..3} \definecolor{grisD}{rgb}{.148.3} \definecolor{grisF}{rgb}{.196.3.3=n]{{\color{azulF}\fontfamily{#1}\fontsize{ #2}{1}\fontseries{b}\fontshape{#3}\selectfont{#4}}} \newcommandx*{\fntg}[4][1=pag.227.107.252.Dise�o de PARTE------------------------------\renewcommand\part{% \if@openright \cleardoublepage \else .3=n]{{\color{azulF}\fontfamily{#1}\fontsize{# 2}{1}\fontshape{#3}\selectfont{#4}}} \newcommandx*{\fntb}[4][1=pag.237.133.202} \definecolor{colortitulo}{RGB}{0.79} \definecolor{colordominanteF}{RGB}{219.0.244} \definecolor{azulF}{rgb}{.68.6} \definecolor{miverde}{RGB}{44.202} \definecolor{colorcaja}{RGB}{244.0. SUBSUB...--------------------------------------\newcommand{\mcaja}[1]{% .\clearpage \fi \thispagestyle{plain}% \if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi \null\vfil \secdef\@part\@spart} \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi %\markboth{}{}% {\centering \interlinepenalty \@M \normalfont \ifnum \c@secnumdepth >-2\relax \huge\bfseries \partname\nobreakspace\thepart \par \vskip 20\p@ \fi \Huge \bfseries #2\par}% \@endpart} \def\@spart#1{% {\centering \interlinepenalty \@M \normalfont \Huge \bfseries #1\par}% \@endpart} \def\@endpart{\vfil\newpage \if@twoside \if@openright \null \thispagestyle{empty}% \newpage \fi \fi \if@tempswa \twocolumn \fi} % Fin PARTE % Dise�o de SECCIONES SUBSECCIONES . ap�ndice-----------------------------------% TEORIA .{{\fboxsep 12pt \fboxrule 0pt% \fcolorbox{white}{white}{% \color{grisD} \huge #1}}} %color numeraci�n secciones } % \def\section{\@ifstar\unnumberedsection\numberedsection} \def\numberedsection{\@ifnextchar[%] \numberedsectionwithtwoarguments\numberedsectionwithoneargument} \def\unnumberedsection{\@ifnextchar[%] \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} \def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1} } \def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1] {#1}} \def\numberedsectionwithtwoarguments[#1]#2{% \ifhmode\par\fi \removelastskip \vskip 3ex\goodbreak \refstepcounter{section}% \begingroup %\noindent \leavevmode\large\bfseries\raggedright\mcaja%caja aplica a number section \thesection\color{azulF} #2\par\nobreak %Color del texto de \section{texto} \endgroup \noindent\hrulefill\nobreak \vskip 2ex\nobreak \addcontentsline{toc}{section}{% \protect\numberline{\thesection}% #1}% } \def\unnumberedsectionwithtwoarguments[#1]#2{% \ifhmode\par\fi \removelastskip \vskip 3ex\goodbreak % \refstepcounter{section}% \begingroup \noindent \leavevmode\Large\bfseries\raggedright % \thesection\ #2\par\nobreak \endgroup \noindent\hrulefill\nobreak \vskip 0ex\nobreak \addcontentsline{toc}{section}{% % \protect\numberline{\thesection}% #1}% } %--Subsecciones-subsubsecciones-paragraph... -%----------------------------------------------------------------------------------%P�gs blancas % \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \hbox{} .subsecciones . 'subsection' % LEVEL : a number..secciones . % section = 2. secciones.Cap�tulos .Fin Partes.25ex\@plus -1ex \@minus -. then % there should be no [ALTHEADING] argument. % else . etc.% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} % optional * [ALTHEADING]{HEADING} % Generic command to start a section.5ex \@plus -1ex \@minus -.2ex}% {-1em}% {\normalsize\bfseries\color{azulF}}} \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% {3.2ex}% {-1em}% {\normalsize\bfseries\color{azulF}}} %--.2ex}% {\large\bfseries\color{azulF}}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.5ex \@plus . % STYLE : commands to set style % If '*' missing. A section number will be printed if % and only if LEVEL < or = the value of the secnumdepth % counter.e. T�tulo. A sectioning command % is normally defined to \@startsection + its first six arguments. then skip to leave below heading.g. % %\RequirePackage{appendix} % % \renewcommand\section{\@startsection {section}{1}{\z@}% % {-3. % INDENT : Indentation of heading from left margin % BEFORESKIP : Absolute value = skip to leave above the heading. then increments the counter.skip to leave to right of run-in heading. subsecciones.etc. If it is present.3ex \@plus. % If negative.2ex}% {\normalsize\bfseries\color{azulF}}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.2ex}% {1.. % NAME : e. denoting depth of section -.2ex}% % {\sectionfont\Large\bfseries\color{azulF}}} \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex \@plus1ex \@minus.g.25ex \@plus1ex \@minus .25ex\@plus -1ex \@minus -.subsubsections %----------------------------------------------------------------------------------% Dise�o de Cabeceras Contenido.5ex \@plus . then paragraph indent of text following % heading is suppressed.2ex}% {1. % AFTERSKIP : if positive.2ex}% % {2. chapter=1. TITULO------------------------------------------------------------------------% \def\thickhrulefill{\leavevmode \leaders \color{colorteorema}\hrule height 4pt\hfill \kern \z@} \renewcommand{\maketitle}{\begin{titlepage}% %\let\footnotesize\small \let\footnoterule\relax \parindent \z@ \reset@font \null \vskip 10\p@ \hbox{\mbox{% .0cm} %Numeraci�n de p�gina en el borde de la p�gina \addtolength{\headheight}{0.\vspace*{\fill} \begin{center} Esta p�gina fue dejada intencionalmente blanca \end{center} \vspace{\fill} \thispagestyle{empty} \newpage \if@twocolumn\hbox{}\newpage\fi\fi\fi} %-----------------Cabeceras-------------------------------------------------------\newcommand{\helv}{\fontfamily{phv}\fontsize{8}{10}\selectfont} \RequirePackage{fancyhdr} \pagestyle{fancy} \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}{#1}} % \renewcommand{\sectionmark}[1]{\markboth{\thesection\#1}} \fancyhf{} % borra cabecera y pie actuales \fancyhead[LE.Pr�logo ----------------------------------------------------------------------\NewDocumentEnvironment{prologo}{O{}}{% \addcontentsline{toc}{schapter}{% \hspace{6em}{\color{azulF}{\fontfamily{phv}\fontsize{9}{10}\selectfont Prol\'ogo}} \qquad} \chapter*{Pr�logo} \bigskip\bigskip \begin{minipage}{0. Con raya?: cambiar {0} por {0.5pt} \fancyheadoffset[R]{0.5pt} % espacio para la raya \fancypagestyle{plain}{% \fancyhead{} % elimina cabeceras y raya en p�ginas "plain" \renewcommand{\headrulewidth}{0pt} } % Fin cabeceras ------------------------------------------------------------------%-.RO]{\bfseries \helv\thepage} %Left Even page .5pt} \renewcommand{\footrulewidth}{0pt} \setlength\headheight{14.Right Odd page %\fancyhead[R]{\bfseries \helv\thepage} % Numeraci�n siempre a la derecha \fancyhead[LO]{\helv\rightmark} \fancyhead[RE]{\helv\leftmark} \renewcommand{\headrulewidth}{0pt} % Sin raya.9\textwidth} #1}{\end{minipage}} %-. cr/revistamatematica/}{(http://www.pdf}{\includegraphics[width=3em]{images/logo.110} %\usepackage{titletoc} \contentsmargin{0cm} \titlecontents{chapter}[0pc] {\addvspace{30pt}% \begin{tikzpicture}[remember picture.pdf}}{}% \hspace{4pt} }% \color{colortitulo}\vrule depth 0.draw=doc!30] (-4.4pc] .% \pgftext[left.1pt).2cm]{\color{white}\Huge\sc\bfseries \ \thecontentslabel}.\titlerule\.itcr.x=-1.-. overlay] \draw[fill=doc!25.draw=doc!20] (2pt.\large\sc\bfseries P�gina \thecontentspage \begin{tikzpicture}[remember picture. Educaci�n e Internet}\\ \fntg[phv][10]{% \href{http://www.}}\\ \end{flushleft} \vfil }} \null \end{titlepage}% \setcounter{footnote}{0}% } % Fin Titulo---------------------------------------------------------------------------%-------------------CONTENIDO ----------------------------------------------------%\usepackage{kpfonts} \definecolor{doc}{RGB}{0. \end{tikzpicture}}% \titlecontents{section}[2.0.9\textheight width 1pt% %\vrule height2.itcr.0.25ex width 1pt \mbox{\hspace{2em}} \vtop{% %%%%%%%%%%%%%%%%%% \vskip 40\p@ \begin{flushleft} \huge \bfseries \@title \par \end{flushleft} \vskip 80\p@ \begin{flushleft} \@author \par \end{flushleft} \vskip 240\p@ \color{gray} \begin{flushleft} \fhv{10}{Revista digital}\\ \fhvb{12}{Matem�tica.tec-digital.1) rectangle (0.cr/revistamatematica/).0) rectangle (6.tecdigital.% \end{tikzpicture}\color{doc!40}\large\sc\bfseries}% {} {} {\. overlay]% \draw[fill=doc!30.5 cm.75ex depth1.\hspace{4pt}% \IfFileExists{images/logo.5).y=0.ac.ac.60. overlay]% \pgftext[right.tecdigital..{\addvspace{1pt}} {\contentslabel[\color{azulF}\thecontentslabel]{2.4pc}} {} {\hfill\small \color{azulF}\thecontentspage} [] \titlecontents*{subsection}[4pc] {\addvspace{-1pt}\small} {} {} {\hfill\small \color{azulF}\thecontentspage} [ \textbullet\ ][] %\makeatletter \renewcommand{\tableofcontents}{% \chapter*{% \vspace*{-20\p@}% \begin{tikzpicture}[remember picture.-. \href{www.% \draw[fill=doc!30..1).75) rectangle (20.ac.% \clip (13. }{ #2}\\ \noindent\hbox{\footnotesize Derechos Reservados \copyright\ \thecopyrightyear\ Revista digital Matem\'atica.draw=doc!30] (13.itcr.y=0.x=15cm. %---------------------------------------------------------------------------------------\def\copyrightpage{\thispagestyle{empty}% \vbox to\textheight\bgroup\vfill\obeylines\obeyspaces\xcopyrightpage} \def\xcopyrightpage#1#2\end#3{\scriptsize\parindent=0pt Copyright\copyright{#1} \vskip40pt #2\vskip200pt\egroup\endgroup} \let\endcopyrightpage\relax % Fin Copyright % --------------------------------------------------------------------------% dofootnote con derechos --------------------------------------------------\def\dofnote#1#2{\vtop{\hyphenpenalty=10000 \advance\hsize -10pt \raggedright \footnotesize{\it #1. ISBN.tec-digital. \pgftext[right.2cm]{\color{doc!30}\Huge\sc\bfseries \contentsname}.x=15cm.1). Educaci\'on e Internet. .cr/revistamatematica/}{www.y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname}.% \end{tikzpicture}}% \@starttoc{toc}} %\makeatother % Fin Contenido ------------------------------------------------------------------%---------------------------------------------------------------------------------------% Copypright.itcr.75) rectangle (20.cr/revistamatematica/}}}} \def\offprintinfo#1#2{ \def\theoffprint{\bgroup\frenchspacing \dofnote{#1}{#2} \egroup}} %----------------------------------------------------------------------------- .-.ac. top color=colorteorema!50!white. inner sep=1mm. wnodeTeorema/.\arabic{tcbejer}} % Propiedades de nodo--------------------------------------------------------------\tikzset{ wnodeEjemplo/.anchor=west. wteorema. wcorolario. wproposicion.font=\normalsize }. wdefinicion. inner sep=1mm. minimum width=4cm. wnodeDefinicion/. bottom color=colorcaja.%-------------------------------------------------------------------------------% Entornos %-------------------------------------------------------------------------------% Cajas con el paquete tcbcolor % CONTADORES: wejemplo. minimum width=4cm. bottom color=colorteorema. inner sep=1mm. top color=colorejemplo!20!white. bottom color=colordefinicion.3cm. wnodeCaja/.style={% rectangle.style={% rectangle. wlema.\arabic{tcble}} \newcounter{tcbteo}[chapter] \renewcommand{\thetcbteo}{\thechapter.style={% rectangle.anchor=west.anchor=west.\arabic{tcbca}} \newcounter{tcbejem}[chapter] \renewcommand{\thetcbejem}{\thechapter. minimum width=4cm. text=black. text=black!80!white. minimum width=4cm.font=\normalsize}. top color=colordefinicion!20!white.\arabic{tcbvoca}} \newcounter{tcbejer}[chapter] \renewcommand{\thetcbejer}{\thechapter. top color=colorcaja. inner sep=1mm.\arabic{tcbteo}} \newcounter{tcbdefi}[chapter] \renewcommand{\thetcbdefi}{\thechapter. text=gray!10!black.font=\normalsize } } % Definici�n---------------------------------------------------------------------\newtcolorbox{wwdefinicion}[3][]{% .anchor=west.\arabic{tcbpropo}} \newcounter{tcbvoca}[chapter] \renewcommand{\thetcbvoca}{\thechapter.\arabic{tcbejem}} \newcounter{tcble}[chapter] \renewcommand{\thetcble}{\thechapter. bottom color=colorejemplo.\arabic{tcbdefi}} \newcounter{tcbcoro}[chapter] \renewcommand{\thetcbcoro}{\thechapter. %minimum height=0.font=\normalsize}.wejercicio \newcounter{tcbca}[chapter] \renewcommand{\thetcbca}{\thechapter.\arabic{tcbcoro}} \newcounter{tcbpropo}[chapter] \renewcommand{\thetcbpropo}{\thechapter.style={% rectangle. 20mm]frame.9pt] (frame. fontupper=\normalsize. step and label={tcbejem}{#3}.drop fuzzy shadow. }. fontupper=\normalsize.#2}}.breakable.south west).arc=0mm. } #1}% %\NewDocumentEnvironment{wdefinicion}{O{} O{} O{}}{\bigskip\begin{wwdefinicion}{#1}{#2}% #3}{\end{wwdefinicion}\bigskip } % Fin DEFINICION % Ejemplo --------------------------------------------------------------------\newtcolorbox{wwejemplo}[3][]{% arc=0mm.pad at break=2mm.pad at break=2mm. top=3mm.\thetcbejem \. % Caja de T�tulo DEFINICION \node[wnodeDefinicion]at ([xshift=-1pt.line width=1.colback=colorfondodefinicion. overlay={% % Borde overlay first={\draw[color=colordefinicion.line width=1.\.south west). % Caja de T�tulo EJEMPLO \node[wnodeEjemplo]at ([xshift=-1pt.south west).north west) --(frame. enhanced. yshift=2. enlarge top at break by=0mm. .north west) --(frame.south west). top=3mm.north west) --(frame.9pt] (frame. %Borde cambio de p�gina overlay middle={\draw[color=colorejemplo. %Separaci�n vertical .north west) --(frame.colback=colorfondoejemplo.9pt] (frame. boxrule=0pt. %Inicia texto enlarge top by=\baselineskip/2+1mm. enhanced. }. enlarge top at break by=0mm.inicia texto enlarge top by=\baselineskip/2+1mm. overlay last={\draw[color=colorejemplo.north west){\textbf{Ejemplo\. }.9pt] (frame.line width=1.drop fuzzy shadow.line width=1. step and label={tcbdefi}{#3}.north west) --(frame.#2}}.yshift=2.breakable.south west). }.}. overlay last={\draw[color=colordefinicion.line width=1. boxrule=0pt.20mm]frame.north west) {\textbf{Definici�n \thetcbdefi \. overlay ={% %Borde overlay first={\draw[color=colorejemplo.9pt] (frame. line width=1. fontupper=\normalsize. %Separaci�n vertical . enhanced.north west) --(frame.south west). enlarge top at break by=0mm. top=3mm. .20mm]frame.breakable.north west) {\textbf{Teorema \thetcbteo \. boxrule=0pt.inicia texto enlarge top by=\baselineskip/2+1mm.#2}}.pad at break=2mm.9pt] (frame.north west) --(frame. %Caja de T�tulo: TEOREMA node distance=0cm.colback=colorfondoteorema. } #1} %\NewDocumentEnvironment{wteorema}{O{} O{} O{}}{\bigskip\begin{wwteorema}{#1}{#2}% #3}{\end{wwteorema}\bigskip } % Fin TEOREMA % LEMA ------------------------------------------------------------------------\newtcolorbox{wwlema}[3][]{% arc=0mm. overlay = {% %Bordes----------------------------------------------------------------overlay first={\draw[color=colorteorema. }. boxrule=0pt.drop fuzzy shadow. fontupper=\normalsize.breakable. overlay={% %Bordes----------------------------------------------------------------overlay first={\draw[color=colorteorema.9pt] (frame.line width=1. enlarge top at break by=0mm. top=3mm. step and label={tcble}{#3}. }.south west). overlay last={\draw[color=colorteorema.drop fuzzy shadow. enhanced.south west).north west) --(frame.inicia texto enlarge top by=\baselineskip/2+1mm.line width=1.pad at break=2mm. yshift=2. %Separaci�n vertical . step and label={tcbteo}{#3}.colback=colorfondoteorema.9pt] (frame. \node[wnodeTeorema](tituloTeo) at ([xshift=-1pt.} #1} %\NewDocumentEnvironment{wejemplo}{O{} O{} O{}}{\bigskip\begin{wwejemplo}{#1}{#2}% #3}{\end{wwejemplo}\bigskip } % Fin EJEMPLO % Teorema ----------------------------------------------------------------\newtcolorbox{wwteorema}[3][]{% arc=0mm. overlay ={% . top=1mm.enhanced. boxrule=0pt. step and label={tcbpropo}{#3}. top=3mm. enlarge top by=\baselineskip/2+1mm. yshift=2. } #1} %\NewDocumentEnvironment{wlema}{O{} O{} O{}}{\bigskip\begin{wwlema}{#1}{#2}% #3}{\end{wwlema}\bigskip } %Fin LEMA % Proposici�n ---------------------------------------------------------------\newtcolorbox{wwproposicion}[3][]{% arc=0mm.south west).colback=gray!5.colback=colorfondoteorema.20mm]frame.north west) --(frame. %Caja de T�tulo: LEMA node distance=0cm. enhanced. overlay last={\draw[color=colorteorema.north west) { \textbf{Lema \thetcble\. }.drop fuzzy shadow.left=3pt.9pt] (frame.#2}}.line width=1. } #1} %\NewDocumentEnvironment{wproposicion}{O{} O{} O{}}{\bigskip\begin{wwproposicion}{#1}{#2}% #3}{\end{wwproposicion}\bigskip } %Fin Proposicion----------------------------------------------------------------% % Corolario ------------------------------------------------------\newtcolorbox{wwcoro}[2][]{% arc=0mm. \node[wnodeTeorema]at ([xshift=-1pt.line width=1.breakable.south west).breakable.north west) --(frame.}.pad at break=2mm.south west). enlarge top at break by=0mm. fontupper={\small\bf\sffamily {\color{azulF}Corolario \thetcbcoro}\.line width=1. overlay={% %Bordes----------------------------------------------------------------overlay first={\draw[color=colorteorema.north west) --(frame.}.9pt] (frame. overlay last={\draw[color=colorteorema.9pt] (frame.boxrule=0pt. }.north west){ \textbf{Proposici�n \. %Caja de T�tulo: Proposici�n \node[wnodeTeorema] at ([xshift=-1pt. #2}}.}~\normalfont. step and label={tcbcoro}{#2}.20mm]frame. fontupper=\normalsize.\thetcbpropo \. yshift=2. top=3mm.line width=0. fontupper=\normalsize.south west). fontupper={\bf\sffamily {\color{miverde}Ejercicio.line width=3pt] ([xshift=2pt] frame.Caja para ejercicio solitario \newtcolorbox{wwejercicio}[1][]{% arc=0mm.south west)--(frame.drop fuzzy shadow. overlay ={% overlay first = {%barra vertical \draw[color=gray.north east) --([xshift=0pt]frame. overlay ={% %Borde overlay first={\draw[color=amarilloD.% % Mantener borde en cambio de p�gina overlay last ={\draw[color=gray.% % Mantener borde en cambio de p�gina overlay last ={\draw[color=gray.breakable. boxrule=0pt.left=3pt.} .north west) --([xshift=0pt]frame.north west)--([xshift=2pt] frame. } }.north west)--([xshift=2pt] frame.enhanced.}~\normalfont. } #1} %\NewDocumentEnvironment{ejercicio}{O{} O{}}{\smallskip\begin{wwejercicio}{#1}% }{\end{wwejercicio}\smallskip } % Ejercicio-----------------------------------------------------%CAJA simple--------------------------------------------------------------------\newtcolorbox{wwbox}[1][]{% arc=0mm. enlarge top at break by=0mm.colback=grisamarillo. } #1} %\NewDocumentEnvironment{wcorolario}{O{} O{}}{\smallskip\begin{wwcoro}{#1}% }{\end{wwcoro}\smallskip } % Corolario-----------------------------------------------------% Ejercicio .}\.line width=3pt] ([xshift=2pt] frame.north west)--([xshift=2pt] frame.5pt] (frame.pad at break=2mm.inicia texto enlarge top by=\baselineskip/2+1mm.south west).north west)--([xshift=2pt] frame.line width=3pt] ([xshift=2pt] frame. } }. %step and label={tcbca}{#3}.north west). top=1mm.south west).colback=gray!5.line width=3pt] ([xshift=2pt] frame.boxrule=0pt.south east) --([xshift=0pt]frame. %Separaci�n vertical .overlay first = {%barra vertical \draw[color=gray.breakable. enhanced.south west). inner sep=0.5pt] (frame. top color=colorcaja. enlarge top at break by=0mm.south east) --([xshift=0pt]frame.boxrule=0pt. fontupper=\normalsize. % Caja de T�tulo CAJA \node[ rectangle. %Separaci�n vertical .5mm.enhanced.north east) --([xshift=0pt]frame. enhanced.breakable.north west).north east) --([xshift=0pt]frame.north west) --([xshift=0pt]frame.south east) --([xshift=0pt]frame. boxrule=0pt.0cm.colback=colorfondocaja.north west) --([xshift=0pt]frame.south west)--(frame. %step and label={tcbca}{#3}.north east) --([xshift=0pt]frame..south east) --([xshift=0pt]frame. }.line width=0.colback=white. left=3pt. top=3mm.4pt. %"Vocabulario. %Borde cambio de p�gina overlay last={\draw[color=amarilloD.south west)--(frame. overlay ={% %Borde overlay first={\draw[color=colorcaja.line width=0.5pt] (frame.30mm]frame.breakable.north west) --([xshift=0pt]frame. top=1mm."+texto del cuerpo .} #1} \newenvironment{scaja}[1][]{\bigskip\begin{wwbox}% #1}{\end{wwbox}} % Fin CAJA simple % Fin CAJA simple %CAJA de comentario --------------------------------------------------------------------\newtcolorbox{wwcaja}[2][]{% arc=0mm.north west){\textbf{#2}}. fontupper={\small\bf\sffamily {\color{azulF}Vocabulario \thetcbvoca \.}.pad at break=2mm. yshift=2.} #1} %\NewDocumentEnvironment{wcaja}{O{} O{}}{\bigskip\begin{wwcaja}{#1}% #2}{\end{wwcaja}\bigskip } % Fin CAJA de comentario %CAJA vocabulario------------------------------------------------------\newtcolorbox{vocabox}[3][]{% arc=0mm.. step and label={tcbvoca}{#3}. %Borde cambio de p�gina overlay last={\draw[color=colorcaja.north west).north west).south west)--(frame. bottom color=colorcaja. minimum height=0.font=\normalsize]at ([xshift=-0.line width=0.}. %minimum width=0cm.%drop fuzzy shadow.anchor=west.5pt] (frame.inicia texto enlarge top by=\baselineskip/2+1mm.#2}}~\normalfont. %Separaci�n vertical .line width=0. } }.circle.fill=white.line width=0. definiciones.inicia texto left=25pt."+texto del cuerpo overlay ={% %Borde y c�rculo overlay first={ \draw[color=white.north east) --([xshift=0pt]frame. enlarge top by=\baselineskip/2+1mm.line width=1pt.line width=3pt] ([xshift=2pt] frame.} #1} %\newenvironment{nota}[1][]{\bigskip\begin{notabox}% #1}{\end{notabox}} % Fin nota % Fin TCOLORBOX-----------------------------------------------------------------%---------------Teoremas.south east) --([xshift=0pt]frame.north west).% % Mantener borde en cambio de p�gina overlay last ={\draw[color=white.\end{tikzpicture}}~\normalfont.south west).colback=white.font=\sffamily\bfseries.line width=3pt] ([xshift=2pt] frame.5pt] (frame. #1} %\NewDocumentEnvironment{vocabulario}{O{} O{} O{}}{\smallskip\begin{vocabox}{#1}{#2}% #3}{\end{vocabox}\smallskip } % Fin vocabulario %CAJA nota------------------------------------------------------\newtcolorbox{notabox}[1][]{% arc=0mm.south west)--(frame.south east) --([xshift=0pt]frame. } }.overlay ={% overlay first = {%barra vertical \draw[color=white.north west) --([xshift=0pt]frame.north west)--([xshift=2pt] frame.pad at break=2mm.north west) --([xshift=0pt]frame. boxrule=0pt.5pt] (frame.north east) --([xshift=0pt]frame.3pt){\textcolor{colordominanteF}{N}}. }.. etc.south west)--(frame.outer sep=0pt] at (15pt. fontupper={\begin{tikzpicture}[overlay] \node[draw=colordominanteF.south west).north west). enlarge top at break by=0mm. %"NOTA.. enhanced.inner sep=2pt.breakable. %Borde cambio de p�gina overlay last={\draw[color=white. top=3mm.north west)-([xshift=2pt] frame. SIN CAJAS --------------------------\setcounter{secnumdepth}{3} . boxrule=0pt.68} % color del nodo % Caja ejercicios-\newtcolorbox{wwlistaejercicios}[1][]{% arc=0mm. pad at break=2mm. minimum width=4cm.\setcounter{tocdepth}{2} \setcounter{chapter}{0} \RequirePackage[amsmath. etc) y ##3=[Teorema tal] % \renewtheoremstyle{plain}% {\item[\hskip\labelsep \theorem@headerfont \color{azulF} ##1\ {\color{grisD}##2}\color{white}\theorem@separator]}% {\item[\hskip\labelsep \theorem@headerfont \color{azulF} ##1\ {\color{grisD} ##2}\ {\color{azulF}\normalfont(##3).breakable.}.thmmarks.top=8mm. inner sep=1mm. etc.colback=color1.north west)% {\textbf{Ejercicios}}. solo caja gris #1} % Nuevo entorno personalizado---------------------------------------\NewDocumentEnvironment{cejercicios}{O{}}{% \bigskip\begin{wwlistaejercicios}% #1}{\end{wwlistaejercicios}\bigskip } % .hyperref]{ntheorem} %Color n�mero=##1.}\color{white}\theorem@separator]} \theoremheaderfont{\sffamily\bfseries\color{azulF}} \theorembodyfont{\normalfont} \newtheorem{teorema}{Teorema}[chapter] \newtheorem{lema}{Lema}[chapter] \newtheorem{corolario}{{Corolario}}[chapter] \newtheorem{definicion}{Definici�n}[chapter] \newtheorem{ejemplo}{Ejemplo}[chapter] % Fin entornos Teoremas.fontupper=\normalsize.yshift=-3mm]frame. overlay ={ % nodo rectangular para "Ejercicios" \node[rectangle.---------------------------------------------%-------------------------------------------------------------------------------% LISTAS DE EJERCICIOS %-------------------------------------------------------------------------------\RequirePackage{answers} \newtheorem{exer}{}[chapter] \newenvironment{ejer}{\begin{exer}\normalfont}{\end{exer}} \Newassociation{solu}{Soln}{ans} % USO del entorno personalizado--------------------------------------------------%\begin{ejercicios} --. bottom color=color2.font=\normalsize] at ([xshift=0pt. top color=color2. definiciones.\end{cejercicios} para listas en cajas \NewDocumentEnvironment{ejercicios}{O{}}{% \bigskip\begin{minipage}{\textwidth}{\bf\verde Ejercicios} #1}{\end{minipage}\bigskip} \colorlet{color1}{gray!5!white} % color fondo \definecolor{color2}{RGB}{117. enlarge top at break by=0mm.enhanced. ##2=Teorema (def.anchor=west.\end{ejercicios} para listas simples %\begin{cejercicios} --.184. overlay last ={ } % cambio de p�gina. enlarge top by=\baselineskip/2+1mm. colback=gray!5.north west)-([xshift=0pt]frame.breakable.top=7mm.south east).%drop fuzzy shadow.south east). top color=white.north east). %} overlay middle ={}.2pt] (frame.line width=0. font=\small\bf\sffamily](tituloejer) at ([xshift=5mm. %borde l�nea inferior \draw[color=colorejercicios. } % overlay first }.north east).2pt] (frame.north west) {\textbf{\color{miverde} Ejercicios \thetcbejer \.line width=0.2pt] (frame.anchor=west. yshift=0mm]frame.line width=0. overlay last = { %borde l�nea inferior \draw[color=colorejercicios.42.%overlay % % Mantener borde en cambio de p�gina % overlay middle = {\draw[color=colordominante. draw=colorejercicios.% ------------------------------------------------------------------% Entorno con Caja para ejercicios----------------------------------------%\begin{cajaejercicios} o \begin{cajaejercicios}[de tal] % o \begin{cajaejercicios}[][ref] % Entorno personalizado--------------------------------------------------\definecolor{colorejercicios}{RGB}{99.south west)-([xshift=0pt]frame. fontupper=\normalsize.south west)-([xshift=0pt]frame.\arabic{tcbejer}} \newtcolorbox{wwejercicios}[3][]{% arc=0mm. overlay ={% overlay first = { %Borde grueso superior \draw[color=colorejercicios. thick.step and label={tcbejer}{#3}. bottom color=white.north west)-([xshift=0pt]frame.inner sep=1mm.#2}}. enhanced.134} %\newcounter{tcbejer}[chapter] %\renewcommand{\thetcbejer}{\thechapter. %Caja de T�tulo: Ejer -\node[rounded corners=3pt. } #1} %\NewDocumentEnvironment{cajaejercicios}{O{} O{} O{}}{\smallskip\begin{wwejercicios}{#1}{#2}% #3}{\end{wwejercicios}\smallskip } % ejercicios--------------------------------------------------------% Comandos para paquete answers % pregunta-soluci�n \newcommand{\exersol}[2]{ \begin{ejer} #1\scantokens{\begin{solu}#2\end{solu}} \end{ejer}} % listas \item pregunta-soluci�n \newcommand{\itemps}[2]{\item #1\scantokens{\begin{solu}#2\end{solu}}} .boxrule=0pt.line width=3pt] (frame. keywordstyle=\color{blue}.}. \end{tikzpicture}} \newcommand{\ptomb}{\ptoazul$\. commentstyle=\color{miverde}.5. ball color=red] {\color{white}\Large\textbf.} \newcommand{\ttpto}[1]{\begin{tikzpicture} \node[scale=. shade. usar despu�s de hyperref %Uso \burl{http:.0) circle (.\usepackage{enumitem} \newcommand{\bex}{\scantokens{\begin{solu} \end{solu}}\begin{enumerate}[label=\alph*. ball color=blue] {\color{white}\Large\textbf#1}. \end{tikzpicture}} \newcommand{\ptoazul}[1]{\begin{tikzpicture} \node[scale=.1cm). shade. urlcolor=azulF]{hyperref} %\RequirePackage{breakurl} %braek url. circle.. shade. ball color=blue] {\color{white}\Large\textbf#1}. pdfstartview=FitV. citecolor=azulF. circle. linkcolor=azulF.5. ball color=green] {\color{white}\Large\textbf.)]} \newcommand{\eex}{\end{enumerate}} % Soluciones al final del documento \def\soluciones{ \expandafter\ifx\csname Closesolutionfile\endcsname \relax\else \Closesolutionfile{ans}\fi } \def\solucionesCap#1{\section*{Soluciones del Cap\'{\i}tulo #1}\input{ans#1}} % Fin Listas de Ejercicios------------------------------------------%----------------------------------------------------------------------------%hyperref %----------------------------------------------------------------------------\RequirePackage[breaklinks. \end{tikzpicture}} \newcommand{\ttptor}{\begin{tikzpicture} \node[scale=.5.. circle. \end{tikzpicture}} \newcommand{\ttptov}{\begin{tikzpicture} \node[scale=.$} .}. %Pascal % lenguaje de programaci�n basicstyle=\bfseries\ttfamily.5.} %-----------------------------------------------------------------------------%----------------------------------------------------------------------------%c�digo de programas (LaTeX en ese caso) %----------------------------------------------------------------------------\RequirePackage{listings} % Puede usar lstlisting|texto| para c�digo en el texto \lstset{ % language={[LaTeX]TeX}. backgroundcolor=\color{gray!5}. circle. showstringspaces=false } %----------------------------------------------------------------------------%Listas de puntos con Tikz %----------------------------------------------------------------------------% Puntos Tikz y Enumerate con Tikz \newcommand{\tpto}{\tikz \shadedraw [shading=ball] (0. shade.colorlinks=true. circle.ac.inner sep=1.} \newcommand*{\itembolasrojas}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=. ball color=green] {\color{white}\Large\bf#1}.} \newcommand*{\itembolasverdes}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=.} %Comando para listas con bolas \newcommand{\beaz}{\begin{enumerate}[label=\itembolasazules{\arabic*}]} \newcommand{\eeaz}{\end{enumerate}} \typeout{Paquete de Estilo A. shade.$} \newcommand{\ptomr}{\ttptor$\.$} % Listas -.$} \newcommand{\ptomv}{\ttptov$\. shade.shadows.tec-digital.\\ Revista digital Matem�tica.fit.con puntos \RequirePackage{enumitem} %\RequirePackage{enumerate} \newcommand{\witem}[1]{\item[{\bf #1)}]} \newcommand*{\itembolasgrises}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[fill=gray!50.arrows. shade.line width=0.5. ball color=blue] {\color{white}\Large\bf#1}.\newcommand{\itempto}{\item[\tpto]} \newcommand{\pto}{\tpto} \newcommand{\ptom}{\tpto$\.itcr.2pt.shape=circle.2mm](n1){#1}.5.draw.5.foreground} %-%-----------------------------------------------------------------------------% Data Table %-----------------------------------------------------------------------------\newsavebox{\dataTableContent} % Box \newenvironment{dataTable}[1] % \new environment {% \begin{lrbox}{\dataTableContent}% \begin{tabular}{#1}}% % {% \end{tabular} . Educaci�n e Internet. circle.\\ http://www. ball color=red] {\color{white}\Large\bf#1}. circle.main.positioning} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background.cr/revistamatematica/ } % FIN Listas %----------------------------------------------------------------------------% TABLAS CON Tikz %----------------------------------------------------------------------------\usepackage{array} \usetikzlibrary{calc.} \newcommand*{\itembolasazules}[1]{% \footnotesize\protect\tikz[baseline=-3pt]% \protect\node[scale=. draw=black] (tbl.bottom color=gray!30.5\baselineskip)$).\end{lrbox} \begin{tikzpicture} \node [inner xsep=0pt] (tbl){\usebox{\dataTableContent}}.south west) rectangle ($(tbl.north east) rectangle (tbl.1.Infiltrar: abrir y cerrar archivos ans j--\expandafter\ifx\csname Closesolutionfile\endcsname \relax\else \Closesolutionfile{ans}\fi \expandafter\ifx\csname Opensolutionfile\endcsname \relax\else \Opensolutionfile{ans}[ans\number\ansj]\advance\ansj by 1\fi %-----------------------------------------------------% Volver a la def original de \chapter \@ifstar{\starchapter}{\@dblarg\nostarchapter}} \newcommand*\starchapter[1]{\stdchapter*{#1}} \def\nostarchapter[#1]#2{\stdchapter[{#1}]{#2}} %\makeatother %no es necesario en .sty % -.sty \let\stdchapter\chapter % \stdchapter guarda la def original de \chapter \renewcommand*\chapter{ % -.Infiltrar \chapter -------------------------------------------% \makeatletter %no es necesario en .------------------------------------------------------------------------- . % top line \draw[rounded corners=1pt.fill=gray.bottom color=gray!50!black. \end{pgfonlayer} \end{tikzpicture}} % -%----------------------------------------------------------------------------%.north east)-(0.Modoficaci�n de chapter para que abra y cierre archivos ans---------------%----------------------------------------------------------------------------\newcount\ansj % contador de listas ans i \ansj=\thechapter % % -.south east)+(0.top color=gray!10!black.north west)$) rectangle ($(tbl.draw=black]% (tbl.25pt.top color=gray!1. \begin{pgfonlayer}{background} % table \draw[rounded corners=1pt.draw=black]% ($(tbl. % bottom rule \draw[rounded corners=0.0.05)$).south west).
Copyright © 2024 DOKUMEN.SITE Inc.