Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. \usepackage{listings}
  2. \usepackage{color}
  3. \definecolor{codegreen}{rgb}{0,0.6,0}
  4. \definecolor{xgris}{HTML}{787878}
  5. \definecolor{xazul}{HTML}{2E3AA3}
  6. \definecolor{xazulito}{HTML}{00B3A7}
  7. \definecolor{xpurpura}{HTML}{FF2BFE}
  8. \definecolor{codegray}{rgb}{0.5,0.5,0.5}
  9. \definecolor{codepurple}{rgb}{0.58,0,0.82}
  10. \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
  11. \definecolor{weborange}{RGB}{255,165,0}
  12.  
  13.  
  14.  
  15.  
  16. \lstdefinestyle{mystyle}{
  17. basicstyle=\normalsize,
  18. breakatwhitespace=false,
  19. breaklines=true,
  20. captionpos=b,
  21. keepspaces=true,
  22. numbers=left,
  23. numbersep=5pt,
  24. showspaces=false,
  25. showstringspaces=false,
  26. showtabs=false,
  27. tabsize=2
  28. }
  29.  
  30. \usepackage[numbered]{matlab-prettifier}
  31. \lstset{
  32. literate=*
  33. {(}{{{\color{xazul}(}}}1
  34. {)}{{{\color{xazul})}}}1
  35. {[}{{{\color{xazul}[}}}1
  36. {]}{{{\color{xazul}]}}}1
  37. {'}{{{\color{xgris}'}}}1
  38. {*}{{{\color{xgris}*}}}1
  39. {;}{{{\color{xgris};}}}1
  40. {+}{{{\color{xgris}+}}}1
  41. {=}{{{\color{xgris}=}}}1
  42. {-}{{{\color{xgris}-}}}1,
  43. style = Matlab-editor,
  44. basicstyle = \ttfamily,
  45. %alsoletter={k},% if you also want the "#" to be highlighted
  46. escapechar = ",
  47. frame = none,
  48. commentstyle=\color{codegreen},
  49. numberstyle=\color{codegray},
  50. emph={linspace,meshgrid,cross,dot,axis,figure,imagesc,colorbar,floor,max,flipud,ones,size, nargin, mod,pi,fftshift,fft,min,find},
  51. emphstyle={\color{xazulito}},
  52. classoffset=2,
  53. morekeywords={all,square,colormap, long},keywordstyle=\color{xpurpura},
  54. classoffset=3,
  55. morekeywords={cos,sin,sqrt,abs,exp,sech},keywordstyle=\color{red},
  56. classoffset=0,
  57. }
  58.  
  59. \usepackage{etoolbox} % provides the \patchcmd macro
  60. \makeatletter
  61. \patchcmd{\lsthk@SelectCharTable}{`)}{``}{}{} % patch listings
  62. %\patchcmd{\lsthk@SelectCharTable}{``}{`)}{}{} % undo patch if needed
  63. \makeatother
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement