159 lines
5.0 KiB
TeX
159 lines
5.0 KiB
TeX
\documentclass[12pt,a4paper]{report}
|
|
\usepackage[
|
|
spanish,
|
|
mexico,
|
|
es-lcroman % Poder usar numeración romana en minúscula
|
|
]{babel}
|
|
\usepackage[utf8]{luainputenc} % Tildes y caracteres especiales con lualatex
|
|
\usepackage{eso-pic} % Insertar imagen de fondo para portada
|
|
\usepackage{graphicx}
|
|
\graphicspath{{./Imagenes}}
|
|
\usepackage{parskip} % Espacio entre párrafos en lugar de sangría
|
|
\usepackage{setspace} % Permite definir el interlineado
|
|
\usepackage{array} % Ajuste de columnas en tablas
|
|
\usepackage{xcolor}
|
|
\newcommand{\highlight}[1]{\colorbox{black}{\textcolor{white}{#1}}} % Utilizado para resaltar
|
|
\usepackage[hidelinks]{hyperref}
|
|
\hypersetup{
|
|
pdfauthor={Omar Sánchez Enríquez},
|
|
pdftitle={Aprendiendo Korn Shell},
|
|
pdfkeywords={korn, shell, built-in, ksh}
|
|
pdfproducer={Latex con hyperref en Void Linux},
|
|
pdfcreator={Texlive with Lualatex},
|
|
colorlinks=true,
|
|
filecolor=magenta,
|
|
linkcolor=blue,
|
|
urlcolor=green
|
|
}
|
|
|
|
\usepackage{listings} % Escribir bloques de código
|
|
\definecolor{codegreen}{rgb}{0,0.6,0}
|
|
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
|
|
\definecolor{codepurple}{rgb}{0.58,0,0.82}
|
|
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
|
\lstdefinestyle{mystyle}{
|
|
backgroundcolor=\color{backcolour},
|
|
commentstyle=\color{codegreen}, % estilo de comentario
|
|
keywordstyle=\color{blue},
|
|
stringstyle=\color{codepurple},
|
|
basicstyle=\ttfamily\scriptsize, % el tamaño de las fuentes utilizadas para el código
|
|
breakatwhitespace=false,
|
|
breaklines=true, % establece el corte de línea automático
|
|
captionpos=b, % Establece la posición del título en la parte inferior
|
|
keepspaces=true,
|
|
numbersep=5pt,
|
|
showspaces=false,
|
|
showstringspaces=false,
|
|
showtabs=false,
|
|
keepspaces=true,
|
|
tabsize=2
|
|
}
|
|
\lstset{style=mystyle}
|
|
\usepackage{tablefootnote}
|
|
\usepackage{multirow}
|
|
\usepackage{longtable}
|
|
\usepackage{tcolorbox} % Crear cuadros de texto
|
|
% Definir un nuevo entorno tcolorbox
|
|
\newtcolorbox{mybox}[1][]{colback=blue!5!white, colframe=blue!75!black, fonttitle=\bfseries, title=#1}
|
|
|
|
\usepackage{amssymb, amsmath}
|
|
\urlstyle{same} % Misma fuente para los vínculos
|
|
|
|
%%%%% Márgenes %%%%%
|
|
\usepackage[
|
|
top=2cm, % Margen superior
|
|
bottom=1.5cm, % Margen inferior
|
|
right=2.4cm, % Margen derecho
|
|
left=2.4cm % Margen izquierdo
|
|
]{geometry}
|
|
|
|
|
|
%%%%% Cambiar de tamaño y centrar capítulos %%%%%
|
|
\usepackage[explicit]{titlesec}
|
|
% Configuración para los capítulos
|
|
\titleformat{\chapter}[display]{\bfseries\centering}{\Large CAPÍTULO \thechapter}{1em}{\large #1}
|
|
|
|
%%%%% Encabezado y pie de página %%%%%
|
|
\usepackage{fancyhdr}
|
|
\pagestyle{fancy}
|
|
\fancyhf{} % Borrar los valores que vienen por defecto
|
|
\rhead[]{\fontsize{9}{12} \selectfont{\rightmark}}
|
|
\renewcommand{\footrulewidth}{0.4pt} % Añadir linea horizontal a pie de página
|
|
\lfoot[\thepage]{\fontsize{9}{12} \selectfont{Aprendiendo Korn Shell}}
|
|
\rfoot[]{\fontsize{9}{12} \selectfont{\thepage}}
|
|
|
|
%%%%% Portada %%%%%
|
|
\title {
|
|
\input{./Secciones/Portada}
|
|
}
|
|
|
|
%%%%% Contenido del documento %%%%%
|
|
\begin{document}
|
|
\spacing{1.5} % Interlineado 1.5
|
|
|
|
% % % % % Estructura % % % % %
|
|
\input{./Secciones/Portada}
|
|
\chapter*{COPYRIGHT}
|
|
\thispagestyle{empty}
|
|
\input{./Secciones/Copyright}
|
|
\chapter*{DEDICATORIA}
|
|
\thispagestyle{empty}
|
|
\input{./Secciones/Dedicatoria}
|
|
\chapter*{PREFACIO}\label{sec:Prefacio}
|
|
\thispagestyle{empty}
|
|
\input{./Secciones/Prefacio}
|
|
|
|
% Índices
|
|
\pagenumbering{roman} % Iniciar numeración desde 1 en números romanos minúscula
|
|
\renewcommand\contentsname{\centering Contenido} % Renombrar y centrar nombre de índices
|
|
\setcounter{page}{0}
|
|
\tableofcontents
|
|
\listoffigures
|
|
\listoftables
|
|
|
|
\chapter{CONCEPTOS BÁSICOS DE KORN SHELL}\label{sec:Chapter1}
|
|
\pagenumbering{arabic} % Iniciar numeración desde 1 en números arábigos
|
|
\input{./Secciones/Capitulo1}
|
|
|
|
\chapter{EDICIÓN DESDE LA LÍNEA DE COMANDOS}\label{sec:Chapter2}
|
|
\input{./Secciones/Capitulo2}
|
|
|
|
\chapter{PERSONALIZACIÓN DEL ENTORNO}\label{sec:Chapter3}
|
|
\input{./Secciones/Capitulo3}
|
|
|
|
\chapter{PROGRAMACIÓN BÁSICA DE SHELL}\label{sec:Chapter4}
|
|
\input{./Secciones/Capitulo4}
|
|
|
|
\chapter{CONTROL DE FLUJO}\label{sec:Chapter5}
|
|
\input{./Secciones/Capitulo5}
|
|
|
|
\chapter{OPCIONES DE LA LÍNEA DE COMANDOS Y VARIABLES TIPOGRÁFICAS}\label{sec:Chapter6}
|
|
\input{./Secciones/Capitulo6}
|
|
|
|
\chapter{ENTRADA/SALIDA Y PROCESAMIENTO DESDE LA LÍNEA DE COMANDOS}\label{sec:Chapter7}
|
|
\input{./Secciones/Capitulo7}
|
|
|
|
\chapter{MANEJO DE PROCESOS}\label{sec:Chapter8}
|
|
\input{./Secciones/Capitulo8}
|
|
|
|
\chapter{DEPURACIÓN DE PROGRAMAS DEL SHELL}\label{sec:Chapter9}
|
|
\input{./Secciones/Capitulo9}
|
|
|
|
\chapter{ADMINISTRACIÓN DE KORN SHELL}\label{sec:Chapter10}
|
|
\input{./Secciones/Capitulo10}
|
|
|
|
\appendix
|
|
\chapter{SHELLS RELACIONADOS}\label{sec:ApendiceA}
|
|
\input{./Secciones/ApendiceA}
|
|
|
|
\chapter{INFORMACIÓN DE REFERENCIA}\label{sec:ApendiceB}
|
|
\input{./Secciones/ApendiceB}
|
|
|
|
\chapter{CONSTRUCCIÓN DE KSH A PARTIR DEL CÓDIGO FUENTE}
|
|
\input{./Secciones/ApendiceC}\label{sec:ApendiceC}
|
|
|
|
\chapter{ACUERDO DE LICENCIA DE CÓDIGO FUENTE DE AT\&T ast}\label{sec:ApendiceD}
|
|
\input{./Secciones/ApendiceD}
|
|
|
|
\end{document}
|