Skip to content

Commit 9d5ae96

Browse files
committed
Version 2.0.0
1 parent 6714d22 commit 9d5ae96

File tree

20 files changed

+39
-2281
lines changed

20 files changed

+39
-2281
lines changed

control.tex

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

example.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Template Controles LaTeX
22
% Documento: Archivo de ejemplo
3-
% Versión: 1.3.4 (22/04/2018)
3+
% Versión: 2.0.0 (23/04/2018)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R. @ppizarror

lib/cfg/init.tex

Lines changed: 3 additions & 271 deletions
Large diffs are not rendered by default.

lib/cfg/page.tex

Lines changed: 2 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Template Controles LaTeX
22
% Documento: Configuración de página
3-
% Versión: 1.3.4 (22/04/2018)
3+
% Versión: 2.0.0 (23/04/2018)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R. @ppizarror
@@ -11,83 +11,4 @@
1111
% Sitio web: [http://latex.ppizarror.com/Template-Controles/]
1212
% Licencia MIT: [https://opensource.org/licenses/MIT]
1313

14-
% Numeración de páginas
15-
\newpage
16-
\renewcommand{\thepage}{\arabic{page}}
17-
\setcounter{page}{1}
18-
\setcounter{section}{0}
19-
\setcounter{footnote}{0}
20-
21-
% Márgenes de páginas y tablas
22-
\setpagemargincm{\pagemarginleft}{\pagemargintop}{\pagemarginright}{\pagemarginbottom}
23-
\def\arraystretch{\tablepadding} % Se ajusta el padding de las tablas
24-
25-
% Se define el punto decimal
26-
\ifthenelse{\equal{\pointdecimal}{true}}{
27-
\decimalpoint}{
28-
}
29-
30-
% Definición de nombres de objetos
31-
\renewcommand{\appendixname}{\nomltappendixsection} % Nombre del anexo (título)
32-
\renewcommand{\appendixpagename}{\nameappendixsection} % Nombre del anexo en índice
33-
\renewcommand{\appendixtocname}{\nameappendixsection} % Nombre del anexo en índice
34-
\renewcommand{\contentsname}{\nomltcont} % Nombre del índice
35-
\renewcommand{\figurename}{\nomltwfigure} % Nombre de la leyenda de las fig.
36-
\renewcommand{\listfigurename}{\nomltfigure} % Nombre del índice de figuras
37-
\renewcommand{\listtablename}{\nomlttable} % Nombre del índice de tablas
38-
\renewcommand{\lstlistingname}{\nomltwsrc} % Nombre leyenda del código fuente
39-
\renewcommand{\refname}{\namereferences} % Nombre de las referencias
40-
\renewcommand{\tablename}{\nomltwtable} % Nombre de la leyenda de tablas
41-
42-
% Estilo de títulos
43-
\sectionfont{\color{\titlecolor} \fontsizetitle \styletitle \selectfont}
44-
\subsectionfont{\color{\subtitlecolor} \fontsizesubtitle \stylesubtitle \selectfont}
45-
\subsubsectionfont{\color{\subsubtitlecolor} \fontsizesubsubtitle \stylesubsubtitle \selectfont}
46-
47-
% Se crean los header-footer
48-
\pagestyle{fancy} \fancyhf{} \fancyhead[L]{} \fancyhead[R]{} % Headers y footers
49-
\renewcommand{\headrulewidth}{0pt} % Ancho de la barra del header
50-
\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}} % Footer izq, título
51-
\fancyfoot[R]{\small \rm \nouppercase{\thepage}} % Footer der, curso
52-
\renewcommand{\footrulewidth}{0.5pt} % Ancho de la barra del footer
53-
\fancypagestyle{styleportrait}{ % Estilo portada
54-
\pagestyle{fancy}
55-
\fancyhf{}
56-
\fancyhead[L]{
57-
\vspace*{2.5cm}
58-
\nombreuniversidad ~ \\
59-
\nombrefacultad ~ \\
60-
\departamentouniversidad ~ \\
61-
\codigodelcurso\ - \nombredelcurso
62-
}
63-
\fancyhead[R]{
64-
\includegraphics[scale=\imagendepartamentoescala]{\imagendepartamento} \vspace{0cm}
65-
}
66-
\renewcommand{\headrulewidth}{0.5pt}
67-
\setpagemargincm{\pagemarginleft}{2.0}{\pagemarginright}{\pagemarginbottom}
68-
\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}} % Footer izq, título
69-
\fancyfoot[R]{\small \rm \nouppercase{\thepage}} % Footer der, curso
70-
\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}} % Footer izq, título
71-
\fancyfoot[R]{\small \rm \nouppercase{\thepage}} % Footer der, curso
72-
\renewcommand{\footrulewidth}{0.5pt} % Ancho de la barra del footer
73-
}
74-
\thispagestyle{styleportrait} % Encabezado auxiliar (título e integrantes)
75-
\begin{center}
76-
\vspace*{2.0cm}
77-
\huge {\tituloevaluacion} ~ \\
78-
\ifx\hfuzz\equipodocente\hfuzz
79-
\else
80-
\vspace{0.2cm}
81-
\large{\equipodocente}
82-
\fi
83-
\ifx\hfuzz\indicacionevaluacion\hfuzz
84-
\else
85-
\vspace{0.5cm}
86-
\large{\indicacionevaluacion}
87-
\fi
88-
\end{center}
89-
90-
% Muestra los números de línea
91-
\ifthenelse{\equal{\showlinenumbers}{true}}{
92-
\linenumbers}{
93-
}
14+
\newpage\renewcommand{\thepage}{\arabic{page}}\setcounter{page}{1}\setcounter{section}{0}\setcounter{footnote}{0}\setpagemargincm{\pagemarginleft}{\pagemargintop}{\pagemarginright}{\pagemarginbottom}\def\arraystretch{\tablepadding}\ifthenelse{\equal{\pointdecimal}{true}}{\decimalpoint}{}\renewcommand{\appendixname}{\nomltappendixsection}\renewcommand{\appendixpagename}{\nameappendixsection}\renewcommand{\appendixtocname}{\nameappendixsection}\renewcommand{\contentsname}{\nomltcont}\renewcommand{\figurename}{\nomltwfigure}\renewcommand{\listfigurename}{\nomltfigure}\renewcommand{\listtablename}{\nomlttable}\renewcommand{\lstlistingname}{\nomltwsrc}\renewcommand{\refname}{\namereferences}\renewcommand{\tablename}{\nomltwtable}\sectionfont{\color{\titlecolor} \fontsizetitle \styletitle \selectfont}\subsectionfont{\color{\subtitlecolor} \fontsizesubtitle \stylesubtitle \selectfont}\subsubsectionfont{\color{\subsubtitlecolor} \fontsizesubsubtitle \stylesubsubtitle \selectfont}\pagestyle{fancy} \fancyhf{} \fancyhead[L]{} \fancyhead[R]{}\renewcommand{\headrulewidth}{0pt}\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}}\fancyfoot[R]{\small \rm \nouppercase{\thepage}}\renewcommand{\footrulewidth}{0.5pt}\fancypagestyle{styleportrait}{\pagestyle{fancy}\fancyhf{}\fancyhead[L]{\vspace*{2.5cm}\nombreuniversidad ~ \\\nombrefacultad ~ \\\departamentouniversidad ~ \\\codigodelcurso\ - \nombredelcurso}\fancyhead[R]{\includegraphics[scale=\imagendepartamentoescala]{\imagendepartamento} \vspace{0cm}}\renewcommand{\headrulewidth}{0.5pt}\setpagemargincm{\pagemarginleft}{2.0}{\pagemarginright}{\pagemarginbottom}\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}}\fancyfoot[R]{\small \rm \nouppercase{\thepage}}\fancyfoot[L]{\small \rm \textit{\tituloevaluacion}}\fancyfoot[R]{\small \rm \nouppercase{\thepage}}\renewcommand{\footrulewidth}{0.5pt}}\thispagestyle{styleportrait}\begin{center}\vspace*{2.0cm}\huge {\tituloevaluacion} ~ \\\ifx\hfuzz\equipodocente\hfuzz\else\vspace{0.2cm}\large{\equipodocente}\fi\ifx\hfuzz\indicacionevaluacion\hfuzz\else\vspace{0.5cm}\large{\indicacionevaluacion}\fi\end{center}\ifthenelse{\equal{\showlinenumbers}{true}}{\linenumbers}{}

lib/cmd/all.tex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Template Controles LaTeX
22
% Documento: Carga las funciones del template
3-
% Versión: 1.3.4 (22/04/2018)
3+
% Versión: 2.0.0 (23/04/2018)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R. @ppizarror
@@ -11,10 +11,4 @@
1111
% Sitio web: [http://latex.ppizarror.com/Template-Controles/]
1212
% Licencia MIT: [https://opensource.org/licenses/MIT]
1313

14-
\input{lib/cmd/core}
15-
\input{lib/cmd/math}
16-
\input{lib/cmd/equation}
17-
\input{lib/cmd/image}
18-
\input{lib/cmd/title}
19-
\input{lib/cmd/other}
20-
\input{lib/cmd/control}
14+
\input{lib/cmd/core}\input{lib/cmd/math}\input{lib/cmd/equation}\input{lib/cmd/image}\input{lib/cmd/title}\input{lib/cmd/other}\input{lib/cmd/control}

lib/cmd/control.tex

Lines changed: 2 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Template Controles LaTeX
22
% Documento: Funciones exclusivas de Template-Controles
3-
% Versión: 1.3.4 (22/04/2018)
3+
% Versión: 2.0.0 (23/04/2018)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R. @ppizarror
@@ -11,178 +11,4 @@
1111
% Sitio web: [http://latex.ppizarror.com/Template-Controles/]
1212
% Licencia MIT: [https://opensource.org/licenses/MIT]
1313

14-
% Insertar nuevo título de pregunta
15-
% #1 Título
16-
\newcommand{\newquestion}[1]{
17-
\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}
18-
\sectionanum{#1}
19-
}
20-
21-
% Insertar nuevo título de pregunta encerrado en un recuadro
22-
% #1 Número pregunta
23-
\newcommand{\newboxquestion}[1]{
24-
\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}
25-
\phantomsection
26-
\newp \fbox{\ \textbf{#1}.-\ } \noindent
27-
\pdfbookmark[1]{#1}{toc}
28-
}
29-
30-
% Crea una sección de imágenes múltiples
31-
% #1 Label (opcional)
32-
% #2 Caption
33-
\newenvironment{images}[2][]{
34-
\def\envimageslabelvar {#1}
35-
\def\envimagescaptionvar {#2}
36-
\def\envimagesinitialized {true}
37-
\vspace{\margintopimages cm}
38-
\captionsetup{margin=\captionmarginmultimg cm}
39-
\begin{figure}[H] \centering
40-
\vspace{-\marginrightmultimage cm}
41-
\vspace{-\marginrightmultimage cm}
42-
\vspace{-\marginrightmultimage cm}
43-
}{
44-
\setcaptionmargincm{\captionlrmargin}
45-
\ifx\hfuzz\envimagescaptionvar\hfuzz
46-
\vspace{\captionlessmarginimage cm}
47-
\else
48-
\caption{\envimagescaptionvar\envimageslabelvar}
49-
\fi
50-
\end{figure}
51-
\setcaptionmargincm{\captionlrmargin}
52-
\vspace{\marginbottomimages cm}
53-
\def\envimagesinitialized {false}
54-
}
55-
\def\envimagesinitialized {false}
56-
57-
% Crea una sección de referencias solo para bibtex
58-
\newenvironment{references}{
59-
\ifthenelse{\equal{\stylecitereferences}{bibtex}}{
60-
}{
61-
\throwerror{\references}{Solo se puede usar entorno references con estilo citas \noexpand\stylecitereferences=bibtex}
62-
}
63-
\begingroup
64-
% Se configura las referencias como una sección
65-
\ifthenelse{\equal{\donumrefsection}{true}}{
66-
\section{\namereferences}
67-
}{
68-
\sectionanum{\namereferences}
69-
}
70-
\renewcommand{\section}[2]{}
71-
\begin{thebibliography}{99}
72-
}
73-
{
74-
\end{thebibliography}
75-
\endgroup
76-
}
77-
78-
% Crea una sección de anexos
79-
\newenvironment{anexo}{
80-
\begingroup
81-
\clearpage
82-
\phantomsection
83-
\ifthenelse{\equal{\showappendixsectitle}{true}}{
84-
\appendixpage}{
85-
}
86-
\appendixtitleon
87-
\appendicestocpagenum
88-
\appendixtitletocon
89-
\bookmarksetup{
90-
numbered,
91-
openlevel=0
92-
}
93-
\begin{appendices}
94-
\bookmarksetupnext{level=part}
95-
\ifthenelse{\equal{\showappendixsecindex}{true}}{}{
96-
\belowpdfbookmark{\nameappendixsection}{contents}
97-
}
98-
\setcounter{secnumdepth}{3}
99-
\setcounter{tocdepth}{3}
100-
\ifthenelse{\equal{\appendixindepobjnum}{true}}{
101-
\counterwithin{equation}{section}
102-
\counterwithin{figure}{section}
103-
\counterwithin{lstlisting}{section}
104-
\counterwithin{table}{section}}{
105-
}
106-
}{
107-
\end{appendices}
108-
\bookmarksetupnext{level=0}
109-
\endgroup
110-
}
111-
112-
% Inserta código fuente
113-
% #1 Label (opcional)
114-
% #2 Estilo de código
115-
% #3 Caption
116-
\lstnewenvironment{sourcecode}[3][]{
117-
\emptyvarerr{\equationresize}{#2}{Estilo no definido}
118-
\ifthenelse{\equal{\showlinenumbers}{true}}{
119-
\rightlinenumbers}{
120-
}
121-
\ifthenelse{\equal{#2}{c}}{}{
122-
\ifthenelse{\equal{#2}{csharp}}{}{
123-
\ifthenelse{\equal{#2}{c++}}{}{
124-
\ifthenelse{\equal{#2}{docker}}{}{
125-
\ifthenelse{\equal{#2}{html5}}{}{
126-
\ifthenelse{\equal{#2}{java}}{}{
127-
\ifthenelse{\equal{#2}{js}}{}{
128-
\ifthenelse{\equal{#2}{json}}{}{
129-
\ifthenelse{\equal{#2}{matlab}}{}{
130-
\ifthenelse{\equal{#2}{latex}}{}{
131-
\ifthenelse{\equal{#2}{perl}}{}{
132-
\ifthenelse{\equal{#2}{php}}{}{
133-
\ifthenelse{\equal{#2}{python}}{}{
134-
\ifthenelse{\equal{#2}{ruby}}{}{
135-
\ifthenelse{\equal{#2}{sql}}{}{
136-
\ifthenelse{\equal{#2}{xml}}{}{
137-
\def\sourcecodestyle {#2}
138-
\throwbadconfig{Estilo de codigo desconocido}{\sourcecodestyle}{c,csharp,c++,docker,html5,java,js,json,matlab,latex,perl,php,python,ruby,sql,xml}
139-
}}}}}}}}}}}}}}}}
140-
\ifthenelse{\equal{\codecaptiontop}{true}}{
141-
\ifx\hfuzz#3\hfuzz
142-
\lstset{
143-
style=#2,
144-
captionpos=t
145-
}
146-
\else
147-
\lstset{
148-
style=#2,
149-
caption={#3 #1},
150-
captionpos=t
151-
}
152-
\fi
153-
}{
154-
\ifx\hfuzz#3\hfuzz
155-
\lstset{
156-
style=#2,
157-
captionpos=b
158-
}
159-
\else
160-
\lstset{
161-
style=#2,
162-
caption={#3 #1},
163-
captionpos=b
164-
}
165-
\fi
166-
}
167-
}{
168-
\ifthenelse{\equal{\showlinenumbers}{true}}{
169-
\leftlinenumbers}{
170-
}
171-
}
172-
173-
\newcommand{\newquestionthemed}[2]{
174-
\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}
175-
\emptyvarerr{\newquestion}{#1}{Tema no definido}
176-
\sectionanum{#1}
177-
\vspace{-0.2cm}
178-
\textbf{#2}
179-
\newp
180-
}
181-
182-
\newcommand{\itempto}[2]{
183-
\ifthenelse{\equal{\bolditempto}{true}}{
184-
\item \textbf{(#1 pto)} #2
185-
}{
186-
\item (#1 pto) #2
187-
}
188-
}
14+
\newcommand{\newquestion}[1]{\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}\sectionanum{#1}}\newcommand{\newboxquestion}[1]{\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}\phantomsection\newp \fbox{\ \textbf{#1}.-\ } \noindent\pdfbookmark[1]{#1}{toc}}\newenvironment{images}[2][]{\def\envimageslabelvar {#1}\def\envimagescaptionvar {#2}\def\envimagesinitialized {true}\vspace{\margintopimages cm}\captionsetup{margin=\captionmarginmultimg cm}\begin{figure}[H] \centering\vspace{-\marginrightmultimage cm}\vspace{-\marginrightmultimage cm}\vspace{-\marginrightmultimage cm}}{\setcaptionmargincm{\captionlrmargin}\ifx\hfuzz\envimagescaptionvar\hfuzz\vspace{\captionlessmarginimage cm}\else\caption{\envimagescaptionvar\envimageslabelvar}\fi\end{figure}\setcaptionmargincm{\captionlrmargin}\vspace{\marginbottomimages cm}\def\envimagesinitialized {false}}\def\envimagesinitialized {false}\newenvironment{references}{\ifthenelse{\equal{\stylecitereferences}{bibtex}}{}{\throwerror{\references}{Solo se puede usar entorno references con estilo citas \noexpand\stylecitereferences=bibtex}}\begingroup\ifthenelse{\equal{\donumrefsection}{true}}{\section{\namereferences}}{\sectionanum{\namereferences}}\renewcommand{\section}[2]{}\begin{thebibliography}{99}}{\end{thebibliography}\endgroup}\newenvironment{anexo}{\begingroup\clearpage\phantomsection\ifthenelse{\equal{\showappendixsectitle}{true}}{\appendixpage}{}\appendixtitleon\appendicestocpagenum\appendixtitletocon\bookmarksetup{numbered,openlevel=0}\begin{appendices}\bookmarksetupnext{level=part}\ifthenelse{\equal{\showappendixsecindex}{true}}{}{\belowpdfbookmark{\nameappendixsection}{contents}}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3}\ifthenelse{\equal{\appendixindepobjnum}{true}}{\counterwithin{equation}{section}\counterwithin{figure}{section}\counterwithin{lstlisting}{section}\counterwithin{table}{section}}{}}{\end{appendices}\bookmarksetupnext{level=0}\endgroup}\lstnewenvironment{sourcecode}[3][]{\emptyvarerr{\equationresize}{#2}{Estilo no definido}\ifthenelse{\equal{\showlinenumbers}{true}}{\rightlinenumbers}{}\ifthenelse{\equal{#2}{c}}{}{\ifthenelse{\equal{#2}{cpp}}{}{\ifthenelse{\equal{#2}{csharp}}{}{\ifthenelse{\equal{#2}{docker}}{}{\ifthenelse{\equal{#2}{html5}}{}{\ifthenelse{\equal{#2}{java}}{}{\ifthenelse{\equal{#2}{js}}{}{\ifthenelse{\equal{#2}{json}}{}{\ifthenelse{\equal{#2}{matlab}}{}{\ifthenelse{\equal{#2}{latex}}{}{\ifthenelse{\equal{#2}{perl}}{}{\ifthenelse{\equal{#2}{php}}{}{\ifthenelse{\equal{#2}{python}}{}{\ifthenelse{\equal{#2}{ruby}}{}{\ifthenelse{\equal{#2}{sql}}{}{\ifthenelse{\equal{#2}{xml}}{}{\def\sourcecodestyle {#2}\throwbadconfig{Estilo de codigo desconocido}{\sourcecodestyle}{c,cpp,csharp,docker,html5,java,js,json,matlab,latex,perl,php,python,ruby,sql,xml}}}}}}}}}}}}}}}}}\ifthenelse{\equal{\codecaptiontop}{true}}{\ifx\hfuzz#3\hfuzz\lstset{style=#2,captionpos=t}\else\lstset{style=#2,caption={#3 #1},captionpos=t}\fi}{\ifx\hfuzz#3\hfuzz\lstset{style=#2,captionpos=b}\else\lstset{style=#2,caption={#3 #1},captionpos=b}\fi}}{\ifthenelse{\equal{\showlinenumbers}{true}}{\leftlinenumbers}{}}\newcommand{\newquestionthemed}[2]{\emptyvarerr{\newquestion}{#1}{Titulo pregunta no definido}\emptyvarerr{\newquestion}{#1}{Tema no definido}\sectionanum{#1}\vspace{-0.2cm}\textbf{#2}\newp}\newcommand{\itempto}[2]{\ifthenelse{\equal{\bolditempto}{true}}{\item \textbf{(#1 pto)} #2}{\item (#1 pto) #2}}

0 commit comments

Comments
 (0)