Guest User

Untitled

a guest
Nov 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. usepackage{listings}
  2. definecolor{identifiercolor}{rgb}{.4,.6,.56}
  3. definecolor{stringcolor}{rgb}{170,55,241}
  4. definecolor{inactivecolor}{rgb}{28,172,0}
  5. lstset{
  6. basicstyle={footnotesizedeffvm@Scale{.85}fontfamily{fvm}selectfont},
  7. breaklines=true,
  8. frame=single,%
  9. % escapeinside={%*}{*)},
  10. keywordstyle={bfseriescolor{blue}},
  11. stringstyle={bfseriescolor{stringcolor}},
  12. identifierstyle={bfseriescolor{black}},
  13. commentstyle=color{identifiercolor},
  14. showstringspaces=false}
  15. renewcommand{lstlistingname}{Listing}
  16.  
  17. begin{lstlisting[extendedchars=true,caption="trackingexample.m",language=Matlab]
  18. function result_txt_vis()
  19. clear all
  20. t = importdata('result.txt'); Ani = 1;
  21. switch Ani
  22. case 1
  23. end{lstlisting}
  24.  
  25. begin{lstlisting}[extendedchars=true,caption="Ex1.c",language=C]
  26. #ifndef DEBUG
  27. clock_t end = clock();
  28. double time_spent = (double) (end - begin) / CLOCKS_PER_SEC;
  29. printf("running-time: %en", time_spent); //display running-time
  30. #endif
  31. return 0;
  32. }
  33. end{lstlisting}
Add Comment
Please, Sign In to add comment