Add several latex snippets

This commit is contained in:
wancat
2022-03-18 14:23:35 +08:00
commit a973f31326
6 changed files with 107 additions and 0 deletions

22
latex/code.tex Normal file
View 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}