Skip to content

Instantly share code, notes, and snippets.

@timerring
Created July 20, 2025 08:29
Show Gist options
  • Select an option

  • Save timerring/a5d5d3cda0773def93fc750369394a67 to your computer and use it in GitHub Desktop.

Select an option

Save timerring/a5d5d3cda0773def93fc750369394a67 to your computer and use it in GitHub Desktop.
the latex code template
\usepackage{listings}
\usepackage{xcolor} % using colorful setting
\lstset{ % overall setting
language=Python,
basicstyle=\ttfamily\small,
keywordstyle=\color{blue},
commentstyle=\color{gray},
numbers=left,
numberstyle=\tiny,
frame=single,
breaklines=true
}
\begin{lstlisting}[caption={The name of this code}]
import pandas as pd
import numpy as np
\end{lstlisting}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment