Guest User

Untitled

a guest
Dec 11th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. \documentclass[a4paper]{article}
  2. \usepackage{listings}
  3. \usepackage{color}
  4. \usepackage{textcomp}
  5. \definecolor{listinggray}{gray}{0.9}
  6. \definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
  7. \lstset{
  8. backgroundcolor=\color{lbcolor},
  9. tabsize=4,
  10. rulecolor=,
  11. language=Python,
  12. basicstyle=\scriptsize,
  13. upquote=true,
  14. aboveskip={1.5\baselineskip},
  15. columns=fixed,
  16. showstringspaces=false,
  17. extendedchars=true,
  18. breaklines=true,
  19. prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
  20. frame=single,
  21. showtabs=false,
  22. showspaces=false,
  23. showstringspaces=false,
  24. identifierstyle=\ttfamily,
  25. keywordstyle=\color[rgb]{0,0,1},
  26. commentstyle=\color[rgb]{0.133,0.545,0.133},
  27. stringstyle=\color[rgb]{0.627,0.126,0.941},
  28. }
  29. \begin{document}
  30. {\tt
  31. \lstinputlisting[language=Python]{source_filename.py}
  32. }
  33. \end{document}
Add Comment
Please, Sign In to add comment