Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. documentclass[12pt, twoside, openright]{report}
  2.  
  3. usepackage[utf8]{inputenc}
  4. usepackage[spanish]{babel}
  5.  
  6. usepackage{listings}
  7. usepackage{minted}
  8.  
  9. renewcommand{lstlistingname}{Listado}
  10. renewcommand{lstlistlistingname}{Índice de listados}
  11.  
  12. begin{document}
  13.  
  14. listoftables
  15. listoflistings
  16.  
  17. chapter{Introducción}
  18. pagenumbering{arabic}
  19. setcounter{page}{1}
  20. % subimport*{./}{chapter01.tex}
  21. begin{listing}[H]
  22. begin{minted}[linenos,frame=lines, framesep=2mm,numbersep=5pt]{scala}
  23. val immutableInt = 2
  24. immutableInt = 3 // Compile Error
  25. var mutableInt = 4
  26. mutableInt = 2 // OK
  27. end{minted}
  28. caption{val versus var}
  29. label{lst:scala_valvar}
  30. end{listing}
  31.  
  32. end{document}
  33.  
  34. renewcommandlistingscaption{Code-Snippet}
  35. renewcommandlistoflistingscaption{List of program codes}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement