SHARE
TWEET

Untitled

a guest Jun 15th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2. usepackage{xcolor}
  3. usepackage{listings}
  4. lstset{
  5.     keywordstyle=color{blue},
  6.     identifierstyle=color{red},
  7. }
  8. lstnewenvironment{algol}{lstset{language=algol}}{}
  9. begin{document}
  10.  
  11. begin{lstlisting}
  12. foo
  13. end{lstlisting}
  14.  
  15. begin{algol}
  16. int foo
  17. end{algol}
  18.  
  19. end{document}
  20.      
  21. documentclass{article}
  22. usepackage{xcolor}
  23. usepackage{listings}
  24. lstset{
  25.     identifierstyle=color{red},
  26. }
  27. begin{document}
  28. begin{lstlisting}
  29. foo
  30. end{lstlisting}
  31. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top