Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[12pt, twoside, openright]{report}
- usepackage[utf8]{inputenc}
- usepackage[spanish]{babel}
- usepackage{listings}
- usepackage{minted}
- renewcommand{lstlistingname}{Listado}
- renewcommand{lstlistlistingname}{Índice de listados}
- begin{document}
- listoftables
- listoflistings
- chapter{Introducción}
- pagenumbering{arabic}
- setcounter{page}{1}
- % subimport*{./}{chapter01.tex}
- begin{listing}[H]
- begin{minted}[linenos,frame=lines, framesep=2mm,numbersep=5pt]{scala}
- val immutableInt = 2
- immutableInt = 3 // Compile Error
- var mutableInt = 4
- mutableInt = 2 // OK
- end{minted}
- caption{val versus var}
- label{lst:scala_valvar}
- end{listing}
- end{document}
- renewcommandlistingscaption{Code-Snippet}
- renewcommandlistoflistingscaption{List of program codes}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement