Untitled
\usepackage{listings} \lstset{ numbers=left, % Line numbers on the left frame=single, % Adds a border around the code rulecolor=\color{black}, % Color of the border backgroundcolor=\color{white}, % Background color of the code box basicstyle=\ttfamily\footnotesize, % Font style and size keywordstyle=\color{blue}, % Color for keywords commentstyle=\color{mycommentcolor}, % Color for comments stringstyle=\color{red}, % Color for strings breaklines=true, % Break lines automatically tabsize=4 % Tab space size } \begin{lstlisting}[language=Matlab, caption={...}] %% Code \end{lstlisting}
Leave a Comment