Skip to content

Commit ede5e40

Browse files
committed
Ahora usa la versión más reciente de Pygments en GitHub, que incluye el estilo material
1 parent 320e990 commit ede5e40

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ jobs:
1515
- name: Instalar dependencias
1616
run: |
1717
sudo apt-get update
18+
sudo apt-get upgrade
1819
sudo apt-get install -y texlive-full
19-
sudo apt-get install -y python3-pygments
20-
20+
pip3 install --upgrade Pygments
21+
# Para usar Pygments >= 2.8, que tiene el estilo "material"
22+
2123
- name: Compilar PDF
2224
run: |
2325
latexmk -pdf --shell-escape main.tex

latex/introduccion.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ \chapter{Introducción a Python}
44
\section{¿Qué es Python?}
55

66
\link{https://www.python.org}{Python} es un lenguaje de programación popular y de alto nivel.
7-
Fue creado por Gudo van Rossum y fue lanzado en el año 1991.
7+
Fue creado por Guido van Rossum y fue lanzado en el año 1991.
88
Se han lanzado diferentes versiones hasta llegar a la versión actual, Python 3.
99

1010
Según su creador, el nombre de Python viene de la serie de comedia británica \doble{El Circo Volador de Monty Python}.

main.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
\usepackage{needspace}
2525

2626
\usepackage[spanish]{babel}
27-
%\usepackage{microtype}
27+
\usepackage{microtype}
2828

29-
\usepackage[colorlinks=true, linkcolor=., urlcolor=Crimson]{hyperref}
29+
\usepackage[colorlinks=true, linkcolor=., urlcolor=RoyalBlue]{hyperref}
3030

3131
% estilo de los segmentos de código
3232
\usemintedstyle[python]{material}
@@ -128,7 +128,7 @@
128128
\newcommand{\cualquier}{\textcolor{ForestGreen}{Todos}}
129129

130130
% atajo para usar \texttt{} más rápido, ya que se usará muy seguido
131-
\newcommand{\ttt}[1]{\textcolor{RoyalBlue}{\texttt{#1}}}
131+
\newcommand{\ttt}[1]{\textcolor{Crimson}{\texttt{#1}}}
132132

133133
% para usar comillas de tipo "programación"
134134
\newcommand{\q}{\textquotesingle}

0 commit comments

Comments
 (0)