
[LaTeX] LaTeX 안에 코드 블록 넣기
·
기타/논문작성 Writing
*주의 : 이 글은 overleaf를 기준으로 작성되었음 다음과 같이 style을 custom해서 설정한다. \usepackage{listings} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{myred1}{rgb}{255, 0, 0} % Define a custom style \lstdefinestyle{myStyle}{ backgroundcolor=\color{backcolour}, commentstyle=\color{codegreen}, basicstyle=\ttfamily\footnotesize, breakatwhitespace=false, breaklines=true,..