Add several latex snippets
This commit is contained in:
22
latex/code.tex
Normal file
22
latex/code.tex
Normal file
@@ -0,0 +1,22 @@
|
||||
\usepackage{listings}
|
||||
\usepackage{xcolor}
|
||||
|
||||
\lstset{ % General setup for the package
|
||||
language=C,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
numbers=left,
|
||||
numberstyle=\small,
|
||||
frame=tb,
|
||||
tabsize=4,
|
||||
columns=fixed,
|
||||
showstringspaces=false,
|
||||
showtabs=false,
|
||||
keepspaces,
|
||||
commentstyle=\color{gray},
|
||||
keywordstyle=\color{blue}
|
||||
}
|
||||
|
||||
\lstinputlisting[linerange={41-51}]{week4-4.ino}
|
||||
|
||||
\begin{lstlisting}
|
||||
\end{lstlisting}
|
||||
Reference in New Issue
Block a user